How to Open a Finder Window to a Specific Folder With Specific View Settings

I have a macro that opens a specific folder in the Finder, however I want to be able to change the view settings to gallery view.

I do not want all Finder windows to do it, just the one I open in this macro.

Any help would be appreciated.

Thank you.

Mike

I believe that the Finder remembers the last view that you set.

So, if you make a macro that changes the window to gallery view, all subsequent views will be set to gallery.

You could make two macros. One that sets gallery, and the other that would set your normal view. Then you would just trigger the needed macro/view as you like.

Example AppleScript that will show Gallery view:

tell application "Finder"
	activate
	set the current view of Finder window 1 to flow view
end tell

Example AppleScript that will show List view:

tell application "Finder"
	activate
	set the current view of Finder window 1 to list view
end tell

Example AppleScript that will show Icon view:

tell application "Finder"
	activate
	set the current view of Finder window 1 to icon view
end tell

Example AppleScript that will show Column view:

tell application "Finder"
	activate
	set the current view of Finder window 1 to column view
end tell

I hope that helps!

3 Likes

And here is a AppleScript that will toggle the view between Gallery and Column:

tell application "Finder"
	activate
	if the current view of Finder window 1 is column view then
		set the current view of Finder window 1 to flow view
	else
		set the current view of Finder window 1 to column view
	end if
end tell
2 Likes

I too like to have most of my folders configured a certain way, but have select folders configured differently. So I built a macro that ensures they are configured a specific way anytime the Finder folder changes.

For instance most of my folders I like to use list view and grouped by kind, but certain other folders (like my downloads folder) are configured to use stacks.

So whenever the front Finder window changes, it gets it's name and configures it accordingly. The macro is below if you want to check it out to see what I am talking about. If you have any questions about it don't hesitate to ask.

-Chris

59)[AS-F] Windows- Auto Configure.kmmacros (38 KB)

Macro screenshot (click to expand/collapse)

Can you please share the macro that opens a specific folder in the Finder?

Hey There,

That's not too difficult.

If you search the forum you'll find even more examples.

-Chris


Using AppleScript:

Open a Specific Folder in the Finder (AppleScript) v1.00.kmmacros (5.5 KB)
Keyboard Maestro Export

Using native Keyboard Maestro actions:

Open a Specific Folder in the Finder (AppleScript) v1.00 copy.kmmacros (6.3 KB)
Keyboard Maestro Export