There is also a Download Yesterdays Nightly script on the Wiki. The only difference is to substract 86400 from (get current date).
Christiaan On 4 Feb 2008, at 11:29 PM, Adam M.Goldstein wrote: > I am using the Download-todays-nightly script (or trying to, at least) > and it doesn't quite work. It attempts to download a .dmg with today's > date as the name; but the most recently nightly usually has > yesterday's date. I have never used applescript before and didn't see > quite how to change it. Subtract 1 from the day in the script? Can > someone fix this or tell me what to do? > > If I run the script, I get an error saying that the requested dmg file > does not exist. > > I can't find the location of the script on the wiki just now becuase > the wiki page won't load up. > > -Adam > > property theDownloadURL : "http://bibdesk.demokratia.org/beta/" > set theDate to (get current date) > tell theDate > set theYear to its year > set theMonth to its month as integer > if (theMonth < 10) then ¬ > set theMonth to "0" & theMonth > set theDay to its day > end tell > if (theDay < 10) then ¬ > set theDay to "0" & theDay > set theFileName to "BibDesk-" & theYear & theMonth & theDay & ".dmg" > set theURL to theDownloadURL & theFileName > tell application "DiskImageMounter" to GetURL theURL > > > ================================= > Adam M. Goldstein PhD MSLIS > Assistant Professor of Philosophy > Iona College > -- > email: [EMAIL PROTECTED] > web: http://www.iona.edu/faculty/agoldstein/ > tel: (914) 637-2717 > post: Iona College > Department of Philosophy > 715 North Avenue > New Rochelle, NY 10801 > > > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Bibdesk-users mailing list > Bibdesk-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users