• 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
Finder "original item" not working on valid alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder "original item" not working on valid alias


  • Subject: Finder "original item" not working on valid alias
  • From: Ken Tozier <email@hidden>
  • Date: Fri, 10 Apr 2009 21:03:36 -0400

Hi

I have a folder containing aliases to various servers and find that when I loop through the alias list, attempting to get "original item" on an alias is always failing with the error

Finder got an error: Can’t get original item of alias file "NORTHWEST_WEEKLIES alias" of folder "Sites" of folder "PMX_DocToHTML_2" of folder "Desktop" of folder "kentozier" of folder "Users" of startup disk.

Here's the script anyone point out what I'm doing wrong?

MountServers()

on MountServers()
	set myPath to path to me
	tell application "Finder"
		set myContainer to (container of myPath) as alias
		set siteAliasFolder to folder "Sites" of myContainer
		set siteAliases to alias files of siteAliasFolder

		repeat with anItem in siteAliases
			set x to original item of anItem
			set itemName to name of x
			open anItem
			close folder itemName
		end repeat
	end tell
end MountServers



_______________________________________________
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
  • Follow-Ups:
    • Re: Finder "original item" not working on valid alias
      • From: Yvan KOENIG <email@hidden>
    • Re: Finder "original item" not working on valid alias
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: GUI scripting Flash
  • Next by Date: Re: Finder "original item" not working on valid alias
  • Previous by thread: Re: Weird issues with Properties
  • Next by thread: Re: Finder "original item" not working on valid alias
  • Index(es):
    • Date
    • Thread