• 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: Opening text objects to AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening text objects to AppleScript


  • Subject: Re: Opening text objects to AppleScript
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 10 Sep 2003 22:33:49 +0200

At 13:17 Uhr -0600 10.09.2003, John Nairn wrote:
3. I would like to "tell" the document to work with both of the text fields in the associated controllers window.

If I understand what you're doing correctly, you're trying to AppleScript the View instead of the controller. Which is something you're not supposed to do in AppleScript. There is a "GUI scripting" extension to AppleScript these days, but it's intended for scripting applications that aren't scriptable.

Try rethinking your design. The controller should have accessor methods which are used by the text fields. Make those scriptable, not the view.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: Opening text objects to AppleScript
      • From: John Nairn <email@hidden>
References: 
 >Opening text objects to AppleScript (From: John Nairn <email@hidden>)

  • Prev by Date: Re: Encodings problem
  • Next by Date: Re: Newbie question: forcing data format during saveDocumentTo:
  • Previous by thread: Opening text objects to AppleScript
  • Next by thread: Re: Opening text objects to AppleScript
  • Index(es):
    • Date
    • Thread