Re: Calling an application
Re: Calling an application
- Subject: Re: Calling an application
- From: Andrew Wylie <email@hidden>
- Date: Mon, 12 Feb 2001 11:35:04 +1300
>
on 11 Feb 2001 13:54:55 -0600, JollyRoger at email@hidden wrote:
>
I'll bite. :)
>
>
-1713 is errAENoUserInteraction (No user interaction allowed). So it would
>
seem that the app you were telling was not located on the same machine, and
>
needed to display a dialog. If that is the case, then an error of -1713 is
>
a perfectly normal and valid response. You can't provoke via a script user
>
interaction (a dialog) on another machine.
No not on another machine, on a desktop other than the startup disk.
>
Why doesn't this result in the "Where is app?" dialog on your particular
>
setup? Because the Finder was able to locate an app a) with that creator
>
and b) with the same name as the app you made reference to when you compiled
>
the script. If either of those changed, however, even the script you
>
provided will display the "Where is app?" dialog.
a) yes b) no, I tested (AS1.3.7 OS8.6) deleting, moving (to other disks) and
renaming the app which caused no problem for either method apart from the
aforementioned -1713 for double tell.
>
Is your goal to prevent ANY "Where is app?" dialogs from being displayed?
yes with distributed compiled scripts.
>
If so, then about the only thing that really works in ALL situations is the
>
"raw event code" method.
nasty?
>
double tell
ha! I was afraid to ask, the only explanation of this method I've read
didn't sink in though I'm sure it was no fault on the part of the author.
>
On 11 Feb 2001 12:13:44 -0800, Paul Berkowitz at email@hidden wrote:
>
I'll see if I can dig the URLs out from somewhere. Or maybe someone else can
>
beat me to it.
thanks Paul, I've since read Bill's informative Sourcebook piece on the
subject and summise the only good reason to use double (or triple) tell with
AS 1.3+ is if you want to avoid some undesirable launch behavior in the
target app.
----------------------------------------------------------------------------
http://www.applescriptsourcebook.com/tips/tellbyvariable.html
--------------------------------------------------------thanks all__Andy