Applescript Help

mr. k

Registered
I made an applescript today to launch a few of my favorite applications:

Code:
set the app_list to {"iTunes", "Mail", "Safari", "Terminal"}

set the app_count to the count of the app_list
repeat with i from 1 to the app_count
	set this_app to item i of the app_list
	tell application this_app to activate
end repeat

But I really don't know anything about applescript, and the above script is abhorrently slow. It starts launching the first, then waits for it to launch completely, then starts launching the next, and for some reason never launches terminal.

How can I get it to open up everything at the same time? And are there any stupid errors my code that keep terminal from launching? Any help you guys have I would love.
 
Ooh, this is a good one, thanks. Took me a second to find in the Applescript Language Guide.

Code:
set the app_list to {"iTunes", "Mail", "Safari", "Terminal"}

ignoring application responses
  repeat with i in app_list
    tell application i to open
  end repeat
end ignoring
 
Back
Top