Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I want to adjust the view options of a folder and all of its subfolders, the end result being that they have identical view options.

I'm not sure where to start with this. I normally launch View options using Command—J, but the settings I specify do not always carry over to a subfolder.

A bit of Google revealing some success with people using Automator, but the solutions appear outdated.

I am using Mountain Lion (10.8.2)

view options

share|improve this question
    
I think the Automator solution you found via Google, that you said appears 'outdated', was this: macs.about.com/od/usingyourmac/ss/… - but it's actually the same process as Lauri Ranta has given. It may have been just the word 'specific' changing to 'specified' (I see, in my Mavericks), that threw you off! Just noting this in case it helps anyone else in future. :) –  foregon 2 days ago
add comment

1 Answer

One option is to use the Set Folder Views action in Automator:

There's no way to change the size or position of windows though.

You could also use a script like this, but it's just as slow Automator when applying window properties is checked.

tell application "Finder"
    folders of entire contents of (POSIX file "/Users/username/Folder/" as alias)
    repeat with f in result
        open contents of f
        tell Finder window 1
            set toolbar visible to false
            set sidebar width to 0
            set statusbar visible to false
            set current view to column view
            set bounds to {474, 250, 1318, 750}
            tell its column view options
                set shows icon to false
            end tell
            close
        end tell
    end repeat
end tell

Use as Defaults applies to all normal folders, but folders that have been opened before have .DS_Store files which can override some of the defaults. You could also delete the .DS_Store files:

find ~/Folder -name .DS_Store -delete
osascript -e 'quit app "Finder"'

It also removes Spotlight comments. Once you change some view options or the sorting modes, they are saved to a .DS_Store file which overrides the defaults again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.