Do you want a really SIGNIFICANT reply to the "save as"?
TL;DR <= Sorry if so.
I have a file called "names.txt", containing comma delimited "short names" for folders - even on my NAS \\Alpha\...
a few lines:
how,C:\Ward\Bin\How\
dc,C:\Ward\Darryl\Chats\
xn,C:\Ward\Xmodem-net\
e,C:\Ward\Eudora\
nastv,\\Alpha\shows\tv\
When I do a save-as, the suggested name is highlighted so I ^C it to save it. -- but I don't HAVE to, read on:
I then type my macro express pro 6 shortcut leadin which is ";;" then the macro to read my names file and return the full path: "dot" (.).
ex: save as
shows [myfile.ods] but this isn't in the directory I want
I press ^C to save it
I type [mac ex shortkey leadin]. <== note the "dot" at the end.
it pops up a window asking for the shortcut name:
I type for ex dc<enter>
it looks up, finds dc is c:\ward\darryl\chats\ and stuffs it in the "save as" name field.
I can then do either of these:
1: press ^V to paste in the "myfile.ods" and hit enter to save.
-or-
2: I hit enter with just the path in the save-as filename, which switches to that directory *and* puts the "myfile.ods" back, so press enter
Do I use this macro? Does the fact that I have 495 names in my NAMES.TXT help you answer? LOL
Name: . = go via names.txt any app
Icon: (Default)
Shortkey: .
Scope: Global
<VARIABLE SET STRING Option="\x02" Destination="%saveclip%" NoEmbeddedVars="FALSE" _ENABLED="FALSE"/>
<TEXT TYPE Action="0" Text="<SHIFTD><HOME><DELETE><SHIFTU>" _ENABLED="FALSE"/>
<DELAY Flags="\x02" Time="500"/>
<VARIABLE SET STRING Option="\x01" Destination="%name%" Prompt="name to look up:" Mask="FALSE" OnTop="FALSE" Left="Center" Top="Center" Monitor="0"/>
<VARIABLE SET STRING Option="\x02" Destination="%name%" NoEmbeddedVars="FALSE" _ENABLED="FALSE"/>
<VARIABLE SET STRING Option="\x00" Destination="%NamesPath%" Value="C:\\Ward\\Directories\\T520-names.txt" NoEmbeddedVars="FALSE"/>
<IF NOT FILE EXISTS File="%NamesPath%"/>
<VARIABLE SET STRING Option="\x00" Destination="%NamesPath%" Value="c:\\Ward\\Names.txt" NoEmbeddedVars="FALSE"/>
<IF NOT FILE EXISTS File="%NamesPath%"/>
<VARIABLE SET STRING Option="\x00" Destination="%NamesPath%" Value="C:\\Ward\\T520-names.txt" NoEmbeddedVars="FALSE"/>
<END IF/>
<IF NOT FILE EXISTS File="%NamesPath%"/>
<MACRO STOP/>
<END IF/>
<END IF/>
<REPEAT START Start="1" Step="1" Count="100" Save="FALSE" _ENABLED="FALSE"/>
<ASCII FILE BEGIN PROCESS Filename="%NamesPath%" Format="CSV" Start_Record="1" Process_All="TRUE" Records="1" Variable="%namesfile%" Start_Index="1" Parse_Blank_Lines="FALSE" Clear_Array="TRUE"/>
<TEXT BOX DISPLAY Title="Variables" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs14 %name%\r\n\\par %namesfile[1]%\r\n\\par %namesfile[2]%\r\n\\par \\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x01" Delay="1" _ENABLED="FALSE"/>
<DELAY Flags="\x01" Time="1" _ENABLED="FALSE"/>
<IF VARIABLE Variable="%namesfile[1]%" Condition="\x00" Value="%name%" IgnoreCase="FALSE"/>
<DELAY Flags="\x02" Time="500"/>
<TEXT TYPE Action="0" Text="%namesfile[2]%"/>
<MACRO RETURN/>
<REPEAT EXIT/>
<END IF/>
<ASCII FILE END PROCESS/>
<END REPEAT _ENABLED="FALSE"/>
<TEXT TYPE Action="0" Text="\\" _ENABLED="FALSE"/>
<TEXT TYPE Action="0" Text="%name% -- ** Not found **"/>
Hope you don't mind the indents - I wrote a URL indenter and expanded it to work with macro express...
I should have cleaned that up for submission, by making assigning the names.txt a variable -- just search for it in the macro.
BUGS: Windows 10, curses, sometimes does the popup window asking for the name, BEHIND the active window. I've learned to ignore that, and just type the shortcut, e.g. dc<enter> which works find.
Enjoy.
Ward Christensen, inventor of "Xmodem" and "BBSs" (Bulletin Board Systems) (all 3 entries are on wikipedia if you're curious)
P.S. I have about 250 macro express macros. I'll probably be rather active here, haha. I'm a 75-yr-old retiree from 44 years at IBM in the Chicago area.
P.P.S. The "program/programming language" I use for (1) maintaining my names.txt list, and (2) indenting urls and macros, is Mansfield Software Kedit, so sorry, not very portable.
______________________
A bit of background: At one point, I believe it was Windows XP, assigning shortcut keys in Windows was easy - you just did the properties on the link in the start menu folder, and assigned for example "K" which meant this .lnk would be launched by Ctrl-Alt-K.
Well, one day, I realized that doing Windows shortcut keys to launch, sometimes took TEN SECONDS. I analyzed why, and found that XP was NOT CACHING the shortcut keys, so was finding the start menu for every user, opening each .lnk file, scanning for the n'th character, to see if it matched the one you used with Ctrl-Alt. I was SO annoyed, I sought a replacement - and Macro Express to the rescue! Instant loading of programs, instead of up to 10 seconds of "nothing".
THEN I went nuts with shortcut keys, to where I now have 173.