• 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: Tell Me to Quit in Unix-ese...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tell Me to Quit in Unix-ese...


  • Subject: Re: Tell Me to Quit in Unix-ese...
  • From: Oakman <email@hidden>
  • Date: Tue, 07 Apr 2015 16:24:35 -0400


On Apr 6, 2015, at 11:42PM, Christopher Nebel wrote:

bash/sh, unlike AppleScript, doesn’t particularly care that a command in the middle of a script failed — by default, it will keep going, which is why your initial attempt didn’t work.

Thats' like the 20th attempt. :)

 That also means that changing the AppleScript part of the script won’t help — you need to change the bash part to pay attention to the result of osascript(1). 

Yeah, I figured that out about five days ago. G--gle wasn't helpful nor ASLG, or the dozen or more (very thick) AS books I have.

It would be appreciated if someone could recommend a book or other reference from which to draw.

Tommy’s suggestion of checking the exit status is the simplest way to handle it
I couldn't figure out how to make it work for me.

except that there’s a more convenient construct: “&&” and “||”. 

Your double pipes "||" did the trick and I appreciate it very much.  However I couldn't get your double ampersands to do anything.
 
-Oakman-
 _______________________________________________
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

References: 
 >Tell Me to Quit in Unix-ese... (From: Oakman <email@hidden>)
 >Re: Tell Me to Quit in Unix-ese... (From: Stan Cleveland <email@hidden>)
 >Re: Tell Me to Quit in Unix-ese... (From: Stan Cleveland <email@hidden>)
 >Re: Tell Me to Quit in Unix-ese... (From: email@hidden)
 >Re: Tell Me to Quit in Unix-ese... (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: scripting Xcode to import images
  • Next by Date: Re: scripting Xcode to import images
  • Previous by thread: Re: Tell Me to Quit in Unix-ese...
  • Next by thread: Re: Tell Me to Quit in Unix-ese...
  • Index(es):
    • Date
    • Thread