• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script Menu in Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script Menu in Cocoa app


  • Subject: Re: Script Menu in Cocoa app
  • From: Jonathan Wight <email@hidden>
  • Date: Tue, 18 Nov 2003 08:01:45 -0600

There doesn't seem to be a quick and easy way to do this (i.e. there isn't an "NSScriptMenu" widget you can just drag and drop into your application).

However it would be incredibly simple to roll your own basic script menu. Start off with NSFileManager to iterate through your script directories and then use NSAppleScript to execute the scripts.

I'm actually working on a script menu for one of my apps right now - when it's finished I'll release it to the world.

Jon.

On Nov 17, 2003, at 10:37, Moray Taylor wrote:

Hi,

How do i add one of those nice little black script menus to my app? (Mail has one, it's just a little black icon that runs AppleScripts). In Panther it's black, in Jaguar I think it was white.

Thanks

Moray
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Script Menu in Cocoa app (From: Moray Taylor <email@hidden>)

  • Prev by Date: USB
  • Next by Date: Re: (no subject)
  • Previous by thread: Script Menu in Cocoa app
  • Next by thread: initial run data
  • Index(es):
    • Date
    • Thread