Simple newbie question
Simple newbie question
- Subject: Simple newbie question
- From: Brian Christmas <email@hidden>
- Date: Wed, 14 May 2008 18:19:04 +1000
G'day Bernard
An apology
I'm not used to a list with no auto reply, so sent this offlist first,
then posted to the wrong Apple list yesterday, sorry. So, I'll re-post
so you know about the differences that are possible between the
'process' names, and the 'Open with' names. It also might be useful to
know what two apps. you wish to activate and quit together.
Keep in mind.....
1. Some APPS have a different process name than the name used to open
them.
eg 'QuarkXPress Passport' needed to open it, but it's process name is
only 'QuarkXPress'
2. Some APPS don't like the open command, instead use activate, as in
my script below.
Run this script from the Script editor, replacing with your App names,
and in the Result window read the process names.
Regards
Santa
tell application "Finder"
tell application "Adobe Photoshop CS3"
activate
end tell
tell application "QuarkXPress Passport"
activate
end tell
end tell
tell application "Finder"
get every process
end tell
This will be your script once you've got the process name right
set ProcessOne to "QuarkXPress"
tell application "Finder"
if ProcessOne is not in (get name of every process) then
tell application "Adobe Photoshop CS3"
activate
end tell
tell application "QuarkXPress Passport"
activate
end tell
else
tell application "Adobe Photoshop CS3"
quit
end tell
tell application "QuarkXPress Passport"
quit
end tell
end if
end tell
_______________________________________________
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