Interface Builder Help

Joined
Oct 25, 2009
Messages
59
Reaction score
0
Points
6
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
...a .scpt file named "ShowInvisibles.scpt"...
Code:
do shell script "defaults write com.apple.Finder AppleShowAllFiles YES"
...and a .scpt file named "HideInvisibles.scpt".
Code:
do shell script "defaults write com.apple.Finder AppleShowAllFiles NO"
I have a Script Controller named "Button"...

picture1pxp.png


...a Script Controller named "ShowInvisibles"...

picture2li.png


...and a Script Controller named "HideInvisibles".

picture3ob.png


The interface looks like this:

picture7.png


The button cell "Activate"...

picture6t.png


...the button cell "Restore"...

picture5tk.png


...and the round button.

picture4lr.png


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?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top