Skip to content

Instantly share code, notes, and snippets.

@danijeljw
Created October 26, 2013 08:34
Show Gist options
  • Save danijeljw/7166815 to your computer and use it in GitHub Desktop.
Save danijeljw/7166815 to your computer and use it in GitHub Desktop.
AppleScript display dialog box with icon
Display dialog box with custom icon called _icon.icns_
```
display dialog "My custom icon " buttons {"Cancel", "Continue"} default button "Continue" with icon file "Contents:Resources:icon.icns"
```
```
set x to ((path to me as text) & "Contents:Resources:myicon.icn­s") as alias
display dialog "your text here" with icon x
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment