I'm having difficulty launching a simple applescript choice list from a shell script. I have no issue launching dialog boxes to capture user input in the same way within my shell script. For whatever reason, the command below works inconsistently, the first call always times out. Subsequent calls with the same syntax sometimes work, sometimes don't. I get the same behavior when I run the command independent of the script within a bash shell - first execution times out, subsequent runs eventually work and display the choose list. It's driving me nuts, what am I missing! Thanks!
osascript -e 'Tell application "System Events" to return choose from list {"Students", "Faculty-Staff"}'