Apple website auto-checker (and countdown timer)
With some amusement, I've read the numerous posts here of people frantically hitting reload on Apple.com to see what the next day's slogan will be regarding MacWorld.
Well, I was incredibly bored at work today (I had nothing to do, since I'm in between projects). So I decided to whip up a little Cocoa app that automates the process. It basically polls Apple's website every 60 seconds, and if the web page has changed, it beeps, and throws up an alert.
You can get the app at <a href="http://www.angelfire.com/retro/macworld/MacWorld.tar." target="_blank">http://www.angelfire.com/retro/macworld/MacWorld.tar</a>
Click "Begin automatic checking" to initiate the polling process. Or just click "Check manually" if you're impatient. It has the same effect as the frantic hitting of reload.
If it's a slow day at work for me tomorrow, I may add a count-down timer for MacWorld or some other crazy thing.
[ 01-03-2002: Message edited by: PipelineStall ]
[ 01-04-2002: Message edited by: PipelineStall ]</p>
Well, I was incredibly bored at work today (I had nothing to do, since I'm in between projects). So I decided to whip up a little Cocoa app that automates the process. It basically polls Apple's website every 60 seconds, and if the web page has changed, it beeps, and throws up an alert.
You can get the app at <a href="http://www.angelfire.com/retro/macworld/MacWorld.tar." target="_blank">http://www.angelfire.com/retro/macworld/MacWorld.tar</a>
Click "Begin automatic checking" to initiate the polling process. Or just click "Check manually" if you're impatient. It has the same effect as the frantic hitting of reload.
If it's a slow day at work for me tomorrow, I may add a count-down timer for MacWorld or some other crazy thing.
[ 01-03-2002: Message edited by: PipelineStall ]
[ 01-04-2002: Message edited by: PipelineStall ]</p>
Comments
here is the correct link: <a href="http://www.angelfire.com/retro/macworld/MacWorld.tar" target="_blank">http://www.angelfire.com/retro/macworld/MacWorld.tar</A>
hmm seems like a convenient little app, no way to tell if it works. I think i will turn it on around 2:30am est, assuming i don't fall asleep before then.
I've also done some memory dumps to verify that it's loading the Apple web page correctly.
[quote]Could you please make a classic version? <hr></blockquote>
It uses BSD sockets and it's Cocoa. Very little chance of a Classic version.
[ 01-03-2002: Message edited by: PipelineStall ]</p>
<strong>Couldn't you just make Apple.com a subscription in Internet Exploder and tell it to check once a minute?</strong><hr></blockquote>
sshhhh...
still a good effort
[email protected]
[edit: spelling mishap]
[ 01-03-2002: Message edited by: graphiteman ]</p>
<strong>
sshhhh...
still a good effort </strong><hr></blockquote>
LOL Applenut!!! BTW, it worked for me. I even set it to check only between 15min. before and 30min. after 12am PST through 1/8/02. Can that script do that?
Heh...well, that's what I get for not keeping up to date on my Microsoft products.
I guess I'll have to add some enhancements to it. Maybe a MacWorld countdown timer, and allow the user to specify the time between polls. IE can't check a website every millisecond, can it?
FWIW, one could do a similar thing with cron. Just telnet to port 80, get the source, log it to a file. Then have cron execute some commands where you telnet to port 80, get the source, and use the cmp command to compare with the original. Log the output of cmp to a file and check the file size. If it's non-zero; the page has changed.
But I think Cocoa and BSD Sockets is more fun.
[quote] Pipeline, could you email it to me (and would you consider sending the source too?)?<hr></blockquote>
I'll add a few new features to the utility; and include the source. I'll have it ready in time for tonight.
<strong>
I'll add a few new features to the utility; and include the source. I'll have it ready in time for tonight.</strong><hr></blockquote>
Thanks!
Click the one link on the page to download the new version.
It now has a MacWorld countdown timer (should work in any time zone) that updates in your Dock!
I've also included the source. Please do not use my source as an example of how to develop Cocoa apps. I waste memory, and it isn't optimized. And yes, it actually has debug code in it.
-robo
Damn Angelfire. They shut me down again.
Thanks for the offer, robo. But I've created an iTools account to host the file. There's no need to go through the trouble, when the utility will be obsolete in a few days anyway.
You can get the MacWorld countdown timer/Apple web page checker at <a href="http://homepage.mac.com/mwsf2002/FileSharing1.html" target="_blank">http://homepage.mac.com/mwsf2002/FileSharing1.html</a>