Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Those results look good.

I'm heading out again in a few minutes, gone for a couple hours, so this is just a quick comment.

You should try some of the other scripts I've posted, starting with post #4. In particular, the ones that convert the first item of the selection to an alias should work.

If they work, you don't have to post full results, just say which script you tried and that it worked.

If a script doesn't work, then it'll be useful to see the full results.
 
Will do. I have to go to bed now and will continue after work tomorrow.

Thanks so much for all the help.
 
I made a shared folder on my AFP server named "home", and mounted it from several OS versions.

Under 10.6.8 Snow Leopard and 10.8.5 Mountain Lion, it mounted as "home" and the test script worked.

Under 10.11.3 El Capitan, it mounted as "home" and the test script failed, showing the same error you posted. I then made a directory /Volumes/home on the El Cap system, remounted it (it automounted as "home-1"), and the test script worked.

Test script:
Code:
tell application "Finder"
    set _items to selection
    log "Items: " & (count of _items)
 
    set _first to (first item of _items)
    log "First: " & _first
 
    log "Disk: " & (disk of _first)
    log "Fold: " & (folder of _first)
    log "Fold name: " & name of (folder of _first)
 
    set _alias to _first as alias
    log "Alias: " & (_alias)
    log "Path: " & (POSIX path of _alias)
 
end tell
This script logs _first (which fails when mounted as "home"), and also converts _first to an alias. The alias shows the correct path, and its Posix path is also correct.

Please confirm this works on your system, with both 1 and 2 mounts of "home" from your NAS.

At this point, it looks like a bug in AppleScript support that appeared some time in 10.9 or later. It also looks like making a folder at /Volumes/home to force automounter numbering of mounted shares will avoid this bug.

If this doesn't fix the problem for you, or you have other questions about how to accomplish something with your script, feel free to ask.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.