Apparently launching applescript via osascript results in an error when the applescript contains a dialog box (“No user interaction allowed”). I have a Unix script that needs to wait for the user to indicate a manual task has been completed before proceeding. The following seemed like a trivial solution:
osascript -e "Display Dialog 'Please swap tapes' buttons ('OK')"
Obviously since I get this error I can’t do it. Has anyone come up with a clever way to circumvent this problem (I don’t understand why it is a problem in the first place) so I don’t have to bring up a dumb terminal session just to get a reply? TIA.