3 ms·
Well, I'm using Linux Mint with Cinnamon and I've seen a "Save page as" dialog after the orkut community listing page was opened, then the script tried to writ
by fiatjaf 12y ago
Well, I'm using Linux Mint with Cinnamon and I've seen a "Save page as" dialog after the orkut community listing page was opened, then the script tried to write the path in the "Name" field of the dialog. It failed to erase the default name then failed write the slashes, resulting in a name like `homefiatjaforkut-community-downloaderPrevious-name-of-thepage.html` and error that (luckly) caused the program to stop.
- anuragbiyani 12y agoCan you test the following keystrokes manually and let me know the outcome with your browser: 1) Open any page in chrome 2) Press Ctrl+S 3) Press "Right" arrow key exactly once 4) Type some string, say "-suffix" 5) Press "Home" key exactly once 6) Type in some directory name with "/" at the end, say: "/tmp/" 7) Press Enter. Sorry if this sounds pedantic, but this is the actual sequence of key stroke the script will mimic in this case, so just want to make sure that work in the first place. Alternatively can you try https://github.com/abiyani/automate-save-page-as https://github.com/abiyani/automate-save-page-as script in isolation (with --suffix command line flag). PS: Under usual circumstances, the name field will should be replaced by something like this by the script (before pressing enter in the "Save as" dialog box): "/fully/expanded/dest/directory/path/<original_page_title>-000X.html"
- fiatjaf 12y agoIt works almost always :P (I mean the sequence of commands. It's kinda nice, now that you explained it. I'll try running your script from another computer.)