Re: NSAppleScript: Compiling a script launches an application
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