Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Why does this simple apple script generate an error?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mark FX" data-source="post: 1677665" data-attributes="member: 211556"><p>@ cradom</p><p></p><p>Read the AppleScript code posted.</p><p></p><p>The poster is setting a variable called "HiddenStatus" to the result of the defaults read command.</p><p>And then checking with an if statement a variable called "Hidden Status", which has a space in it.</p><p>That is incorrect syntax.</p><p>You have to check the variable in the if statement with the exact same spelling and case, and with no spaces in it.</p><p>The ect. I've used in reply, is for me to eliminate duplicating the correct code following the mistake, although I've typed it wrong, it should be etc.</p><p></p><p>Mark</p></blockquote><p></p>
[QUOTE="Mark FX, post: 1677665, member: 211556"] @ cradom Read the AppleScript code posted. The poster is setting a variable called "HiddenStatus" to the result of the defaults read command. And then checking with an if statement a variable called "Hidden Status", which has a space in it. That is incorrect syntax. You have to check the variable in the if statement with the exact same spelling and case, and with no spaces in it. The ect. I've used in reply, is for me to eliminate duplicating the correct code following the mistake, although I've typed it wrong, it should be etc. Mark [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Why does this simple apple script generate an error?
Top