• 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: Saving a document in Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Saving a document in Safari
      • From: Rick Bargerhuff alias cougar <email@hidden>
    • Re: Saving a document in Safari
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Saving a document in Safari (From: Rick Bargerhuff alias cougar <email@hidden>)

  • Prev by Date: Re: Unwanted font style transfers
  • Next by Date: Back and forth from a matrix of buttons
  • Previous by thread: Re: Saving a document in Safari
  • Next by thread: Re: Saving a document in Safari
  • Index(es):
    • Date
    • Thread