Re: Simple script doesn't work
Re: Simple script doesn't work
- Subject: Re: Simple script doesn't work
- From: Brian Christmas <email@hidden>
- Date: Mon, 16 May 2011 19:55:04 +1000
G'day
This is an extra line than Yvans for your example, but a repeat loop will be shorter if you haver a long list of processes.
tell application "System Events" set brwsrs to {} set temp to {"com.apple.safari", "com.google.chrome"} repeat with temp2 in temp set temp3 to (every process whose bundle identifier is temp2) if temp3 is not {} then set end of brwsrs to temp3 end repeat return brwsrs end tell
Regards
Santa
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden