Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.5: How to launch-and-hide via AppleScript in 10.5' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: How to launch-and-hide via AppleScript in 10.5
Authored by: GrandMauvaisDan on Jan 29, '09 09:11:57AM
I just did some quick testing and found that if Mail is not already open you need a delay between
tell application "Mail" to activate
tell application "Finder" to set visible of process "Mail" to false
Otherwise, Finder tries to set it hidden before Mail finishes launching. The second activate command just happens to take enough time to serve as the needed delay.

[ Reply to This | # ]