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
Interface Builder Help
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="Babkockdood" data-source="post: 985011" data-attributes="member: 128873"><p>OK, so I made an AppleScript application. It's an app that shows/hides invisible files in the Finder. Well, at least that's what I want it to do. I have a .scpt file named "Button.scpt"...</p><p>[CODE]do shell script "killall Finder"</p><p>tell application "X-Ray"</p><p> quit</p><p>end tell[/CODE]</p><p>...a .scpt file named "ShowInvisibles.scpt"...</p><p>[CODE]do shell script "defaults write com.apple.Finder AppleShowAllFiles YES"[/CODE]</p><p>...and a .scpt file named "HideInvisibles.scpt".</p><p>[CODE]do shell script "defaults write com.apple.Finder AppleShowAllFiles NO"[/CODE]</p><p>I have a Script Controller named "Button"...</p><p></p><p><img src="http://img42.imageshack.us/img42/291/picture1pxp.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>...a Script Controller named "ShowInvisibles"...</p><p></p><p><img src="http://img21.imageshack.us/img21/2774/picture2li.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>...and a Script Controller named "HideInvisibles".</p><p></p><p><img src="http://img109.imageshack.us/img109/6113/picture3ob.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>The interface looks like this:</p><p></p><p><img src="http://img641.imageshack.us/img641/9448/picture7.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>The button cell "Activate"...</p><p></p><p><img src="http://img64.imageshack.us/img64/8085/picture6t.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>...the button cell "Restore"...</p><p></p><p><img src="http://img46.imageshack.us/img46/9931/picture5tk.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>...and the round button.</p><p></p><p><img src="http://img19.imageshack.us/img19/8332/picture4lr.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>But when I run it, the button cells and the round button don't do anything at all. Can someone tell me what I'm doing wrong?</p></blockquote><p></p>
[QUOTE="Babkockdood, post: 985011, member: 128873"] OK, so I made an AppleScript application. It's an app that shows/hides invisible files in the Finder. Well, at least that's what I want it to do. I have a .scpt file named "Button.scpt"... [CODE]do shell script "killall Finder" tell application "X-Ray" quit end tell[/CODE] ...a .scpt file named "ShowInvisibles.scpt"... [CODE]do shell script "defaults write com.apple.Finder AppleShowAllFiles YES"[/CODE] ...and a .scpt file named "HideInvisibles.scpt". [CODE]do shell script "defaults write com.apple.Finder AppleShowAllFiles NO"[/CODE] I have a Script Controller named "Button"... [IMG]http://img42.imageshack.us/img42/291/picture1pxp.png[/IMG] ...a Script Controller named "ShowInvisibles"... [IMG]http://img21.imageshack.us/img21/2774/picture2li.png[/IMG] ...and a Script Controller named "HideInvisibles". [IMG]http://img109.imageshack.us/img109/6113/picture3ob.png[/IMG] The interface looks like this: [IMG]http://img641.imageshack.us/img641/9448/picture7.png[/IMG] The button cell "Activate"... [IMG]http://img64.imageshack.us/img64/8085/picture6t.png[/IMG] ...the button cell "Restore"... [IMG]http://img46.imageshack.us/img46/9931/picture5tk.png[/IMG] ...and the round button. [IMG]http://img19.imageshack.us/img19/8332/picture4lr.png[/IMG] But when I run it, the button cells and the round button don't do anything at all. Can someone tell me what I'm doing wrong? [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Interface Builder Help
Top