Created
October 26, 2013 08:34
-
-
Save danijeljw/7166815 to your computer and use it in GitHub Desktop.
AppleScript display dialog box with icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.icns") 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