Re: Converting Unix path to AppleScript path
Re: Converting Unix path to AppleScript path
- Subject: Re: Converting Unix path to AppleScript path
- From: Gnarlodious <email@hidden>
- Date: Mon, 27 Mar 2006 17:58:57 -0700
- Thread-topic: Converting Unix path to AppleScript path
Entity Stockly, Ed spoke thus:
<file:///Volumes/Mag_Production/Color Lab Images/03:26/Issue #9 pr
epressed/tm.0326.chinaRS.tiff>
Assuming the character ":" here represents ">" in the filesystem, I would
say something like this:
set someText to
"file:///Volumes/Mag_Production/Color Lab Images/03:26/Issue #9 pr
epressed/tm.0326.chinaRS.tiff"
do shell script "echo " & someText & "|sed 's|^.*///\\(.*$\\)|/\\1|'|sed
's|:|>|g'|sed 's| | |g'|sed 's|#|#|g' "
the result as POSIX file
alias result
-- Gnarlie
_______________________________________________
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