Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

whirl

macrumors member
Original poster
Jul 24, 2011
49
1
I have placed an icon in the Resources folder and use that on some dialog like this

AppleScript:
set appTitle to "My-App"
set dialogiconPath to path to resource "dialog.icns" in bundle (path to application appTitle)

Question:
When I try and run this from within Script Debugger it falis because path to application I think is Script Debugger.
After saving the script as as app it works fine.

Is there a way I can set this up so I can run it from within Script Debugger instead of having to make the .app to test it

Update:
Managed to figure this out bt setting the App icon in Script Buider rather than in code
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.