lundi 2 mars 2015

Automatically sort Finder items based on file type?


I work in video production, when a new job comes in we use Post Haste to create a new directory with our folder structure and default files included.


What I'm looking to do is automate the process of sorting files into folders, via Folder Actions.


I found this tutorial, however this refers to one specific directory, and our directory is constantly changing.


One of the default Folder Actions -- with the purpose of alerting users to new items in a folder -- starts off by defining the folder as the folder the script is applied to:



tell application "Finder"
set the folder_name to the name of this_folder
end tell


Is there any way I can combine these two, the AppleScript and the Automator Workflow, so that the Folder Action can be applied to any folder, without the need to constantly edit the workflow?


Thanks.





Aucun commentaire:

Enregistrer un commentaire