AGU wrote:
wow, that's a lot of stuff I've to think about.
Thanks for taking the time!
Once i realized this script could take text from anything, I got very excited. for somebody doing any serous research, this could become a killer application.
Imagine you are looking for stuff in the internet, and in local documents (mostly html, txt, pdf, doc, xls) and related types. To copy and paste stuff to a centalized location (say "mywork.doc"), you need to select the text, control c, open mywork.doc, control v, add details or where you got that stuff from.
With this script of yours, as it is now, I select the text, press my selected "copykey", and everything is saved in "somenote.txt" I can then edit that note for "mywork.doc" Good stuff.
This is what your script made me think of, though:
1a) Add/improve the capability of capturing not just url, but real path for local files. SetTitleMatchMode sounds good for detecting browsers, but then some people, ahemm, take that info out. What about "if url starts with www-http-ftp-https, do the default"?
1b) If that is ruled out, then use some variation of copypath to determine local path, and print it as url. I do not know how difficult can this one be. Worse scenario, wintitlle would do. Path and wintitle (plus file extension) would be ideal. This is relevant when you care to remember very well where you get info from. Like when you quote from some source, or when you want to further analyze a piece of code.
2a) If file extension could be determined by the script, then it would be possible to add extension specific commands. These could be:
2b) First define default app (openoffice or office, acrobat or foxit, notepad or pspad) per extension. Necessary to customize 2c, below.
2c) If extension is pdf in 2a), and 2b) is acrobat, attach to my "copykey"
application specific commands to collect info like page number, column-row info, what have you. I have not thought this one through, but assuming you can extract via command some info that could be relevant to the stuff you are quoting, it would be great to have fuinctionality like this. It will asically depend in whatever metadata could one extract, via command, from an specific application.
3) Now, on second thought, and given the above, all the stuff about a FF extension and such is not as relevant. I like the idea of
Code:
Run, C:\program files\mozilla firefox\firefox.exe
Run, C:\YourFolder\CopyPassage\main.ahk
, but again, this would be unnecessary if the stuff above were to happen, for then you would run copypassage in startup.
4) As per how to edit the saved notes, I like Neomem becue it is a text database thingie that feels better than all other text database systems I have tried. I have just begun testing it, so I am not sure how to enter stuff in it via command. But I will try to figure that one out. Basically, we need to teach neomem to treat copypassage properly. Tht is to say, a plugin.
thanks again for your attentin and time!