Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I’m trying to use osascript to produce a simple UI menu, but instead of the default “OK”, and “Cancel” I would like to change the behavior to the following:

“Cancel” changed to “Exit”
“OK” changed to “Run”

Have the “Run” button execute a BASH script.

What I have tried:

Code thus far:


osascript -e 'display dialog "Press RUN to execute the Optimzer" with title "Optimizer"'
Posted
Updated 9-Jun-21 8:59am
v2
Comments
SeeSharp2 9-Jun-21 15:27pm    
It does not look like that is an option, https://ss64.com/osx/osascript.html

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900