I want to create a new Finder Window, and change the default arrangement from "None" to "arrange by name". Here is my code that does everything except the arrange by name part:
tell application "Finder" set theWindow to make new Finder window tell theWindow set current view to icon view end tell tell its Finder window theWindow set arrangement of icon view options of theWindow to arranged by name end tell end tell
I have tried the code without using the "tell its Finder Window" and using just the "tell theWindow" block, but that does nothing as well.
What is weird is, in the Finder AppleScript dictionary the "Icon View Options" property says its read only. But the "Icon View Options" class says that it is read/write, and it even has an arrangement property that also says that it is read/write.
So has anyone been able to successfully change the "arrangement" property and has the change been reflected in the Finder window?