| |||||||
| Development Programming, system development, databases, web development, etc. |
|
| | LinkBack | Thread Tools | Display Modes |
| Sponsored Links |
| | #1 (permalink) |
| Junior Member ![]() Join Date: Mar 2008 Location: Dubai
Posts: 2
| Applescript in shell I tried shell to execute applescript. osascript -e 'display dialog "hi"' it gives message "No user interaction allowed" and also for osascript -e 'choose file' Wats wrong with my code? With Thankzz Muhammed |
| | |
| | #3 (permalink) |
| Senior Member ![]() ![]() Join Date: Sep 2007 Location: Abu Dhabi
Posts: 178
| Sorry I missed this one, haven't been around lately. This is a pretty easy one: osascript doesn't have a GUI to interact with, so you need to tell something with a GUI to display the dialog. In this case, Finder would be the way to go. Here is what you want: osascript -e 'tell application "Finder" to display dialog "hi"' |
| | |
| Thread Tools | |
| Display Modes | |
| |