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


Click here to return to the 'Launch login items via AppleScript to avoid login delays' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Launch login items via AppleScript to avoid login delays
Authored by: tedw on Nov 18, '09 01:40:59PM
refining it a bit more:
set theAppList to {{name:"Things", vis:false}, {name:"Mail", vis:true}}
set theDelay to 1

repeat with currentApp in theAppList
	tell application (name of currentApp) to launch
	delay theDelay
	tell application "System Events"
		try
			if background only of process (name of currentApp) is false then
				set visible of process (name of currentApp) to (vis of currentApp)
			end if
		end try
	end tell
end repeat


[ Reply to This | # ]