3 ms·
AppleScript works like this. When you save a script it's compiled down to a system representation, and when you reopen it it's transformed back into the english
by kalleboo 13y ago
AppleScript works like this. When you save a script it's compiled down to a system representation, and when you reopen it it's transformed back into the english script language. This means:
* Formatting isn't preserved and the file is retabbed each time you save it.
* Earlier versions had French and Japanese compilers/decompilers
* Each application can add AppleScript syntax (like VBA/OLE or whatever). If a script uses commands for an application you don't have installed, you see the raw FourCC codes in the code instead.
It's actually a quite interesting language. http://en.wikipedia.org/wiki/AppleScript http://en.wikipedia.org/wiki/AppleScript
- Zarel 13y agoTI-Basic 68k (the one used on the TI-89, TI-92, and Voyage 200 series calculators) also does this, except formatting is preserved. It also uses the same file type for tokenized and untokenized programs: untokenized programs are tokenized when run, and tokenized programs are untokenized when opened with the built-in text editor. Short of opening the file with some external program like a hex editor, there's no way to tell whether the program is tokenized or not. Which, of course, can cause problems if you send an untokenized program to a calculator set to a different language.