• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: GUI Scripting & Missing Values
  • Next by Date: Re: 9.2.2 Delete everything in folder except for these items?
  • Previous by thread: Calling applications
  • Next by thread: Calling applications
  • Index(es):
    • Date
    • Thread