I'm going nuts here trying to make more than one internal command work in a File Type context menu item. Is this even possible? I can only make one command work, regardless of what I try for delimiters or with putting commands on separate lines.
Here is what I am trying to do:
Objective: A NewMenu item in a folder context menu is used, say, to create a new text file. DOpus does this, with the new file in Rename mode, which is fine. The difficulty is the folder I right clicked on has the real focus. I want the new file to have the focus after I have edited its filename (i.e. so I can hit Enter twice to save the new name and load that file into a text editor for a paste operation).
Methods Tried:
Select None FileType NewMenu
Select None, FileType NewMenu
Select None; FileType NewMenu
Select None
FileType NewMenu
Select None,
FileType NewMenu
Select None;
FileType NewMenu
And also those variations with the commands reversed. No dice. Surely DOpus must be cabable of doing this somehow, but the manual and help are lacking in many basics, and I have been unable to find anything on this here in the forum.
Are multiple commands possible for context menu items?
results in an incomplete file selection dialog, with the pattern " *. "
My understanding of "Select None" is that it should need no pattern, and should simply "deselect all files and folders." However, the command has an /S option, which makes no sense to me, and I have no idea what to provide for that switch. It seems this command shouldn't need a switch (i.e. isn't it a simple off switch itself, for . ?).
If I put the commands on separate lines, Select None works properly,
but in my right click menu the name of my routine ("New File/Folder") does not have a menu arrowhead next to it.
So it seems that FileType NewMenu works only if it is in the first line. This is a bummer. Apparently Select turns the right click menu off, and FileType NewMenu cannot function independtly of it.
The "dynamic" commands that generate other menu items can not be used in conjunction with other commands. However, one way you could do it is to recreate the 'New' menu manually - you then wouldn't be using a dynamic command, and could use multiple instructions in the one function.
Eg, if you had a function like:
Select None
FileType NEW=.txt
This would deselect all files, and then create a new text file. If there's only a few types of file that you find yourself creating you could just fill a sub-menu with a few commands like this.