• 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
Replace Colon with Forward Slash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Replace Colon with Forward Slash


  • Subject: Replace Colon with Forward Slash
  • From: Rick Dwyer <email@hidden>
  • Date: Tue, 15 Jul 2008 11:57:16 -0400

Hello again list.


Applescript returns a path to a file to me in the following format:

HardDrive:Library:Directory1:Directory2: etc.

I need to convert the returned string into a more terminal friendly string such as:

/Library/Directory1/Directory2/

Is there an easy way to eliminate the hard drive name from the beginning of the string and replace the colons with forward slashes?

Thanks in advance.

Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Replace Colon with Forward Slash
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Open Windows.
  • Next by Date: Re: Replace : with / in Applescript
  • Previous by thread: Re: Replace : with / in Applescript
  • Next by thread: Re: Replace Colon with Forward Slash
  • Index(es):
    • Date
    • Thread