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: 1677547" data-attributes="member: 211556"><p>Firstly your syntax is incorrect.</p><p>You have written "set HiddenStatus to ect.", then you test for "if Hidden Status = ect.", so the variable spelling is not the same.</p><p></p><p>Also you do not need the "tell current application" "end tell" block to run a do shell script command.</p><p></p><p>It's also worth stating what version of OS X and AppleScript you are using, as the "AppleShowAllFiles" key is not valid on my system, which means your using a different version to myself and others who may be wanting to help you.</p><p>This OSX version declaration is also important, as the AppleScript language has gone through various changes since OSX 10.6, although these changes are mostly to do with the AppleScriptObjC language used in Xcode, it still may be relevant to someone trying to help with your code.</p><p></p><p>Regards Mark</p></blockquote><p></p>
[QUOTE="Mark FX, post: 1677547, member: 211556"] Firstly your syntax is incorrect. You have written "set HiddenStatus to ect.", then you test for "if Hidden Status = ect.", so the variable spelling is not the same. Also you do not need the "tell current application" "end tell" block to run a do shell script command. It's also worth stating what version of OS X and AppleScript you are using, as the "AppleShowAllFiles" key is not valid on my system, which means your using a different version to myself and others who may be wanting to help you. This OSX version declaration is also important, as the AppleScript language has gone through various changes since OSX 10.6, although these changes are mostly to do with the AppleScriptObjC language used in Xcode, it still may be relevant to someone trying to help with your code. Regards Mark [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Why does this simple apple script generate an error?
Top