10.10.2010

Automated Folder Structures for OS X

Automated Folder StructureEveryone who has been working on larger projects knows how essential a tidy folder structure is. But even with a good system files often get lost in the hustle of last-second tasks or fast paced projects. To spare the time of sorting the files every single time we looked for a way to automate the process and came up with an easy-to-customize solution. Looking for specific file types the script takes files from a specified BIN folder and moves them to their designated subfolder.

. the package now!

To answer the first question: yes, we will be releasing a version for the PC soon. As Windows doesn’t provide user-defined folder actions, we are now working on a separate application to handle the structuring.

Installing the script is fairly easy. Create your folder structure as needed (but in any case make sure you create a folder to use as bin), and open the script jdStructure.scpt up in Applescript Editor. By system default just double-clicking it should be okay.

jdStructure: Change Path to BINChange the content of the property FOLDER_BIN to the relative path of your designated BINfolder (in our example 00_bin). Then run it. (Cmd + 'R' Key )

jdStructure: Choose BINIt will ask you to select the folder you want to be watched. Navigate to the BIN folder, which will be the one collecting all the messy data. Thats it, it’s up and running. Start dragging files into your bin. If the structure is not matching your needs, you can always alter it – see Config.

The script allows you to add, edit and delete any rules applied to the folders. Open it, create both a new TYPE_ and a new FOLDER_ variable (or change the existing ones) following the same syntax rules as the given ones. Append them to the lists TYPES and PATHS and you are good to go!

jdStructure: Add StructureIf you don’t want it to create folders automatically or if you wish to be notified by an alert box every time it is done, change the values CREATE_FOLDERS or NOTIFY_DONE accordingly to true.


How do I specify the path to the subfolder of a subfolder?

The script is relying on you to use a colon (:) as delimiter of your path, e.g. footage:audio being the folder audio inside the folder footage.


Can I have multiple folder structures?

To create more than just one structure, duplicate the scriptfile and rename the files (e.g. jdStructure_vfx.scpt and jdStructure_web.scpt) before running them.


I installed the script…and it’s fuckin’ gone!

Don’t worry, the file did not vanish into thin air, but to be used as a folder action the system needs it to be in a specific location. You can always find it here: HD > Library > Scripts > Folder Action Scripts


I’d like to assign the same structure to multiple folders.

No Problem. To bypass the scripts internal folder selection, which only allows you to choose a single folder, option-click on the soon-to-be-watched folder and choose “Folder Actions” from the options menu. Just follow the instructions from there on.


How do I remove the script?

What bearish manners you’ve got! We present you with something as valuable as that and you’re willing to just throw it away? That’s fine, just delete the file from HD > Library > Scripts > Folder Action Scripts or use the option-click > “Folder Actions” to remove any applied rules.


Your script made my life a lot easier…how can I repay you?

Spread the word – more subscribers means more posts from us! And then you can always go to the tab Donate.



Jake & Dan

...you might also be interested in:

2 comments

  1. October 18, 2010

    [...] Jake and Dan offer a handy little script for automating project and content directory tasks on OS X, free for download because they like to share. Check out the post and downloadable script and folder structures here. [...]

  2. October 18, 2010
    Piraz said...

    WoW! It’s much much useful!! Thanks for sharing your work J&D!

Leave a Reply