defining range by system date
defining range by system date
- Subject: defining range by system date
- From: Stephen Schaefer <email@hidden>
- Date: Mon, 16 Feb 2004 16:52:43 -0500
Could one use system date (i.e. the date according to current computer)
to define a range for a series of playlists in iTunes? For example (and
to clarify, I know this isn't close to applescript; I'm simply writing
out a plain language idea symbolically to get my idea across):
tell application "iTunes"
tell (make new user playlist with properties {name:"Played today"})
with tracks played on current system date
tell (make new user playlist with properties {name:"Played
yesterday"}) with tracks played on (current system date - 1 day)
tell (make new user playlist with properties {name:"Played 2 days
ago"}) with tracks played on (current system date - 2 days)
tell (make new user playlist with properties {name:"Played 3 days
ago"}) with tracks played on (current system date - 3 days)
tell (make new user playlist with properties {name:"Played 4 days
ago"}) with tracks played on (current system date - 4 days)
tell (make new user playlist with properties {name:"Played 5 days
ago"}) with tracks played on (current system date - 5 days)
end tell
that would be one script, just to create them. Is there also a way to
use the same principle as the beginning part of a larger script that
would be run everyday or every other day, but instead of create, make
it update each list in the fashion of live updating? The wall I'm
hitting right now is in creating smart playlists that can be defined as
"today", "yesterday", "2 days ago", etc...The range only lets me set
the date or lists that don't pull off what I want. Perhaps the better
way is to create the smart playlists and define the date (i.e.,
2/16/04, 2/15/04/, 2/14/04, etc...) and have an updating script that
would increase the date of each of them? I think the first idea is
more practical though. Any hints? Thanks much for the help already.
sps
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.