• 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: Safari - downloading an image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari - downloading an image


  • Subject: Re: Safari - downloading an image
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 22 Aug 2005 05:44:05 -0500

At 06:17 -0400 08/22/2005, Gary (Lists) wrought:

"Elegance" in the sense of an algorithm (equation, program, process) usually
means "simplest" or "most direct", or a combination of those qualities and
some other known-when-seen "oh, yeah!" factor.

Pedant. :)

I'm quite clear on what elegant means, and for the application I have in mind my usage was correct.

In fact, to suggest that you even need Safari, inside an AppleScript, to do
a download is anti-elegance, by definition.  Safari (or any browser) is a
totally specious introduction into the process for programmatically
downloading a file.

Since I'm using Safari to find the files in the first place and parsing the source of the front document for their urls, it's not so specious after all.


To suggest JavaScript as being "more elegant" than 'curl' (whose only
purpose in life is downloading things, give or take) seems an equally
in-elegant choice.

The idea is to trigger Safari to download the file(s) with all attendant progress indicators.


How about this for my stab at sans shell elegance, using only AppleScript
(but made inelegant because I've tried to avoid line wrapping in the
email...this could be one line):

URL Access scripting is inelegant by definition, and I'm afraid it always has been. Why would you think I'd even consider using it when I have access to curl and wget?


If you want real elegance, use 'curl'...it's __much__ faster!

Curl is great (as is wget), but it's not what I'm looking for in this instance (as I mentioned in my first post).


Finally - I was seeking help to accomplish something, and I find the criticism in your response to be much less than useful or helpful.


Chris


_______________________________________________ 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: Safari - downloading an image
      • From: "Gary (Lists)" <email@hidden>
    • Re: Safari - downloading an image
      • From: Rob Stott <email@hidden>
References: 
 >Re: Safari - downloading an image (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: Safari - downloading an image
  • Next by Date: Re: Finder f*ck-ups
  • Previous by thread: Re: Safari - downloading an image
  • Next by thread: Re: Safari - downloading an image
  • Index(es):
    • Date
    • Thread