Is it Possible to Create Safari Bookmarks with a Self-Updating Variable?

Discussion in 'Mac Basics and Help' started by Ratboy, Jul 28, 2008.

  1. Ratboy macrumors member

    Joined:
    Feb 2, 2002
    #1
    A couple of sites I routinely visit post articles online a few hours before providing a link, however, since they have a standard naming convention, it's not hard to figure out what the link is going to be. Typically, the only difference in the URLs is the date.

    Is there any way to create a Safari bookmark that automatically changes a variable representing tomorrow's date?
     
  2. alphaod macrumors Core

    alphaod

    Joined:
    Feb 9, 2008
    Location:
    NYC
    #2
    So you subscribe to their RSS feed. Newsfire is a great RSS reader.
     
  3. Ratboy thread starter macrumors member

    Joined:
    Feb 2, 2002
    #3
    I would if they had RSS feeds.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    It's probably possible via a javascript: url...
     
  5. Ratboy thread starter macrumors member

    Joined:
    Feb 2, 2002
    #5
    Anyone know how to write such a JavaScript bookmark?
     
  6. Ratboy thread starter macrumors member

    Joined:
    Feb 2, 2002
    #6
    For the record, here's the correct code:

    javascript:d=new Date();window.open("http://www.nytimes.com/"+d.getFullYear()+"/0"+(d.getMonth()+1)+"/"+(d.getDate()+1)+"/technology/personaltech/"+(d.getDate()+1)+"pogue.html", "_self");
     

Share This Page