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