Re: Tell OS X Application...
Re: Tell OS X Application...
- Subject: Re: Tell OS X Application...
- From: Steven Angier <email@hidden>
- Date: Fri, 11 Jan 2002 11:22:25 +1100
- Organization: Macscript.com
Simon Forster wrote:
>
Using terms form...
>
tell application <file path for URL Access Scription.app>...
>
>
does what I expect but, in the process, turns a 4 line script into a 9
>
line script.
>
>
Any more elegant workarounds?
Using a combination of the Macscript.com Library and the infallible double-tell technique,
the following architecture is completely portable (watch line breaks):
property kURLAccessCreator : "uasc"
--first, activate the app file
ActivateApp(kURLAccessCreator)
--then, using double-tell, do what you like
tell application GetProcessName(kURLAccessCreator) to tell application "URL Access
Scripting"
--statements
end tell
Kind regards,
Steven Angier
Macscript.com