Dorn
April 25, 2009, 7:07am
#1
Can someone please help me with this it’s is driving me CRAZY
display dialog "" with icon alias ((path to me) & "Contents:Resources:JavaApp.icns" as string) buttons {"Cancel", "OK"} default button 2
and all i get is the error message
File Macintosh HD:Applications:AppleScript:Script Editor.app:Contents:Resources:JavaApp.icns wasn’t found.
cheers
Browser: Firefox 3.0.9
Operating System: Mac OS X (10.4)
Until Mac OS X 10.5, the Script Editor will return its own application path when you test run a script from within it. No need to get crazy about this Your script will work just fine when used as a standalone app from the Finder.
Best regards from sunny Berlin!
Dorn
April 26, 2009, 6:21pm
#3
Hi Martin
Thanks for the help
Good evening from chesterfield, derbyshire
Tom_X
April 26, 2009, 7:55pm
#4
just another option - shorter …
display dialog "" buttons {"Cancel", "OK"} default button 2 with icon path to resource "JavaApp.icns" in bundle (path to me)
Tom
Dorn
April 29, 2009, 5:50am
#5
Nice one tim thanks for the help