Re: Syntax highlighting, compilation etc.
Re: Syntax highlighting, compilation etc.
- Subject: Re: Syntax highlighting, compilation etc.
- From: Jean-Christophe Helary <email@hidden>
- Date: Tue, 25 Apr 2017 09:13:05 +0900
> On Apr 25, 2017, at 8:26, Shane Stanley <email@hidden> wrote:
>> Now, after checking a bit, it appears that an alternative answer to my question was "the stuff is stored in the ressource fork of the compiled script".
>
> No. You *may* find a copy there, because Script Debugger stores a copy as a backup in case the actual script is corrupted. It also doesn't cover bundle scripts.
Fair enough. SE also seems to keep a copy here, osacompile does not. But I'm not really trying to implement something here. I'm just curious where that information is stored or how to obtain a rich text document with the tools at hand.
Or are you telling me that the rich text is always created on the fly when opening a compiled file as the code you sent yesterday seemed to suggest ?
>> Which means that basically any application that can read RTF can provide proper syntax highlighting for AS by reading the compiled file and extracting the RTF...
>
> Which would take three times as much work as doing it properly.
Probably, but
1) I really don't know what "properly" means in this context
2) playing around with that idea allowed me to discover plenty of things already
>> I guess SD etc don't do it that way, but that could be a way to hack a crude AS editor, eventually within TextEdit with the help of a few scripts... Wouldn't it ?
>
> No. It might give you a way to *display* a compiled script -- that's not an editor.
It depends on what we call editor. But at the moment, I just want to extract some rtf from somewhere, possible without using too many fancy tools. Just because I'm curious and that's how I learn things :)
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