Set an Icon from an Application To Use In Dialog Boxes


If you find an application's bundle ID and the location of its icon file, you can save that value with this script to use in dialog boxes, etc.

The Code

tell application "Finder"
    set app_alias to application file id "${Enter the name of the Bundle ID:BUNDLE ID}" as alias
end tell
set icon_file to path to resource "${Enter the name of the Icon File:ICON FILE]" in bundle app_alias