Folder Creation with Properties

I am trying to create a folder and at the same time assign the property current view to list view.

This attempt doesn’t seem to work (the view defaults to icon view):

tell application "Finder"
	make new folder with properties {name:"NAME GOES HERE", current view:list view}
end tell

Any information would be greatly arreciated,


When you make folders, it just takes the name property first. You set the other properties in ohter statements.


Also, of course, ‘current view’ is a Finder window property, not a folder property. The Finder window in this case is the ‘container window’ of the folder you’ve just created.

tell application "Finder"
	make new folder at desktop with properties {name:"NAME GOES HERE"}
	set current view of container window of result to list view
end tell

Thanks Nigel and kel!
Its people like you who make this forum great!

It worked like a charm!