Jan 29, '09 07:30:04AM • Contributed by: francola
Under Leopard, the act of launching and hiding apps through AppleScript does not work well (for me anyway!). I have found a simple yet effective way around it that works; I've found that by doubling the commands to activate the individual apps, and also hiding them one by one, they respond better to then being hidden. Here's an example:
tell application "Things" to activate
tell application "Things" to activate
tell application "Finder"
set visible of process "Things" to false
end tell
tell application "Mail" to activate
tell application "Mail" to activate
tell application "Finder"
set visible of process "Mail" to false
end tell
In my testing, using only one activate entry fails consistently, and doubling them works every time. This also works for the problematic 'Mail not hiding properly at launch time' bug. I know of the application LaunchandHideMail, but it's nice to have it a bit simpler, and in a form such that other launched items can be added.
