Re: Applescript & RTF & TextEdit...
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