Jump to content

How to change a Finder window's "Sort By" option in workflow?

Recommended Posts

Finder's scripting definitions seem to allow for sorting (so no GUI scripting, but AppleScript nonetheless).



sortv : Return the specified object(s) in a sorted list

sort specifier : a list of finder objects to sort

by property : the property to sort the items by (name, index, date, etc.)

→ specifier : the sorted items in their new order


You can see the documentation via Script Editor (App), File > Open Dictionary (⇧⌘O) > Finder (from the list). 

By the by, Vitor has a neat workflow to open AppleScript Dictionaries.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...