Skip to main content
18 events
when toggle format what by license comment
S Dec 19, 2017 at 22:03 history bounty ended CommunityBot
S Dec 19, 2017 at 22:03 history notice removed CommunityBot
Dec 12, 2017 at 7:58 comment added Bruce @mhucka I was actually able to sign into a paywalled site within DEVONthink by using the helper page from this post on their blog. However, it does not seem that DEVONthink uses the cookies from that browsing session when it creates the webarchive.
Dec 12, 2017 at 7:54 comment added mhucka @Bruce Thanks for your efforts! I actually have DEVONthink Pro and use it constantly. The reason I'm asking the question is I'm trying to deal with paywalled websites. I need Safari to be the program that creates the archive because it's the program that has the session cookies.
Dec 12, 2017 at 7:36 comment added Bruce If you're up for buying a potential solution, DevonThink can be scripted to create a webarchive. Unfortunately, I haven't been able to get it to sign into a page yet. I'm going to try more tomorrow or Wednesday.
Dec 12, 2017 at 7:36 comment added Bruce I think Safari's AppleScript save command is broken. I tried a bare save document 1. While it did bring up the save dialog box, it appended .css to the document name instead of .webarchive. Even though the the format option at the bottom of the box was "Web Archive". Then when I hit save, I got the same error of "could not be exported" and error code 10000 (Apple Event Handler Failed). Moreover, after running the script, the Format dropdown menu in the save dialog box disappeared
Dec 12, 2017 at 2:32 history tweeted twitter.com/askdifferent/status/940409103649853440
Dec 12, 2017 at 1:27 history edited mhucka CC BY-SA 3.0
added 6 characters in body
Dec 11, 2017 at 23:55 comment added Jake3231 @mhucka I had the same issue.. I posted a bundled script including newzelandpaul's webarchiver command that achieves the intended behavior.
Dec 11, 2017 at 23:52 answer added Jake3231 timeline score: 3
Dec 11, 2017 at 20:33 comment added mhucka @BallpointBen Yes; as soon as I add as "formatname" (whatever "formatname" I try), AppleScript Editor reports error "Safari got an error: document 1 doesn’t understand the “save” message." number -1708 from document 1.
Dec 11, 2017 at 20:28 comment added BallpointBen Have you tried variations such as "webarchive" and "Web Archive"?
S Dec 11, 2017 at 20:23 history bounty started mhucka
S Dec 11, 2017 at 20:23 history notice added mhucka Draw attention
Dec 11, 2017 at 20:22 history edited mhucka CC BY-SA 3.0
added 487 characters in body
Dec 11, 2017 at 20:16 comment added mhucka @user3439894 Thanks. Unfortunately, I'm trying to automate a more complicated workflow, and need to control things like where it writes the file. The AppleScript dictionary for Safari implies that save should accept an "as format" argument, so I keep hoping that it really can work and that I just haven't figured out the right syntax.
Dec 9, 2017 at 2:57 comment added user3439894 If you can't find a way other then through UI Scripting, here's a nice example of it. AppleScript: Safari - Save As Web Archive
Dec 9, 2017 at 2:06 history asked mhucka CC BY-SA 3.0