One of the most useful features in QAP is
placeholders. Most of these are fairly straightforward, however, the CUR_ and SEL_ family of placeholders may not behave as you expect.
Let's first examine the SEL_ family of placeholders
These work like this:
For a file or folder named
C:\Parent\Child\Name.Ext, you would get the following substitutions from placeholders:
SEL_LOC:
C:\Parent\Child\Name.Ext
SEL_NAME:
Name.Ext
SEL_DIR:
C:\Parent\Child\
SEL_EXT:
Ext
SEL_NOEXT:
Name
SEL_DRIVE:
C:
Now let's examine the CUR_ placeholders, which behave in a slightly different way:
For a file or folder named
C:\Parent\Child.dir\Name.Ext, you would get the following substitutions from placeholders:
CUR_LOC:
C:\Parent\Child.dir
CUR_NAME:
Child.dir
CUR_DIR:
C:\Parent
CUR_EXT:
dir
CUR_NOEXT:
Child
CUR_DRIVE:
C:
Why does CUR_ behave different that SEL_? Because the SEL_ placeholders always target the file selection, and the CUR_ placeholders always target the containing folder.
Both sets of placeholders can seem eccentric at times:
- If there is no selected file, the SEL_ placeholders always substitute with "".
- CUR_ always substitutes as if it is looking at the containing folder--so if your mind thinks that "CUR_DIR" means "current directory" you will always be surprised when it substitutes with the current directory's containing directory.
- Using CUR_DIR in a root directory always substitutes the same as CUR_DRIVE.