Re: Tell Me to Quit in Unix-ese...
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