Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make an AppleScript Studio application self-update' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make an AppleScript Studio application self-update
Authored by: nicorohrbach on Apr 06, '05 02:25:27PM

It's much easyer to get the current version number from the online text file with curl. just write 1.0 to the online text file instead of CurrentVersion=1.0 and use do shell script to run curl and get the text:

set UpdateVersion to do shell script "curl http://yoursite.edu/CurrentVersion.txt"

[ Reply to This | # ]
Yes, but "curl" does not honor the proxy setting...
Authored by: aamann on Apr 06, '05 09:33:37PM

The problem with using curl for this is that it will go directly to port 80 in your example - if you use a proxy server, this will be ignored and curl might not be able to connect properly. The "URL Scripting Access" honors the system's proxy settings and thus indeed is the better choice!



[ Reply to This | # ]
Yes, but "curl" does not honor the proxy setting...
Authored by: gvaughn on Apr 07, '05 10:22:49AM

That is correct, but curl does have a .curlrc (I think that's the name) where the proxy server can be specified. One of the things on my to-do list is to figure out a way to automatically synchronize that with the system proxy setting. Has anyone tackled that yet?



[ Reply to This | # ]
Yes, but "curl" does not honor the proxy setting...
Authored by: aamann on Apr 07, '05 12:17:49PM
I looked at this (getting the system's proxy settings based on the current location) but decided against it - it would have been too painful to do so (at least much more painful than using three lines with URL Access Scripting instead...)

Take a look at this thread in the Apple Discussions

[ Reply to This | # ]
Yes, but "curl" does not honor the proxy setting...
Authored by: gvaughn on Apr 07, '05 06:18:36PM

Thanks for that reference. It is harder than I thought. Unfortunately, I do have to deal with authenticating proxies. I've done that successfully with wget on a Linux box, but I'm not sure about curl. I had a bad experience with URL Access Scripting on OS 9.



[ Reply to This | # ]