Applescript

Asked by Ed

Can i use applescript with this enabled? Because i haven't been able to get it to work...

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
Ed
Solved:
Last query:
Last reply:

This question was reopened

  • by Ed
Revision history for this message
Ed (eykraus) said :
#1

Sparkle would stop working when i link an Applescript file to a button. It will not let me open the application.

Revision history for this message
Ed (eykraus) said :
#2

Sparkle would stop working when i link an Applescript file to a button. It will not let me open the application.

Revision history for this message
Hofman (cmhofman) said :
#3

Sparkle does not use or interfere with AppleScript in any way. So you either found a bug in the system frameworks, or you did something else wrong. You should give (much) more information or debug yourself, because based on your info there's nothing anyone can say.

Revision history for this message
Ed (eykraus) said :
#4

Well, when i added the Framework, that also wouldn't let me open the application.

Revision history for this message
Ed (eykraus) said :
#5

Could someone make me a blank project with sparkle in it? Applescript project preferred.

Revision history for this message
Ed (eykraus) said :
#6

Ok so i got it to work for the most part, I did what the instructions say but after i open/close the Application more then once, it doesn't enable.
http://sparkle.andymatuschak.org/documentation/pmwiki.php/Documentation/BasicSetup?from=Main.HomePage
and
http://sparkle.andymatuschak.org/documentation/pmwiki.php/Documentation/PublishingAnUpdate
Are the 2 sites i checked and followed the instructions.
http://ebaursolutions.info/list.jpg
http://ebaursolutions.info/list2.jpg
There's a picture of the list of files on my project.

Revision history for this message
Hofman (cmhofman) said :
#7

As I said, I am pretty sure AppleScript is not an issue. Everything just points to you doing something wrong in your use of Sparkle, though nothing points to what that is. There is a sample app included in the Sparkle project.

Revision history for this message
Ed (eykraus) said :
#8

Ok so your saying everything that's in the source files needs to be included in my application?

Revision history for this message
Ed (eykraus) said :
#9

If I'm doing this wrong then the documents sucks..... And the help that you guys are giving me 2. Not to mention the length of time it takes for a single wasted reply!
I'm trying to install something that should be simple! If you guys are as great as people say then i'm surprised i'm not getting more assistance.

Revision history for this message
Ed (eykraus) said :
#10

The Source is waste. I tried to change the appcast on it to mine, all i get is that it's updated.
All i need is simple instructions for installing a complicated device (sparkle).

Here's what i did.
1. Add Sparkle to a Copy Files Folder in the Target as it says in step 1, then i did step 2. Add the Blue thing and make it SUUpdater:
. Then i added the Menu Check for Updates with checkForUpdates: as it's class.
I also did step 3 and 4 as it says but it still doesn't enable the Menu Check For Updates.

Revision history for this message
Hofman (cmhofman) said :
#11

> Ok so your saying everything that's in the source files needs to be included in my application?

No. You were asking for a sample project with Sparkle embedded, and I told you where to find it.

> If I'm doing this wrong then the documents sucks..... And the help that you guys are giving me 2. Not to mention the length of time it takes for a single wasted reply!
> I'm trying to install something that should be simple! If you guys are as great as people say then i'm surprised i'm not getting more assistance.

Totally unbased. If you want no help, this is how you should proceed.

The documentation tells exactly what you should do, and it works for us and many many other developers. You simply didn't give any information that makes it possible for us to asses what you did wrong, that's not our fault. I advidce you to try and see it from our perspective. You are a developer, right, and you have users?

Revision history for this message
Ed (eykraus) said :
#12

eh i just did "Here's what i did.
1. Add Sparkle to a Copy Files Folder in the Target as it says in step 1, then i did step 2. Add the Blue thing and make it SUUpdater:
. Then i added the Menu Check for Updates with checkForUpdates: as it's class.
I also did step 3 and 4 as it says but it still doesn't enable the Menu Check For Updates."
yes i am a developer mainly applescript stuff tho :( When i changed the source of sparkle's appcast to mine, it said i was up 2 date, even though i think i made it so that the app cast said the next version was 5.0.

Eh if you don't mind, email me, and i can give you the source of my app. Then if you don't mind, could you see what's wrong? because as far as i can see i did it right....
<email address hidden>

Revision history for this message
Hofman (cmhofman) said :
#13

For the record, the documentation was not followed in several respects. No surprise it's not working. I advice you to carefully read the documentation on the wiki and follow it explicitly as it says. I consider this discussion closed.

Revision history for this message
Ed (eykraus) said :
#14

Eh i get an error 5 even with the one you gave me....

Revision history for this message
Hofman (cmhofman) said :
#15

Doesn't matter, and I don't care. If you have bugs *in your app* you shouldn't come here to ask us to solve us. Again: this is *not* an xcode development help desk.

Revision history for this message
Ed (eykraus) said :
#16

It's not my application that has bugs. It would have a red number anyways. This is a sparkle help desk and which sparkle doesn't work. Like i said before it only works (Application will only launch) when applescript isn't linked to a button.
So i think that's a bug to report. Am i wrong? Assuming you did this correctly, that's an error. Or does it only work with older versions of Xcode? (before 3.1.1) My does it launch on your computer?

Revision history for this message
Andy Matuschak (andymatuschak) said :
#17

I took a look at the project you sent. The Sparkle framework is not in the Linked Frameworks folder—you've put it in the Resources folder. Also, you have misspelled "Sparkle" in the copy files build phase's Path parameter, but that's not even the problem: that field is supposed to be blank, and the Sparkle framework is supposed to be an input to the build phase. The instructions say:

- Drag Sparkle.framework into the Linked Frameworks folder of your Xcode project.
- Be sure to check the "copy items into the destination group's folder" box in the sheet that appears.
- Create a new Copy Files build phase for your app's target (Project > New Build Phase > New Copy Files Build Phase)
- Choose "Frameworks" as the destination for your new build phase.
- Click the disclosure triangle next to your app's target, and drag Sparkle.framework from the Linked Frameworks folder to the Copy Files build phase you just created.

Follow these instructions correctly, and it'll work.

Revision history for this message
Ed (eykraus) said :
#18

Thanks!

Revision history for this message
Ed (eykraus) said :
#19

IT's working great now! eh i think you need to reply so that i can close this....

Revision history for this message
Ed (eykraus) said :
#20

I'm having issues making this thing be properly signed. I'd get it signed for 1 update, then i'd have an update do the same process and i'd get the window that says that it has been inproperly signed.....

Revision history for this message
Ed (eykraus) said :
#21

nvm It seems i can only have 1 "Item" in at a time