• 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: "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

  • Prev by Date: vcal and ics files in OS9
  • Next by Date: Re: a script for saving text from the clipboard to a file
  • Previous by thread: Re: Converting Unix path to AppleScript path
  • Next by thread: Re: Converting Unix path to AppleScript path
  • Index(es):
    • Date
    • Thread