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


Click here to return to the 'Stupid Geek Log' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Stupid Geek Log
Authored by: james_sorenson on Dec 17, '01 04:32:52PM

Well, the GeekLog messed up my back-slashes. Here is the REAl applescript for path-conversion:

on unix_path(mac_path)
set unixpath to (POSIX path of mac_path)
set chars to every character of unixpath
repeat with i from 1 to length of chars
if "!$&\"'*(){[|;<>?~` \\" contains (item i of chars as text) then
set item i of chars to "\\" & (item i of chars as text)
end if
end repeat
return every item of chars as string
end unix_path



[ Reply to This | # ]