Re: To Run or Not To Run. That is the Question.
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 astell 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