MACSCRPT Archives

September 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Brian Johnson <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 23 Sep 2009 20:28:14 -0700
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (19 lines)
On Wed, 23 Sep 2009, Shane Stanley wrote:

> FWIW, the unit-conversion hack still works in Snow Leopard:
>
> property zdate : date "Monday, August 10, 1992 11:00:00 AM"
> set file_name to ((current date) - zdate as feet as text) & ".html"

That's just amazing. Too bad "as feet as poem as text" doesn't seem to 
work (as long as we're doing conversions....)

Mark L. may have forgotten about that one, but I don't think I ever knew 
it. I like it, but it *does* suggest some sort of explanatory comment in 
the code might be good for the poor sucker who has to maintain this (e.g. 
me in 6 weeks time).

Thanks to everyone else with good suggestions too.

   -b.johnson

ATOM RSS1 RSS2