Thanks to Mike Ashley from the Automator-users mailing list for the following code snippet that works around this:
on run {input, parameters}
set output to {}
repeat with i from 1 to length of input
set x to item i of input
set output to output & {quoted form of POSIX path of x}
end repeat
return output
end run
Just put a "do applescript" stage ahead of the "do shell script" stage, and put the above code in. It'll take the list of file aliases and convert them to properly quoted paths for the shell script to act on.
2 comments:
Shouldn't this be a bug for Apple to fix? In the mean time, we have your workaround.
Ed
Hopefully you'll find the time to reply. I want to create an automator workflow to utilize "setfile -a V" to hide folders. I'm having a hard time getting this to work properly. The biggest problem that I have is designating the selected finder items to be the folder that the command is ran on.
Can you help?
Post a Comment