![applescript menu bar access applescript menu bar access](https://macgrunt.files.wordpress.com/2012/07/createservice_05.png)
![applescript menu bar access applescript menu bar access](https://www.lowendmac.com/ed/moore/10cwm/safari5/quitdock2.jpg)
![applescript menu bar access applescript menu bar access](https://i.stack.imgur.com/QVaFl.png)
It can be run as a free app, up to 10 keyboard shortcuts, or upgraded for $9.95 to unlock unlimited keyboard shortcuts. One long time trusted app that does this is FastScripts, and although it's looks like the Scripts menu it does offer additional functionality. Here's an example app done in Xcode using Swift: WeatherBar. You'd have to use Cocoa-AppleScript or build an app in Xcode (or use a third-party launcher) if you don't want to use the Script menu in the Menu bar. Normal AppleScript as a script or AppleScript application created in Script Editor is not supported as a Menu Bar app.
#Applescript menu bar access code#
The rest of the code should not need to be modified, although it certainly can if need be or wanted. Hopefully it's obvious that the if statement block in the actionHandler handler will correspond to the aList in the init handler, so match the names in the aTitle is equal to in the actionHandler handler to the names in the aList in the init handler. Change the "" to something else you prefer, from: Script Editor > Edit > Emoji & Symbols.This sets the name of the menu commands in their order, and "" is for a separator.įor a different icon: aStatusItem's setTitle:"".AppleScript: menu bar script - Created by Takaaki Naganoya Cocoa-AppleScript as a script or AppleScript application created in Script Editor supports Menu Bar app.