Sunday, March 27th, 2005


Someone on the AppleScript Studio Mailing List wanted to know how to get an age; here’s my take:

set birthday to date "Thursday, 1 April 1976 12:00:00 AM"
set age to (year of (current date)) - (year of birthday)
if month of (current date) < month of birthday then
    set age to age - 1
else if month of (current date) = month of birthday then
    if day of (current date) < day of birthday then
        set age to age - 1
    end if
end if

get age

View Comments (0)   RSS Feed for Comments on this Post

Address to Namber:

schinckel.net is smoke.show.study.stop.mysteryrobot.com

From Nambers.

View Comment (1)   RSS Feed for Comments on this Post

Thanks to Sam Deane, and his Now Playing script, I have added the following functionality to iTunesRater.

When a song with no Artwork starts playing, Amazon.com is contacted, and if the Artwork is available, then a drawer with possible artworks is opened. Eventually, when you click the Artwork you want, it will be copied to the track, (and all others from the same album).

Now if only I can make it so it does this bit in the background - perhaps another script that gets called?

View Comments (0)   RSS Feed for Comments on this Post