xv

AppleScript of the Day: Show result as HTML.

Jul 06, 2011 07:14

This is a short script I wrote to quickly calculate and display dates that are at certain intervals in the past. I wanted something that I could read early in the morning, which is why I'm sending code to Safari. Be advised that this probably only works with Safari 5.0.5 (6533.21.1), as I'm taking advantage of how forgiving it is to improperly formatted URLs, as well as horrible HTML markup. YMMV, but it should be pretty harmless. Please, feel free to experiment and report back. It should also be relatively simple to tidy up the HTML with a few more lines of code and some knowledge of html-craft. Once upon a time I even understood how to encode URLs properly. I think I used Python.

Note that you can easily change the intervals, as well as add or remove them.

html, math, applescript, uri, safari

Previous post Next post
Up