Re: Applescript & RTF & TextEdit...
Re: Applescript & RTF & TextEdit...
- Subject: Re: Applescript & RTF & TextEdit...
- From: Jean-Christophe Helary <email@hidden>
- Date: Tue, 18 Apr 2017 17:15:36 +0900
> On Apr 18, 2017, at 16:10, Shane Stanley <email@hidden> wrote:
>
>> 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...
Ah! Natural language parsers... :-)
TE offers an "Add Link" function (Cmd+K), if you trigger it, you get a dialog that asks for an URI. When you paste a local file in the dialog, TE only pastes the path and not the "file://" part that would be necessary to have TE recognize the link as a link to a local file (if you omit the "file://" it says that it doesn't know which app to use to open the file).
So the idea is to complement that "Add Link" function with something that adds the "file://" part for local paths. I understand that *this* does not require fiddling with the RTF code (although that is possible to do it there too, after the link is entered).
Generally speaking I'm looking for ways to extend TextEdit for my prose writing purposes. Something à la petit Scrivener... It looks like TE is the only *simple* scriptable word processor on the market...
Jean-Christophe
_______________________________________________
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