Re: Converting Unix path to AppleScript path
Re: Converting Unix path to AppleScript path
- Subject: Re: Converting Unix path to AppleScript path
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 27 Mar 2006 19:16:39 -0800
> > Gnarlodious>>>>I'm having a problem with the character ":" in this folder name: /03:26/.
>
> What filesystem allows that character? Or is it a euphemism for a more offensive character?
Actually, the folder's name is "03/26". The "/"s in mac file names are automatically converted to ":"s when exported to an xml file from Adobe InDesign and back to "/"s with the appleScript POSIX path command. For some reason the and # are left behind. One worry is that there are more characters that get replaced with % characters in the export to XML but not replaced in the conversion back to appleScript.
>>>do shell script "echo " & someText & "|sed 's|^.*///\\(.*$\\)|/\\1|'|sed's|:|>|g'|sed 's| ||g'|sed 's|#|#|g' "
the result as POSIX file
Thanks, but this is totally incomprehensible to me.
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden