- 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"...
...a .scpt file named "ShowInvisibles.scpt"...
...and a .scpt file named "HideInvisibles.scpt".
I have a Script Controller named "Button"...
...a Script Controller named "ShowInvisibles"...
...and a Script Controller named "HideInvisibles".
The interface looks like this:
The button cell "Activate"...
...the button cell "Restore"...
...and the round button.
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?
Code:
do shell script "killall Finder"
tell application "X-Ray"
quit
end tell
Code:
do shell script "defaults write com.apple.Finder AppleShowAllFiles YES"
Code:
do shell script "defaults write com.apple.Finder AppleShowAllFiles NO"
...a Script Controller named "ShowInvisibles"...
...and a Script Controller named "HideInvisibles".
The interface looks like this:
The button cell "Activate"...
...the button cell "Restore"...
...and the round button.
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?