Hello,
Knowing that:
- I am a noob
- I have not used illegal drugs in a while
- I have not overindulged in alcohol for a long time
I was trying to use an Apple icon in the script (system profiler icon) ASP.icns, and each time the icon disappear when the script is saved as an .app and when run as an app, the error Can’t Find … shows up.
Compiled Test Run as a script, everything is fine. Saved as an app, not fine!
But, when I use an icon that I made myself, it works. Does anybody has a rational explanation? because right now, my most logical thought is Apple Voodoo.
Working Example:
set answer to button returned of (display dialog " foobar" with icon alias ((path to me) & ":foobar.app:Contents:Resources:icns:My.icns" as string) with title "FOOBAR" buttons {"Cancel", "Option 1", "Option 2"} default button 2)
NON working example
the sole change is in “ASP.icns”
set answer to button returned of (display dialog " foobar" with icon alias ((path to me) & ":foobar.app:Contents:Resources:icns:ASP.icns" as string) with title "FOOBAR" buttons {"Cancel", "Option 1", "Option 2"} default button 2)
Thanks in advance