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

Re: Replace Colon with Forward Slash


  • Subject: Re: Replace Colon with Forward Slash
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 15 Jul 2008 09:10:16 -0700

On Jul 15, 2008, at 8:57 AM, Rick Dwyer wrote:

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?


Yes, very easy.

POSIX path of "HardDrive:Library:Directory1:Directory2:"

--> "/Library/Directory1/Directory2/"

This assumes that "HardDrive" is the actual name of the drive.

-- Michelle

--
Please contribute to the Leukemia and Lymphoma Society, and help me meet my fund raising goal for my marathon training.
<http://www.active.com/donate/tntdms/tntdmsMSteine>





_______________________________________________ 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: Rick Dwyer <email@hidden>
References: 
 >Replace Colon with Forward Slash (From: Rick Dwyer <email@hidden>)

  • Prev by Date: Re: Replace : with / in Applescript
  • Next by Date: Re: Rsync via Applescript
  • Previous by thread: Replace Colon with Forward Slash
  • Next by thread: Re: Replace Colon with Forward Slash
  • Index(es):
    • Date
    • Thread