• 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: Resolving an alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resolving an alias


  • Subject: Re: Resolving an alias
  • From: Emmanuel LEVY <email@hidden>
  • Date: Fri, 30 Oct 2009 20:51:35 +0100


On Oct 30, 2009, at 5:53 PM, Luther Fuller wrote:
We think it's better to work with posix paths rather than the native mac types for files.

(For those interested, the strong reason is that alias fails at making the difference between two mounted volumes or two shared volumes with the same name).

Mmmmm. I wondered. I was sure that aliases COULD distinguish between two volumes with the same name. An experiment is in order. Here's the script ...


on run
set test1 to alias "Work_Files:test-1.sparsebundle" -- disk name = "testDisk"

Yes. As long as they exist, aliases are very knowledgeable. But how do you make one from scratch? The problem is not the aliases to the volumes, but the aliases to the files in those volumes.


My example. I've got two volumes apparently named "Library" mounted. (I say apparently because for unix one of them is "Library-1"). I can make aliases to them which work. Now I want to access /Volumes/ Library-1/somefile. If I had to use aliases, I would have to ask to some app (such as Finder) to provide me with an alias for the file named "somefile" in the alias-which-works: that's a call to an app for each path you need. Whereas with posix paths, providing a path for my file is just a string concatenation.

The point is, you won't build an alias to my file with "blah:blah:blah:blah" as alias. You'll have to use posix paths as some step - so, why not using them for good.

Emmanuel
_______________________________________________
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
References: 
 >Resolving an alias (From: Thomas Fischer <email@hidden>)
 >Re: Resolving an alias (From: Sander Tekelenburg <email@hidden>)
 >Re: Resolving an alias (From: Thomas Fischer <email@hidden>)
 >Re: Resolving an alias (From: Emmanuel LEVY <email@hidden>)
 >Re: Resolving an alias (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Unzip multiple items Applescript-terminal syntax help!
  • Next by Date: getting the file icon
  • Previous by thread: Re: Resolving an alias
  • Next by thread: Re: Resolving an alias
  • Index(es):
    • Date
    • Thread