OK -- I have an iMac and MacBook Air both running 10.14.2.
I have a script that creates some ALIAS files on Desktop to a FileShare.
My script works on the iMac great but I get this error on MacBook Air:
456:501: execution error: Finder got an error: Can’t make class alias file. (-2710)
Here is part of my script that is defining the paths and creating alias files:
set Cloud to POSIX file "$SMBHomeDirectory"
set Public to POSIX file "/Volumes/share"
set Staff to POSIX file "/Volumes/path/here"
set Class to POSIX file "/Volumes/path2/here"
tell application "Finder"
make new alias file at desktop to Cloud
set name of result to "Cloud"
make new alias file at desktop to Public
set name of result to "Public"
make new alias file at desktop to Staff
set name of result to "Staff"
make new alias file at desktop to Class
set name of result to "Class"
end tell
Any thoughts on this would be appreciated. Throwing me for a loop since it works on 1 machine but not another.
Thank you in advance.
