Hello,
We are in the process of switching from Windows 7 tablets to MAcBook Airs. I'm working on writing an Applescript that will migrate a user's backup data from the tablet into the correct folders on the Mac. I've got the script pretty well ironed our, but now see that I need the variable for the logged in user. I have tried
set user to do shell script "/usr/bin/logname"
and
set user to do shell script "/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'"
but they both result in an error on the JSS of:
Script result: /private/tmp/MacPCDataRestore.scpt: execution error: No user interaction allowed. (-1713)
Any ideas on how to accomplish this in an Applescript? I could do this all as a shell script, but I wanted to be able to pop up dialog boxes letting the user know what was happening. So the other option would be how to display messages from a shell script.
Thanks, Tim