• 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: text selection in general...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text selection in general...


  • Subject: Re: text selection in general...
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Wed, 07 Feb 2018 08:24:25 +0900


> On Feb 7, 2018, at 6:56, Christopher Stone <email@hidden>
> wrote:
>
> On 02/06/2018, at 05:21, Jean-Christophe Helary
> <email@hidden> wrote:
>> I wrote one of my "personal memo" blog posts today where I investigate how
>> to select text in various applications. I was surprised to see that most of
>> Apple's applications do not have a scriptable way to get the text selection.
>> The only two I could find were Script Editor and Xcode.
>>
>> Am I missing something ?
>
> Hey Jean-Christophe,
>
> Script Debugger, BBEdit, Microsoft Word, and several others.

Yes, I mention those in the article but since they are not "Apple applications"
I only refered to Xcode and Script Editor above.

> The Insertion Point and The Selection are areas where Apple has really
> dropped the ball in Cocoa scripting.

!!! You mean that even with ASOC there is no elegant way to do that?

> Accessing The Selection through services is slow and inefficient – but
> sometimes much better than nothing.
>
> I tend to use Keyboard Maestro for this kind of thing (since 2004).

Ok, so I guess my GUI scripting hack is fine then :)

Thank you for confirming my doubts.


Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >text selection in general... (From: Jean-Christophe Helary <email@hidden>)
 >Re: text selection in general... (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: saving mails...
  • Next by Date: Checking whether a Terminal window/tab is in fullscreen...
  • Previous by thread: Re: text selection in general...
  • Next by thread: Checking whether a Terminal window/tab is in fullscreen...
  • Index(es):
    • Date
    • Thread