Thursday, September 2, 2010

#1 2008-05-28 05:46:47 pm

wizboyx86
Member
Registered: 2008-05-19
Posts: 71

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?

Offline

 

#2 2008-05-28 05:49:38 pm

Bruce Phillips
Administrator
Registered: 2004-07-15
Posts: 2647

Re: Self update system for AppleScript?

Offline

 

#3 2008-05-28 06:17:58 pm

wizboyx86
Member
Registered: 2008-05-19
Posts: 71

Re: Self update system for AppleScript?

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?

Last edited by wizboyx86 (2008-05-28 07:39:49 pm)

Offline

 

#4 2008-05-28 07:00:49 pm

Bruce Phillips
Administrator
Registered: 2004-07-15
Posts: 2647

Re: Self update system for AppleScript?

wizboyx86 wrote:

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

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

Offline

 

#5 2008-05-28 07:21:11 pm

wizboyx86
Member
Registered: 2008-05-19
Posts: 71

Re: Self update system for AppleScript?

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.

Last edited by wizboyx86 (2008-05-28 07:40:36 pm)

Offline

 

#6 2008-05-29 01:56:47 pm

guimkie
Member
From: Munich
Registered: 2007-11-05
Posts: 98
Website

Re: Self update system for AppleScript?

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 … framework/

Offline

 

#7 2008-05-29 06:39:29 pm

wizboyx86
Member
Registered: 2008-05-19
Posts: 71

Re: Self update system for AppleScript?

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

Offline

 

#8 2008-05-29 10:32:13 pm

kmlawson
Member
Registered: 2007-05-31
Posts: 19
Website

Re: Self update system for AppleScript?

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/20 … s-feature/

Offline

 

#9 2008-05-30 01:07:55 am

guimkie
Member
From: Munich
Registered: 2007-11-05
Posts: 98
Website

Re: Self update system for AppleScript?

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/20 … s-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. :-D btw - great resource site you have there!

Offline

 

#10 2008-05-30 10:14:53 am

kmlawson
Member
Registered: 2007-05-31
Posts: 19
Website

Re: Self update system for AppleScript?

Thanks, I look forward to your own future tutorials.

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.145 seconds, 9 queries executed ]

RSS (new topics) RSS (active topics)