The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Applications (http://hintsforums.macworld.com/forumdisplay.php?f=5)
-   -   Mail.app ignoring POP3 -ERR response (http://hintsforums.macworld.com/showthread.php?t=49451)

jbc 01-17-2006 02:09 AM

Quote:

Originally Posted by clikdude
Let me ask you this, is there a Mail.app "started" event that I could have trigger an AppleScript or Automator script to check the existence of a valid connection to mail server, otherwise prompt for a Parental Controls login?

I'm not sure of the benefit of delaying logging into Parental Controls until Mail.app starts, though I assume there's good reason for this.

What might be most useful is if you could describe exactly how you log into Parental Controls as opposed to simply logging into the mail server (I'd think the mail login would be in each user's keychain). How do you invoke the PC login? Can you do this login from within Terminal? (If so, it can probably be scripted.)

I'm imagining your router is basically acting as a mail proxy, but this may not be a good model. If you can give us some details about the steps required to perform both PC and mail server logins, as well as about how your users mail accounts are set up relative to the computer's user accounts, some one here might be able to piece together a solution.

In answer to your question, I don't know of any Mail.app startup handle you could use for this (I use GyazMail btw, so my familarity with Mail is a bit minimal), but you could easily set up a script to periodically check whether Mail.app is running and trigger the required login script.

hayne 01-17-2006 02:56 AM

Quote:

Originally Posted by jbc
I'm not sure of the benefit of delaying logging into Parental Controls until Mail.app starts

I agree - it would seem to me that this would be better done as a login item - so it happens automatically at login.

Anyway, one way of running an AppleScript when an app starts up is to replace the app with a wrapper AppleScript that does whatever you want and then launches the (renamed) app.

Code:

do_whatever_you_want
tell application "RenamedMail" to activate



All times are GMT -5. The time now is 03:33 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.