• 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: URL Access Scripting Not Launching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL Access Scripting Not Launching


  • Subject: Re: URL Access Scripting Not Launching
  • From: John McAdams <email@hidden>
  • Date: Sun, 3 Nov 2002 23:04:47 -0500

I used CUrl a while back. I'm not a Unix person at all but CUrl was pretty easy to figure out. And it plays nice with the rest of my script (do shell script seems to wait for a response before stepping ahead). Here's a sample of how I did Post data to control a CGI called Alder on Forest.net.

do shell script "curl -d \"option=live&dbname=myDB&submit=Close Database(s)\" http://user:email@hidden:0000/alder.fcgi";

The -d is the Post flag. The backslash escapes the quote. Option=live&dbname=myDB&submit=Close Database(s), is the Post data. Then the URL with user and password.

It worked wonderfully. Another great tool is NCFTP. Between that and CUrl my URL AS functionality is covered. --jmc


On Sunday, Nov 3, 2002, at 18:14 America/New_York, email@hidden wrote:

Message: 1
Date: Sun, 3 Nov 2002 04:53:48 -0500
To: email@hidden
From: Ken Fleisher <email@hidden>
Subject: Re: URL Access Scripting Not Launching

Well, I've found annoying problems in UAS for Mac OS X. It definitely
will not work if you're trying to POST form data, rather than just
using a GET. You can either use WebMiner as gerd mentioned, which has
a fairly low price and has a helpful AppleScript interface, or you
can use the command-line utility 'curl'. Type man curl in the
Terminal to see how to use it. It is very powerful, and is built into
Mac OS X 10.1 and greater.

I've never tried to upload with UAS, and didn't know that was broken,
too. It would be nice if Apple would just move URL Access Scripting's
engine over to using curl. Curl is fast and very flexible.

Okay, so UAS for OS X can't upload--or download POST, only GET? So why is it even there?!?

I'll check out Curl on Monday, but a question first. If I find it to be helpful, can I script it? This needs to be part of a CGI that I'm writing and I only know AppleScript (please don't suggest PHP, etc. I don't have time to learn another language for this project). In the worst case, I can use the classic version of UAS because I already have it working. It's pretty fast once it's launched, but there's a noticeable delay when classic has taken a nap and UAS must re-launch. At least it works!

Ken Fleisher
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Eject CD AppleScript command on OS X ?
  • Next by Date: Re: Busy Status
  • Previous by thread: Re: URL Access Scripting Not Launching
  • Next by thread: Re: URL Access Scripting Not Launching
  • Index(es):
    • Date
    • Thread