-
AppleScript woes with Compressor 3.5.3
So I’m running Compressor 3.5.3 on Mac OS X 10.9.1 (a system that has FCPX + Compressor 4 + Motion 5 installed, in addition to FCS3). I’m trying to revise my encoding workflow a bit. Currently I’m using x264encoder in Compressor to quickly make high quality H.264 files that wouldn’t be possible with Apple’s lower-quality H.264 encoder. It works well, but of course x264encoder is a QuickTime component, which means it can only encode files that wind up living in an MOV container. Most of my H.264 encodes I need to be MP4s, and until now I’ve been manually re-muxing them. This is a manual step that’s annoying, to say the least—especially when I’m trying to encode a ton of different sources and/or outputs at once.
So, looking to improve on this situation, I looked into calling SublerCLI (the command-line version of the Subler MP4 muxing utility) via AppleScript automatically at the end of my encoding. After some wrestling, I finally got this working perfectly—an AppleScript “application” bundle that has the SublerCLI executable embedded in it, which gets called via “do shell script”, runs, and then deletes the .mov file automatically, leaving only the MP4 file I want (it even works to preserve anamorphic files, which is a nice side-benefit!).
Unfortunately, as soon as I copy these presets to my other editors’ Macs (which are running 10.8.5), the workflow stops working. I don’t get any errors thrown, I just wind up with a .mov file and no MP4. Weirdly, dragging said MOV file to the AppleScript “application” works fine, as does executing the exact command at their local Terminal that the AppleScript calls. And yet, no dice when called from Compressor.
So all I can say is, WTF? Why does this happen? What is the missing link here? I’ve already confirmed that there are no permission issues (the Application is owned by that local user once it’s unzipped or copied from a DMG, and it’s read-accessible to the system, just like it is on my machine). The Compressor preset is referencing the script in the proper location (the local /Applications folder). Gatekeeper is set to allow apps from “Anywhere” to run without interference. All I can think is that there’s some other vague 10.8.5 to 10.9 difference that’s causing this, but even re-saving the AppleScript locally on the 10.8.5 machines results in no change. And one would think that a script that works fine when files are dragged to it would continue to work fine when called by Compressor.
Anyone else have AppleScript-powered Compressor workflows similar to this that are working fine, or am I out in rarely-traveled waters here?