• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Converting Unix path to AppleScript path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Converting Unix path to AppleScript path (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: How far back?
  • Next by Date: split up text for Powerpoint
  • Previous by thread: Re: Converting Unix path to AppleScript path
  • Next by thread: Re: Converting Unix path to AppleScript path
  • Index(es):
    • Date
    • Thread