Re: Curl, Applescript and Progress Bar
Re: Curl, Applescript and Progress Bar
- Subject: Re: Curl, Applescript and Progress Bar
- From: Takaaki Naganoya <email@hidden>
- Date: Thu, 03 Feb 2005 16:18:55 +0900
On 05.2.3 3:23 PM, "Phong Le" <email@hidden> wrote:
> I looked at that actually. But I was afraid that the framework would
> have to be installed on each machine that uses the script.
Yes, the framework have to be installed in each machine.
But the Installer package is more easy to make than you are afraid of.
> This is actually for an ApplescriptStudio program.
Partly yes, but partly No. There is the way to use AppleScript Studio's
"call method" function in normal AppleScript. Daniel taught us and we got
the big surprise.
But....I don't have whole solution for this task.
I'm not clear in using "call method".
> Do you know if the compiled program will include the CURLHandle ? Does each
machine that
> uses the program have to install the CURL Framework?
I think that the compiled program will not include CURLHandle. There will
need to install the framework in each machine.
--
Takaaki Naganoya
email@hidden
http://www.appleco.jp/piyomarusoft/
>> On Feb 2, 2005, at 8:46 PM, Takaaki Naganoya wrote:
>
>> How about "CURLHandle" ?
>>
>> http://curlhandle.sourceforge.net/
>>
>> (There is need to install "CURLHandle.framework" into
>> "/Library/Frameworks".)
>>
>> CURLHandle *may* be called from AppleScript Studio by using "call
>> method".
>>
>> We can use "call method" in normal AppleScript as Daniel taught.
>>
>> --
>> Takaaki Naganoya
>> email@hidden
>> http://www.appleco.jp/piyomarusoft/
>>
>>> It occurred to me that it would be cool for any script to be able to
>>> take advantage of the "call method" functionality included with
>>> AppleScript Studio applications. An interesting way of getting this
>>> is
>>> simply to make a "stand-in" AppleScript Studio application to do your
>>> bidding. For example, if you produce an empty AS Studio app named
>>> "MyTestApp", then you can use it to access the wealth of Cocoa and
>>> Foundation classes:
>>>
>>> WebSafeString("http://www.apple.com/Fun with spaces.html")
>>>
>>> on WebSafeString(myString)
>>> tell application "MyTestApp"
>>> set myURLString to call method "stringWithString:" of class
>>> "NSString" with parameter myString
>>> set myFixedURLString to call method
>>> "stringByAddingPercentEscapesUsingEncoding:" of myURLString with
>>> parameter 30
>>> end tell
>>> end WebSafeString
>>>
>>> --> "http://www.apple.com/Fun with spaces.html"
>>>
>>> Maybe others have already figured this out but I thought it was a
>>> pretty nifty hack. Maybe it wouldn't be too hard to put together a
>>> Scripting Addition that bridged all the AppleScriptKit terminologies
>>> to
>>> regular scripts?
>>>
>>> Daniel
>>
>> On 05.2.3 0:54 PM, "Doug McNutt" <email@hidden> wrote:
>>
>>> At 19:35 -0800 2/2/05, Phong Le wrote:
>>>> If anyone knows of a better method, please post.
>>>
>>> I tried one out just before the president's talk. Watch this space.
>>> The
>>> tested version still uses shell scripts with osascript commands to
>>> persuade
>>> curl to run in a Terminal.app window.
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Applescript-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> email@hidden
>>
>> This email sent to email@hidden
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden