New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Interface Builder Help


Post Reply New Thread Subscribe

 
Thread Tools
Babkockdood

 
Member Since: Oct 25, 2009
Posts: 59
Babkockdood is on a distinguished road

Babkockdood is offline
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"...



...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?
QUOTE Thanks
Babkockdood

 
Member Since: Oct 25, 2009
Posts: 59
Babkockdood is on a distinguished road

Babkockdood is offline
Never mind
QUOTE Thanks

Post Reply New Thread Subscribe


« Trying to install and compile JTR? | Unlock with Admin to Auto-Logout »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Interface Builder Noob icu222much OS X - Development and Darwin 0 10-23-2009 01:43 AM
Does anyone have Interface Builder UserGuide for Leopard? russell23 OS X - Development and Darwin 0 10-21-2009 02:47 AM
Interface Builder Help LoneWolfPR OS X - Development and Darwin 1 06-02-2009 04:59 PM
Edit Open/Save dialogs in interface builder? alho0001 OS X - Development and Darwin 0 01-28-2008 08:42 PM
Interface Builder won't open files Mars OS X - Apps and Games 1 11-11-2005 12:20 PM

All times are GMT -4. The time now is 07:35 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?