Thursday, September 2, 2010
Subscribe to Email Digest
 
Scripting Additions
Craig Williams [staff] Scripting Additions | Upload Scripting Additions
Home >> Scripting Additions >> HTML-XML-Tools >> HTML/XML Entity Coder

HTML/XML Entity Coder 0.1 Script Rating
Freeware | Version: 0.1 | Osax id: 382
Author: andreb | Developer's Web Site
Category: HTML-XML-Tools
This Python executable aims to add support for decoding/encoding either full HTML entity mnemonics (aka friendly names) or the
complete range of XML entity charref codes, either decimal or hexadecimal.

An example AppleScript is included which utilizes this Python executable.
For info and licensing look at the README or better yet look at
the source code of 'entity' and the 'Entity Coder.scpt' AppleScript.

Note: If you can afford to include a 9MB bundle into your project I recommend using the infamous "TextCommands" addition instead as it is faster than using a Python executable with do shell script. (approx. 0.01s vs 0.06s on my machine)

TextCommands also uses Python internally, but is still faster since as a pure scripting addition it resides in memory of the AppleScript component and doesn't need to be launched everytime a conversion is made.

I am not quite sure if TextCommands supports the full range of XML decimal/hexadecimal codes however.

For a recent project I only had a few KBs to spare and since I had EntityCoder lying around for quite some time now I decided to do the finishing touches and use it instead.
Version Changes: Version 0.1 Initial Version.
Needs at least Python 2.3
Click to View Dictionary
Downloads | This Version: 209 | All Previous Versions: 0 Show More files from this Author?
Reviews: [Add Your Review]
Generated in 0.091 secs | Total entries: 200 | Views: 868317