Finder "original item" not working on valid alias
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