• 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
declaring new apple script commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

declaring new apple script commands


  • Subject: declaring new apple script commands
  • From: jerome LAURENS <email@hidden>
  • Date: Sat, 1 Jun 2002 10:14:38 +0200

Hi,

I'd like to have those scripts working

"select first word of myText"
"select middle word of myText"
"select characters 3 through 5 of myText"
...

I already have subclassed NSScriptCommand in MySelectScriptCommand. Its default implementaion just logs something in the console but it is details.

I declared the command in the script suite, but i could not find my way to make any object sensitive to this command. I declared the command in the SupportedCommands section of an NSCoreSuite.AbstractObject subclass, but it does not work either.
the script editor always says that the receiver cannot handle that command, however, it can read the "select" command in the app dictionary
_______________________________________________
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.
  • Follow-Ups:
    • Re: declaring new apple script commands
      • From: Pascal Pochet <email@hidden>
  • Prev by Date: Re: Is there a way I can fix these warnings?
  • Next by Date: Re: isa
  • Previous by thread: Re: Is there a way I can fix these warnings?
  • Next by thread: Re: declaring new apple script commands
  • Index(es):
    • Date
    • Thread