|
|
An AppleScript to quickly show or hide hidden files
please disregard my last post!! ...that script does not work! (feel rather stupid ;) ...here is a better one..that DOES work (for me anyway!) ...i had to throw a delay in because apparently the script was done before the finder fully quit... and this wouldn't allow the finder to restart!
display dialog "Set the visibility of hidden files..." buttons {"Cancel", "Visible", "Invisible"} default button 1
copy the result as list to {buttonpressed}
if the buttonpressed is "Invisible" then
try
tell application "Finder" to quit
do shell script "defaults write com.apple.finder AppleShowAllFiles OFF"
delay 1
tell application "Finder" to activate
end try
else if the buttonpressed is "Visible" then
try
tell application "Finder" to quit
do shell script "defaults write com.apple.finder AppleShowAllFiles ON"
delay 1
tell application "Finder" to activate
end try
end if
An AppleScript to quickly show or hide hidden files
This is strange for me. I can not seem to get this script to re-
It works for me now...
Just wanted to note that your script does work for me now.
It works for me now...
glad it works now... i had never used a script to quit the finder like that... i had to tweak it so that (as you said) the finder would relaunch ....it was a learning experince for me as well ;)
An AppleScript to quickly show or hide hidden files
"please disregard my last post!! ...that script does not work! (feel rather stupid ;)" |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.11 seconds |
|