• 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: To Run or Not To Run. That is the Question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To Run or Not To Run. That is the Question.


  • Subject: Re: To Run or Not To Run. That is the Question.
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 04 Mar 2015 12:30:54 +0100


Le 04/03/2015 à 03:42, S. J. Cunningham <email@hidden> a écrit :

I have a simple script.app:

on run {}
display dialog "Running"
end run

Executing by double clicking from the Finder or by <tell application "Finder" to open "script.app"> from another script displays "Running" and then quits.

However <tell application "script.app" to run> from another script results in the error message:

          "script.app got an error: Can’t continue run."

If I remove the "display dialog" I get the error message:

          "script.app got an error: Connection is invalid."

What am I missing?

Here, to run the app thru the Finder I was forced to use :

set p2d to path to desktop as text
tell application "Finder" to open (p2d & "Script.app") as alias


When I inserted the instruction  <tell application "Script.app" to run> in a script, it compiled as
tell application "script" to run

When I ran this script under Yosemite, it did nothing more than sending a beep.

Yvan KOENIG (VALLAURIS, France) mercredi 4 mars 2015 12:30:33



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: To Run or Not To Run. That is the Question.
      • From: Shane Stanley <email@hidden>
References: 
 >To Run or Not To Run. That is the Question. (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: To Run or Not To Run. That is the Question.
  • Next by Date: Re: To Run or Not To Run. That is the Question.
  • Previous by thread: Re: To Run or Not To Run. That is the Question.
  • Next by thread: Re: To Run or Not To Run. That is the Question.
  • Index(es):
    • Date
    • Thread