Menubar in AppleScript??
Is it possible to add a Menu Bar to a Script and have it work like a regular App?
I’ve found something that plays about with Menu’s but I’m not really sure what it does.
When I run it it complains on this statement:
set theStatusItem to NSStatusBar's systemStatusBar()'s statusItemWithLength:NSVariableStatusItemLength
Error: NSWindow drag regions should only be invalidated on the Main Thread!
I’m not sure how to fix it, in Objective-C I’d use performSelectorOnMainThread with wait until done = YES, but not sure if I can do that in AppleScript?
If I do fix it, I’m not sure if the code does want I want it to, I just want to setup a Menubar, I’m not sure where the NSStatusBar comes into it???
If someone has an example of how handle the Menubar i’d be grateful, just knowing if its possible would help!
All the Best