• 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: NSAppleScript: Compiling a script launches an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAppleScript: Compiling a script launches an application


  • Subject: Re: NSAppleScript: Compiling a script launches an application
  • From: "Alexander v. Below" <email@hidden>
  • Date: Fri, 29 Jul 2005 15:21:21 +0200


Am 29.07.2005 um 15:13 schrieb Helmut Fuchs:

well, I'd say this behaviour is quite normal: In order to compile an AppleScript the compiler needs the terminology of the application that's addressed. So iTunes is launched, the AppleScript dictionary of iTunes is inspected for the proper terminology, the script is compiled and henceforth the compiled script works, without having to consult the dictionary.

So this means it is not possible to write one script with:

- First checks if an app is running and
- Then talks to the application?

Given the execution of the query to System Events seems relatively slow I will replace that with a proper lookup of the application in the process table, but as triva that would be interesting to know.

Thanks

Alex

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSAppleScript: Compiling a script launches an application
      • From: Helmut Fuchs <email@hidden>
References: 
 >NSAppleScript: Compiling a script launches an application (From: Alexander von Below <email@hidden>)

  • Prev by Date: Re: NSAppleScript: Compiling a script launches an application
  • Next by Date: Re: NSAppleScript: Compiling a script launches an application
  • Previous by thread: Re: NSAppleScript: Compiling a script launches an application
  • Next by thread: Re: NSAppleScript: Compiling a script launches an application
  • Index(es):
    • Date
    • Thread