Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple newbie question



G'day.

I'm not used to a list with no auto reply, so sent this offlist first, sorry.

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 name_of_your_process tell application "Finder" if ProcessOne is not in (get 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-Studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.