Re: Saving a document in Safari
Re: Saving a document in Safari
- Subject: Re: Saving a document in Safari
- From: Rick Bargerhuff alias cougar <email@hidden>
- Date: Mon, 10 Feb 2003 17:53:27 -0500
On Monday, Feb 10, 2003, at 16:50 US/Eastern, John Delacour wrote:
At 3:13 pm -0500 10/2/03, Rick Bargerhuff alias cougar wrote:
For example, if I have opened an image or a sound file in a new
window, clicking "Save As" from the file menu saves the image or
sound file. This is what I am trying to do.
Then do something like this or use curl in a shell script
set f to "" & (path to desktop)
tell app "Safari" to set vURL to the URL of the front document
set AppleScript's text item delimiters to "/"
set f to f & vURL's last text item
set AppleScript's text item delimiters to ""
tell app "URL Access Scripting" to download vURL to file f
Hey JD!
Ok, I did this before, I have used wget and curl but does not work.
The reason is, some sites have automated or recursive download
retrieval protection,
meaning, soon as you download it, there is an ad and the image is not
there.
http://www.fortunecity.com loves doing this :( If you download
it with a browser it works. So, if I could get safari to save the
document it is currently viewing, it would work. But right now, this
does not work.
Thanks for the input. I don't mean to reject every solution you
submit, but I have tried all of these options. I should have given the
*list* more information on
what I have tried already. Again, thanks.
Rick
_______________________________________________
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.