Re: Saving a document in Safari
Re: Saving a document in Safari
- Subject: Re: Saving a document in Safari
- From: John Delacour <email@hidden>
- Date: Mon, 10 Feb 2003 21:50:37 +0000
- Mac-eudora-version: 6.0a5
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
JD
_______________________________________________
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.