Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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




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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.