Hello,
Was wondering if anyone could please help. I am currently in the process of testing login hooks to mount shares within our AD test environment. We are using a bash script with a profile, to run a basic Apple Script command, this mounts the share but fails when launched as a user.
sudo -u $3 osascript -e 'mount volume "afp://server/share"'
This seems to work with systems prior to 10.10, but just sits on the login window with newer systems. We can see the process for osascript, when the process is killed the desktop appears. It seems like Apple have limited the use of Apple Script, but works fine as a root user.
Any help would be much appreciated.
