I just created an application with AppleScript, and I would like to create custom menu items for its Dock menu, as shown in the image below. How do I do that?

I'm somewhat familiar with AppleScript, so it would be nice if someone could show me how to add a menu item that triggers an applescript

Dock Menu

  • Basic vanilla AppleScript lacks the ability to add a custom menu to an application's Dock menu. – user3439894 Dec 10 '19 at 2:26
  • Yes, I assumed AppleScript doesn't have that ability. However, I presume you can run applescript from inside another application, like XCode, which, I presume, does allow you to add items to the dock menu. This is similar to how you can run AppleScript from within terminal or Automator. Does anyone know what application I do have to use to add items to the dock menu @user3439894 ? – Peter Schorn Dec 10 '19 at 2:30
  • No, I want items to show up in the DOCK menu when I right-click on an application (as shown in the image), NOT the menubar. Also, I already have the script menu enabled in the menu bar. Thanks for trying to help, though. @user3439894 – Peter Schorn Dec 10 '19 at 2:53
  • You will need to use Xcode to create an app that does what you're looking to do then and this probably falls under software development and is out of scope for Ask Different but can be asked on Stack Overflow. – user3439894 Dec 10 '19 at 2:58
  • Oh shit, my bad. You're right; I should have phrased that differently. I typed that response to hastily @user3439894 – Peter Schorn Dec 10 '19 at 3:03

You must log in to answer this question.

Browse other questions tagged .