• 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: Applescript & RTF & TextEdit...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript & RTF & TextEdit...


  • Subject: Re: Applescript & RTF & TextEdit...
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 18 Apr 2017 17:10:18 +1000

On 18 Apr 2017, at 4:43 pm, Jean-Christophe Helary <email@hidden> wrote:
>
> Is there an Applescripty way to modify the RTF contents of a TextEdit file (possibly "live")?

Sort of. It's a bit hacky -- you need to use GUI scripting to copy the selection, then modify it using ASObjC, and then use GUI scripting again to replace. And the ASObjC stuff can be complicated, depending on what you want to do.
>
> I'm mostly thinking of the half-baked link facility that TE offers (it would really link to local files unless you manually add "fille://" to the path you enter in the dialog etc...) which is *not* available in the dictionary...

You might like to think about rephrasing that -- it doesn't parse here...

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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

  • Follow-Ups:
    • Re: Applescript & RTF & TextEdit...
      • From: Jean-Christophe Helary <email@hidden>
References: 
 >Applescript & RTF & TextEdit... (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: Applescript & RTF & TextEdit...
  • Next by Date: Re: Applescript & RTF & TextEdit...
  • Previous by thread: Applescript & RTF & TextEdit...
  • Next by thread: Re: Applescript & RTF & TextEdit...
  • Index(es):
    • Date
    • Thread