Re: Replace : with / in Applescript
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