How do I make an applescript that will make every folder on my hard drive snap to grid?
By looking in the Finder’s Scripting Dictionary for ‘clean up’, I see…
It’s not working
tell application “Finder”
clean up “Macintosh HD”
end tell
Read the post above to see why it’s not working. It says…
Which means the command ‘clean up’ is not avalable yet.
In the Finder dictionary, look at ‘icon view options’ way down there at the bottom. Something like this:
set the_folder to choose folder
tell application “Finder”
activate
open the_folder – not necessary
set arrangement of icon view options of container window of the_folder to snap to grid
set arrangement of icon view options of (container window of every folder of entire contents of the_folder) to snap to grid
end tell
Note that this will not make the current items snap to grid but they will snap to grid after. To arrange things, use something like ‘arranged by name’.
gl,