Re: File Path to URL question...
Re: File Path to URL question...
- Subject: Re: File Path to URL question...
- From: Malcolm Fitzgerald <email@hidden>
- Date: Fri, 9 Feb 2007 09:12:17 +1100
On 09/02/2007, at 3:13 AM, Bryan Walton wrote:
Each user has a volume from our G5 XServe (10.4.6) / RAID that is on
their desktop, and that is where these file paths lead. The volume is
called "Client Work", and is a share point on the RAID.
file://localhost/Volumes/Client Files-2/
file://localhost/Volumes/Client Files/
When the script is run it will sometimes place the "-2" at the end of
the volume name (I'm assuming this has to be related to the alias
class specific to the machine the script is run from). So,
naturally-the clickable URL errors when a user from another
workstation receives the link and tries to go-to/open.
The finder will use numbering to ensure that files are not overwritten.
I guess something similar is happening here when the system sees that
the mount point exists (because it hasn't been removed properly or some
such) and quietly proceeds by appending "-2".
I would start using brute force at this point.
if gURL starts with "file://localhost/Volumes/Client Files" then
set {oldTID, text item delimiters} to {text item delimiters, "/"}
set urlPath to text items of gURL
set item 5 of urlPath to "Client Files"
set gURL to urlPath as unicode text
set {text item delimiters} to {oldTID}
end
malcolm
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden