Skip to content

Instantly share code, notes, and snippets.

@rmanly
Created October 1, 2012 21:24
Show Gist options
  • Save rmanly/3814523 to your computer and use it in GitHub Desktop.
Save rmanly/3814523 to your computer and use it in GitHub Desktop.
AppleScript Window
#!/bin/bash
# script your commands here
touch file1
# this is the window block
/usr/bin/osascript << EOF
tell application "Finder"
activate
display dialog "Running Maintenance Tasks" buttons {"Finish IT!"} with icon caution
end tell
EOF
# final command(s) runs after button is pressed
touch file2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment