Can some help translate this.....

Joined
Oct 4, 2011
Messages
4
Reaction score
0
Points
1
Apple Script, that was giving to me on the post on apple.com communities. Im not proficient at all with AppleScript, and have not a clue where to start and need a simp lied set of interactions for this one...

She original thread here....
https://discussions.apple.com/message/16278741#16278741

Here is the Instructions that was given.....
1. Open the Script Editor or AppleScript Editor in one of the subfolders of Applications and run the following:

tell application "Finder" to quit
if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then
do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
end if
delay 2
tell application "Finder" to run

2. Most of your applications are in the Applications folder at the top level of the drive, not the one in the home folder.
 
Joined
Aug 2, 2011
Messages
16
Reaction score
0
Points
1
G'day

All those greyed out files (and .ds-store files) are supposed to be 'invisible' — they are there on every mac — just not visible to the user — UNLESS the shell script "AppleShowAllFiles" is run. This is what the previous user must have done.

Anyway, the instruction is basically this : Open the Script Editor application (found in Applications > Applescript) and copy and paste this code into the main Script Editor window :
Code:
tell application "Finder" to quit
if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then
do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
end if
delay 2
tell application "Finder" to run
Then click the "Run" button

The script simply toggles the visibility of those 'invisible' files (If they are invisible, it makes them visible. If they are visible, it makes them invisible again)

As the script implies in the first line — it relaunches the Finder as part of the process

Hope that helps a little

m.
 

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