0

I have an Automator app executing an FFMPEG shell script. For some reason the ffmpeg job run twice. Can someone please have a look?
Thanks
enter image description here

1
  • See 'results' when the job is running and you will see the Get is an array of 2 folder addressen. Get can Stack variables. – CousinCocaine Jun 7 '15 at 9:48
2

Get rid of those get/set variable actions, and it'll stop doing that. Keep in mind that if two actions appear "linked" in Automator, it means the output of one is being fed to the input of the other. You don't need variables in this case. Basically, the folder from "Ask for Finder Items" is being passed down the chain to your shell script, along the way setting it to a variable, and then getting the same folder, and adding it to the stream. This stream now contains two folders.

The purpose of the get/set variable actions are for when you have a situation where you want to use a piece of data with two actions which terminate the stream. You can't get the data once it's been consumed by said action, so you have to store it somewhere so that you can retrieve it again.

1
  • I wanted to make a service to Finder. Wanted to run (debug) it directly from Automator. Says "This service will not receive input when run inside Automator. To test this service within Automator, add the “Get Specified Finder Items” action to the beginning of your workflow. Remove or disable the action before running the workflow outside of Automator." Of course I didn't remove "Get Specified Finder Items" so it merged the input from right click and the results from "Get …" action which were the exact same. DON'T FORGET TO REMOVE THAT TEMPORARY ACTION! And review your already created services! – biziclop Jul 10 '19 at 7:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .