My New Text File function
Posted: 22.11.2018, 04:48
Salvete! For some time now, I have been using Powerpro to do a special function, and I create a FCXE button, and attach the script to that button. My script will create a new blank text file in the directory of the active tab, ask you for its name (and extension, too, if say you want it to be an .ahk file or a .bat file - but if you don't specify the extension, it defaults to .txt), save it there, and then open it so I can begin typing immediately. I know FC can create a new text file, but how about the rest? Anybody like this idea?
Now, I want to say that I have a second, similar button, that runs a script to create what I call an "info-page" file. This is a text file that is always named "!info.txt" - the ! makes it sort to the top in name-sorted lists. When it is created and named, it is automatically opened, a separator bar (------------), the date and time is inserted, and the cursor is jumped to the first blank line after that date. Then I can make any notes I want there. Now, the next time I am in that directory, and I push the infopage button, instead of creating a new info-page, it opens the original one, jumps to the end of the text, inserts a new separator, date an sets the cursor on the next following blank line. Now I have a sort of dated diary.
Do you like that idea too?
Now, I want to say that I have a second, similar button, that runs a script to create what I call an "info-page" file. This is a text file that is always named "!info.txt" - the ! makes it sort to the top in name-sorted lists. When it is created and named, it is automatically opened, a separator bar (------------), the date and time is inserted, and the cursor is jumped to the first blank line after that date. Then I can make any notes I want there. Now, the next time I am in that directory, and I push the infopage button, instead of creating a new info-page, it opens the original one, jumps to the end of the text, inserts a new separator, date an sets the cursor on the next following blank line. Now I have a sort of dated diary.
Do you like that idea too?