Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zweigand

macrumors 6502a
Original poster
Oct 19, 2003
627
89
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.