Self update system for AppleScript?

Would there be any way to incorporate a program self update system into an AppleScript Studio app? Like so that it auto checks for updates to the program and auto downloads and installs the updates?

http://sparkle.andymatuschak.org/

Cool, can that be used with AppleScript studio? Thought it was for cocoa.

OK, I got farther in the instructions:

a. Open MainMenu.nib in Interface Builder.
b. Click the Classes tab.
c. Go to Classes > Read Files., navigate to your project directory, then import
Sparkle.framework/Headers/SUUpdater.h. SUUpdater should now appear in the class
list.
d. Select SUUpdater and go to Classes > Instantiate SUUpdater.
e. Create a “Check for updates.” menu item in the application menu and connect it to
checkForUpdates: in SUUpdater.

I’m stuck on d. Where is Instantiate SUUpdater?

What we call “AppleScript Studio” is just a Cocoa app that runs an AppleScript when you interact with certain parts.

http://bbs.macscripter.net/viewtopic.php?id=23811

Cool, but I’m stuck on the part in my previous post. Can’t find Instantiate SUUpdater. I’m on Interface Builder 3 and Xcode 3.1 w/ iPhone SDK B1.

i dont think there is a need or an actual ability to instantiate the whole thing. i think it existed in older versions of interface builder but doesn’t exist anymore.

if you’ve connected the nsobject (SUUpdater) with your menu item or button, everything should be fine and working.

good luck

btw - i wrote quite a while ago a tutorial on how to get sparkle working with applescript apps. you can find it here:

http://guimkie.com/tutorials/adding-the-sparkle-framework/

Thanks! I got it working perfectly by creating a new NSObject, changing the class etc. Thx for all the help.

This was really useful discussion and prompted me to try to learn how to add the Sparkle module. This was made a lot easier with guimkie’s helpful tutorial.

I had some trouble running guimkie’s sample project however, and some of the screenshots were a bit small, but his wonderful effort inspired me to take a few screenshots when I went through the learning process and post my own experience.

I created a new tutorial and again offered a sample project on how to add Sparkle here:

http://foolsworkshop.com/applescript/2008/05/adding-a-check-updates-feature/

thanks for the feedback on the tutorial. i won’t update mine right now as i am a bit over the top - but ive provided a link from my tutorial to yours. :smiley: btw - great resource site you have there!

Thanks, I look forward to your own future tutorials.