• 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: Using "original item" property on aliases from a network share
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using "original item" property on aliases from a network share


  • Subject: Re: Using "original item" property on aliases from a network share
  • From: Axel <email@hidden>
  • Date: Thu, 25 Jun 2009 10:40:00 +0200

Le 24/06/2009 19:17, Emmanuel LEVY a écrit :



The only way I know to work with the volume's name of an AFP mount is the following strategy: search /Volumes/ (use do shell script "ls /Volumes") for myHD, myHD-1, myHD-2 etc until you find your volume. If you have several volumes with the same name the only way to figure out which is which is to check for a known file.

Emmanuel


I managed to resolve aliases on network volumes with the following code :

on run argv
	set curfile to alias (POSIX file (item 1 of argv) as text)
	tell application "Finder"
		set origfile to original item of (curfile)
	end tell
	return POSIX path of (origfile as text)
end run

Thanks for your answers.
_______________________________________________
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: 
 >Using "original item" property on aliases from a network share (From: Axel <email@hidden>)
 >Re: Using "original item" property on aliases from a network share (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: Using "original item" property on aliases from a network share
  • Next by Date: Re: Using "original item" property on aliases from a network share
  • Previous by thread: Re: Using "original item" property on aliases from a network share
  • Next by thread: launch an application, and on quit, logout?
  • Index(es):
    • Date
    • Thread