• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Curl, Applescript and Progress Bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Curl, Applescript and Progress Bar


  • Subject: Re: Curl, Applescript and Progress Bar
  • From: Phong Le <email@hidden>
  • Date: Wed, 2 Feb 2005 22:23:29 -0800

I looked at that actually. But I was afraid that the framework would have to be installed on each machine that uses the script.

This is actually for an ApplescriptStudio program. Do you know if the compiled program will include the CURLHandle ? Does each machine that uses the program have to install the CURL Framework?

Thanks

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
  • Follow-Ups:
    • Re: Curl, Applescript and Progress Bar
      • From: Takaaki Naganoya <email@hidden>
References: 
 >Re: Curl, Applescript and Progress Bar (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Re: Curl, Applescript and Progress Bar
  • Next by Date: Re: Curl, Applescript and Progress Bar
  • Previous by thread: Re: Curl, Applescript and Progress Bar
  • Next by thread: Re: Curl, Applescript and Progress Bar
  • Index(es):
    • Date
    • Thread