Sorry about that. Realized that I had forgotten to quote the first parameter to the embedded applescript, which would cause issues with paths containing spaces.