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


Click here to return to the 'problem with filename spaces' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
problem with filename spaces
Authored by: googoo on Nov 19, '02 01:11:24PM

I think you can get around the space-in-filename problem by inserting a quote in the UNIX (shell script) command generated by the AppleScript. Do this by changing the first do shell script line to

do shell script "/usr/bin/lp " & "'" & thePath & "'"

Note that there is a single quote inside a pair of double quotes on either side of & thePath &.You would have to simillarly modify the second command. I will test this and see if it works.

-Mark



[ Reply to This | # ]
problem with filename spaces
Authored by: googoo on Nov 19, '02 01:39:33PM

The solution that I proposed above works. The quotes around the file path ensure that spaces are treated as characters rather than as seperators between different file names.

Thanks for pointing out this problem with my script. I have very few file names with spaces and did not notice it.

-Mark

P.S. I am correcting the script that I posted to include this improvement.



[ Reply to This | # ]