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

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


  • Follow-Ups:
    • Re: Calling an application
      • From: Paul Berkowitz <email@hidden>
    • Re: Calling an application
      • From: JollyRoger <email@hidden>
  • Prev by Date: Re: Simple question: List Folder
  • Next by Date: Re: App Launch Order
  • Previous by thread: Re: Calling an application
  • Next by thread: Re: Calling an application
  • Index(es):
    • Date
    • Thread