• 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: File Path to URL question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: File Path to URL question... (From: Bryan Walton <email@hidden>)
 >Re: File Path to URL question... (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Quark 6.5 save a file with replacing
  • Next by Date: Re: Weeding out words
  • Previous by thread: Re: File Path to URL question...
  • Next by thread: Re: File Path to URL question...
  • Index(es):
    • Date
    • Thread