Re: Calling applications
Re: Calling applications
- Subject: Re: Calling applications
- From: Barbara Mueller <email@hidden>
- Date: Fri, 31 Jan 2003 15:17:06 +0100
Hello,
I would like to know if there is a way to call applications generically,
meaning I don't wish to hard code the name of an application in my scripts.
I have to compile my scripts again when somebody for example changes from
QuarkXpress to QuarkXpress 4.1.
Is there a way to do something like:
tell application <<appXPR3>> instead. Calling the creator would allow any
version of quarkxpress to "listen" to my script.
Yes, this is the way I call an application: by creator, e.g.
tell application "Finder"
open application file id "BOBO"
end tell
-- BOBO stands for AppleWorks
To get the creator of an application:
tell application "Finder"
activate
set theselection to the selection -- select appropriate application
repeat with theFile in the theselection
creator type of theFile
end repeat
Barbara
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.