AppleScript: Safari - Save As Web Archive

The title says it all: Can someone tell me please how - most likely via UI scripting, since I can't see anything in the dictionary - I can get Safari to save the front most document as a Web Archive using AppleScript?

Posted on Sep 24, 2011 3:47 AM

Reply
18 replies

Jan 17, 2014 3:22 PM in response to Neville Hillyer

Essentially, if I understand well, you have replaced


repeat while enabled of menu item "Save as…" of menu 1 of menu bar item "File" of menu bar 1 is false

endrepeat


with


repeat while enabled of menu item "Stop" of menu 1 of menu bar item "View" of menu bar 1 is true

end repeat

in the “tellapplication "System Events" totellprocess "Safari"” block.

That's a very interesting alternative, indeed. Thanks for that information.


By the way, you could remove “istrue” from the last statement above in order to be still more concise. 😉

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AppleScript: Safari - Save As Web Archive

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.