• 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: How to save the Safari front window contents by script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to save the Safari front window contents by script


  • Subject: Re: How to save the Safari front window contents by script
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 1 Mar 2007 20:14:45 +0100


Le 1 mars 07 à 17:29:42, Emile SCHWARZ a écrit :


Hi all,

the subjects says nearly all:

How to save the Safari front window contents by script

without having to press OK / having a save as dialog ?


TIA,

Emile


Hello Emile

This short script will save the Safari front window on the desktop.
I'm quite sure that you know how to move it to the wished destination ;-)


tell application "Safari" to activate
tell application "System Events" to tell process "Safari"
	keystroke "s" using {command down} (* open the Save dialog *)

	click button 1 of sheet 1 of window 1 (* click the Save Button *)
end tell

Yvan KOENIG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >How to save the Safari front window contents by script (From: Emile SCHWARZ <email@hidden>)

  • Prev by Date: Re: Filemaker waiting for AS
  • Next by Date: Re: shell scripting
  • Previous by thread: How to save the Safari front window contents by script
  • Next by thread: How to save the Safari front window contents by script
  • Index(es):
    • Date
    • Thread