if and then.....

So i want to do a simple Updater check… anyways of doing that?
I was thinking of
if http://localhost/1.1.pkg
is there then download and install then close 1.0 (saying that 1.0 is the version before it)…
i’ve tried to use sparkle but haven’t been able to corporate… any other ways of checking for updates?

See the man page for sofwareupdate. -l is list, -d is download, -i is install. You can also specify particular applications to be updated.

You’d use that in a do shell script “sofwareupdate -l” construction (this one lists the updates available).

What do i do for that? I mean that can’t be all… It wouldn’t know where to check for the update.