User Tools

Site Tools


apple:development

Development

Create a popup from a shell script

Use a sh(1) function like:

function display_error (){
# Error message in dialog box
osascript <<-EOF
tell application "Finder"
activate
set dd to display dialog "\n$Error\n" buttons {"OK"} default button 1 with icon caution giving up after 30
set UserResponse to button returned of dd
end tell
EOF
}
apple/development.txt · Last modified: 2015/06/08 14:30 by ap

Informativa sui cookie