Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'BUG fix - posix path needs to be quoted' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
BUG fix - posix path needs to be quoted
Authored by: Krioni on Nov 26, '02 01:43:04PM

Posix Path used to include escaped characters so spaces, etc would survive on the shell. In OS X 10.2, at least (and maybe elsewhere), you need to use <b>quoted form of Posix Path</b>, rather than just <b>Posix Path</b>:

<pre>
on open filelist
repeat with i in filelist
do shell script "my_command " & quoted form of POSIX path of i
end repeat
end open
</pre>

With just Posix Path you'll get errors whenever the path includes something the shell doesn't like.



[ Reply to This | # ]