PDA

View Full Version : Sparkle / Applescript Studio question




zweigand
May 17, 2008, 05:14 PM
My app is using the SUScheduledCheckInterval in the user defaults to specify how often the Sparkle checks for updates. I've got everything working, but I don't know how to do the call method via AppleScript to let Sparke know when the interval changes (when I write out the defaults)

Here is the explanation from their documentation on how to do it...

You might make a menu in your preferences to let the user specify this interval; just update SUScheduledCheckInterval in the user defaults with the user’s choice—a setting there will override one in Info.plist. You’ll need to let Sparkle know when the interval changes, though: just call scheduleCheckWithInterval: on your SUUpdater (it’ll cancel the old one).

What would the applescript line for this look like?

call method "scheduleCheckWithInterval:" of object SUUpdater ?


Any help would be appreciated. I'm trying to avoid having to put a line in the app telling them their change won't take effect until they restart it.