• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: defining range by system date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defining range by system date


  • Subject: Re: defining range by system date
  • From: Graff <email@hidden>
  • Date: Mon, 16 Feb 2004 19:18:34 -0500

I think the easiest way to do this is to use several smart playlists with the following rules, no scripting is required:

name:"Played today"
match: all
last played is in the last 1 days

name:"Played yesterday"
match: all
last played is in the last 2 days
last played is not in the last 1 days

name:"Played 2 days ago"
match: all
last played is in the last 3 days
last played is not in the last 2 days
days

name:"Played 3 days ago"
match: all
last played is in the last 4 days
last played is not in the last 3 days
days

name:"Played 4 days ago"
match: all
last played is in the last 5 days
last played is not in the last 4 days

name:"Played 5 days ago"
match: all
last played is in the last 6 days
last played is not in the last 5 days

- Ken

On Feb 16, 2004, at 4:52 PM, Stephen Schaefer wrote:

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.
_______________________________________________
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.

References: 
 >System version? (From: Gnarlodious <email@hidden>)
 >Re: System version? (From: steve harley <email@hidden>)
 >defining range by system date (From: Stephen Schaefer <email@hidden>)

  • Prev by Date: 'store script' 2 times => busy!?
  • Next by Date: Re: Launching TextEdit with a TEXT document
  • Previous by thread: defining range by system date
  • Next by thread: 'store script' 2 times => busy!?
  • Index(es):
    • Date
    • Thread