• 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 : with / in Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace : with / in Applescript


  • Subject: Re: Replace : with / in Applescript
  • From: Jay Louvion <email@hidden>
  • Date: Tue, 15 Jul 2008 18:00:58 +0200
  • Thread-topic: Replace : with / in Applescript

Title: Re: Replace : with / in Applescript
On 15.07.2008 17:49, "Rick Dwyer" <email@hidden> spake thus:

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


Well, I would go for the all-time classic:

If “HardDrive:Library:Directory1:Directory2:” is a variable called the TheFolder for example, simply coerce using quoted form of POSIX path of TheFolder

Best,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

www.studiocasagrande.com

P Please consider the environment before printing this email.

 _______________________________________________
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 : with / in Applescript
      • From: Christopher Nebel <email@hidden>
References: 
 >Replace : with / in Applescript (From: Rick Dwyer <email@hidden>)

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