I am using Mac OSX 10.8.3.
I have a workflow in Automator set up that is as follows:
This works in testing:
Get Value of Variable - set the Variable it obtains the value of to path
5a. set action 5 to ignore input from the above action 4 - Ctrl + mouse click on the action Title to get the Contextual Menu
Get Folder Contents - get the contents of the folder at the path passed on from Action 5
You can add your Move actions after as you wish.
You can use a Run Shell Script Action
, with the following code:
echo ${1##*/}
and Pass input:
set to as arguments
.
This will filter the passed input, giving only the file basename as output.
You should put this step before the action that sets FolderName
variable.