PDA

View Full Version : AppleScript and Compressor




Bobster16
Jun 15, 2011, 07:30 PM
Hi, I'm not too familiar with AppleScript (but i do have some programming experience), and I was wondering if anybody out there could help me with getting a workflow down with Compressor.

This is what I want to happen:
I want to be able to export an mp4 video to a specific folder, an AppleScript, acting as a Folder Action, will be watching that folder and will send that video to a Compressor droplet converting it to an mov video file. Once Compressor is done, I want it to launch an AppleScript that will move (copy first, then delete) the mov to another folder and delete the mp4 file.

I know this is possible, but I also want to make sure that it doesn't get in an endless repeat cycle. Maybe run the first AppleScript at a certain time each day so that it doesn't detect the video that Compressor pushes out?

Any help would be awesome!



jiminaus
Jun 15, 2011, 07:42 PM
I know this is possible, but I also want to make sure that it doesn't get in an endless repeat cycle. Maybe run the first AppleScript at a certain time each day so that it doesn't detect the video that Compressor pushes out?


Why not just have the mov outputted to a separate folder, if not straight to the final destination folder?

Bobster16
Jun 15, 2011, 07:57 PM
It doesn't let you set a different destination when you create a custom setting and a Droplet. The options are the Desktop, the Source folder, or the user's Movies folder.