• 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: Keystroke command limit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keystroke command limit


  • Subject: Re: Keystroke command limit
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 27 Aug 2003 12:41:09 -0400

on 03-08-26 1:55 PM, John Delacour at email@hidden wrote:

> At 11:42 am -0400 26/8/03, Bill Cheeseman wrote:
>
>> You can put an unlimited amount of text into a TextEdit text view, for
>> example, just by setting the text area's value attribute. It's faster, too,
>> I imagine.
>>
>> set value of text area 1 of scroll area 1 of window "Untitled" to
>> "<string>"
>
> What would be the point of this, since the window has only one scroll
> area containing only one text area? Poor though TextEdit's
> dictionary is, it does at least allow:
>
> tell app "TextEdit" to set text of document 1 to "<string>"

Correct. Always use the target app's own scripting capability, if it has
any.

I used TextEdit for the GUI Scripting example, as I usually do, because
everybody has TextEdit and can test it to see that it works. I'm assuming
everybody here can extrapolate from that to a text-based application that
doesn't have a dictionary.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Keystroke command limit (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Hmmm... new problem cropped up
  • Next by Date: Error from opening a read only applet in SD
  • Previous by thread: Re: Keystroke command limit
  • Next by thread: Re: Keystroke command limit
  • Index(es):
    • Date
    • Thread