Re: do shell script problem with files with spaces in the name
Re: do shell script problem with files with spaces in the name
- Subject: Re: do shell script problem with files with spaces in the name
- From: Christopher Nebel <email@hidden>
- Date: Tue, 17 May 2005 11:59:28 -0700
On May 16, 2005, at 5:02 PM, Mike Ashley wrote:
On May 16, 2005, at 4:44 PM, Christopher Nebel wrote:
On May 15, 2005, at 3:03 PM, Joe Block wrote:
Am I doing something wrong here, or is Automator's handling of
filenames broken?
It's busted. (And strictly speaking, it's the Run Shell Script
action, not the Automator application, that's busted.) Using
"quoted form" is not the correct solution, but you grasp the
problem correctly.
Chris, thanks for the confirmation. If quoted form is incorrect,
what do you recommend as a workaround for now?
I'm sorry, I think we were talking about different things. The
correct fix to Run Shell Script itself does not involve quoting
anything, but "quoted form" should serve as a workaround. You'll
need to turn your list of files into a list of quoted POSIX paths,
which you should be able to do by adding a Run AppleScript action in
between the original two:
on run {input, parameters}
repeat with i in input
set contents of i to quoted form of POSIX path of i
end
return input
end
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden