Move file types to their individual folder

Posted in AppleScript on December 14, 2016 · 1 min read
If I am delivered large numbers of zip archives to review I find it time consuming to create a folder with that file's name and then move that zip into their directory.

The below script I really wanted to focus on my experience with handlers. The commented displayMessage() handlers, such as displayMessage(foobar, scriptTitle) takes the variable in the line above and allows the reader to uncomment the handler and see what the variable returns through a display dialog. Be aware, if you uncomment the handler and have several files defined through the variable fileExt the display dialog will render each one. For example, 100 zip archives fired by the script would produce 100 display handlers. If you would like to see what the script can do place two zip files in a directory and run the script.

Help the site go ad free:
Storm Trooper