Cascading status bar menus

Stripping header seems not be comfortable.
I remember the username did such an act and I’ll not make suggestion with them.

It worked using:

property NSImage : class "NSImage"
set ImagePath to (current application's NSBundle's mainBundle()'s bundlePath() as text) & "/Contents/Resources/Luxicon5.png"
# if image is from an external file use:
-- set theImage to NSImage's alloc()'s initWithContentsOfFile:"/Users/ldicroce/Desktop/Luxicon5.png"
set theImage to NSImage's alloc()'s initWithContentsOfFile:ImagePath
theStatusItem's setImage:theImage

Thanks !

If the image file is within the bundle, you can simplify that to:

set theImage to NSImage's imageNamed:"Luxicon5.png"

Thanks!
I put together the code above by copying independent lines from different scripts.
I was sure it could be improved (as you indeed just suggested), since my knowledge of AppleScriptObjC is zero.

I have implemented this methods for an applet I am using all the time, and it is very useful!
I wonder if it is also possible to associate a keyboard shortcut to a menu item … and if there si any script you have that I can then adapt to my case.

Ciao.
L.