Hey Muhammed, good to see you here. Unfortunatey Applescript is not something I'm very good at, but I hope someone else can help. I think it'd be great to get more AS stuff on the site.
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
Hey Muhammed, good to see you here. Unfortunatey Applescript is not something I'm very good at, but I hope someone else can help. I think it'd be great to get more AS stuff on the site.
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"'
shameless self promotion
Everything is fine, just suffering from time/attention management issues![]()
shameless self promotion
Bookmarks