Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is wrong with this script?



On Nov 29, 2003, at 3:43 PM, Matthew Smith wrote:

Or a linefeed (aka "ASCII character 10"). "return" is ASCII 13, which
is effectively a space as far as most shell tools are concerned.

Would a semicolon break anything down the line? If not, it's easier
than using the linefeed.

The semicolon is used in unix shells to identify the end of a command and
the start of a new one on the same line. In fact the semicolon will only
execute the command following it if the command before it was successful. If
it errors then the second command is not executed.

Thanks. In this case, then a semicolon is better because if the terms for the effects change in future versions of the OS, the first line will break and there will be no need for the second to execute.

--
"There's some good in the world, Mr. Frodo, and it's worth fighting for."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: What is wrong with this script? (From: Matthew Smith <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.