• 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: "S. J. Cunningham" <email@hidden>
  • Date: Wed, 04 Mar 2015 06:15:09 -0500

On Mar 3, 2015, at 10:18 PM, Shane Stanley wrote:

> On 4 Mar 2015, at 1:42 pm, S. J. Cunningham <email@hidden> wrote:
>>
>> What am I missing?
>
> It's hard to say -- it works fine here. If the app really is named script.app, it could be addressing the wrong app.

I changed it to a unique name (Stanley.app).  Same problem.

> What version of the OS are you running?

Why, Snow Leopard of course :)

> Also, I'm curious. You wrote:
>
>> on run {}
>
> Why have you included braces in there?

I typed run() because i was planning to pass arguments to it during the call, eg run(a,b,c).  The script editor changes () to {} and inserts the space between them and "run".  But the behavior is the same if I just use "run" without () or {}.

When I tell it to run from the second script, the icon starts hopping in the dock to get my attention.  Only when I click it is the dialog displayed followed immediately by the error message "script.app got an error: Can’t continue run." number -1708".  If I leave out the "display dialog", I get the message "script.app got an error: Connection is invalid."

I tried adding an "activate" to the run handler and/or telling it to "activate" rather than "run" from the second script but it makes no difference.

Why does this weird stuff always happen to me?
 _______________________________________________
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>)
 >Re: To Run or Not To Run. That is the Question. (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: XML script library?
  • 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