• 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
Calling applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling applications


  • Subject: Calling applications
  • From: julifos <email@hidden>
  • Date: Fri, 31 Jan 2003 19:41:47 +0100

> My first post to this list.
>
> 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.
>
> Currently I put an alias to the program in the scripting additions in this
> case maybe "QX". I can then use tell application "QX".
>
> 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.
>
> Regards,

This should be good enough:

tell application "Finder"
set Quark to name of application file id "XPR3"
end tell

tell application Quark
-- do whatever
end tell

JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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: Doing a Save as in Quark
  • Next by Date: iTunes visuals
  • Previous by thread: Re: Calling applications
  • Next by thread: Re: Calling applications
  • Index(es):
    • Date
    • Thread