QAP 9.1.1: add folder name containing a dot

12 views
Skip to first unread message

Carsten S.

unread,
Aug 29, 2018, 6:39:31 AM8/29/18
to qap-s...@googlegroups.com
Hello Jean,
adding a folder, only the name in front of the dot will be placed into the field "shot name for menu"

Carsten
wrong_short_name.png

Jean Lalonde

unread,
Aug 29, 2018, 11:34:16 AM8/29/18
to Quick Access Popup Support
Hi Carsten,

This is because QAP interprets everything after the last dot in a path as the beginning of the file extension, even if it is not. In fact, processing the last dot that way is not specific to QAP. It is done by the AutoHotkey command "SplitPath" used by QAP. And there is no easy way to determine if it is an extension or not because both folders and files can have extensions or not.

In this case you would have to edit it in QAP. Or, as old DOS users like me do, avoid inserting a dot in a folder name. Using "1) Name" instead, for example.

Jean

Carsten S.

unread,
Aug 29, 2018, 3:30:17 PM8/29/18
to Quick Access Popup Support
Hi Jean,
why is something removed from a directory?
For files this is understandable, but with directories there is usually no file Extension

I'm not an expert on Authotkey but maybe maybe my idea offers a solution
contextmenu Mode 'Add folder' - If the directory name contains a file extension or not the 'FileShortName' is allways correct

code snippets:
———————-
FileShortName := ""
SplitPath, InputVar , OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive

// check if directory exist
If( InStr( FileExists ), "D") {
// Name of the variable in which to store the file name without its path. The file's extension is included.
FileShortName := %OutFileName%
}

Jean Lalonde

unread,
Aug 29, 2018, 5:31:54 PM8/29/18
to Quick Access Popup Support
This is true. This will be in the next release :-)

Thanks,

Jean
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages