GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Folderalias 'User' doesn't work as Favorite


#1

A folder alias named 'User' works like any other alias, except in one situation: when it is used as a Favorite.

Use this example, if you want to try it out:

Favorites Add=ALIAS  NAME=User   PATH="C:\Program Files"
Favorites Add        NAME=User   PATH=/User
Favorites Add        NAME=User1  PATH=/User
Favorites Add        NAME=User2  PATH=/User\GPSoftware
                             
Favorites Add=ALIAS  NAME=User3  PATH="C:\Windows"
Favorites Add        NAME=User3  PATH=/User3

This creates three new favorites (User1, User2, User3). User2 and User3 work, User1 does not. User does not get created. /User works and can be entered in the location field.


#2

Thanks!

We've fixed that for the next update.


#3

In 12.10 this alias now works as a Favorite, but it doesn't work with the GO command. Just checked, that error existed already in 12.9.

A little test menu:

<?xml version="1.0"?>
<button backcol="none" display="label" textcol="none" type="menu">
    <label>GO...</label>
    <icon1>#newmenu</icon1>
    <button backcol="none" display="both" label_pos="right" textcol="none">
        <label>Go /User</label>
        <icon1>#newcommand</icon1>
        <function type="normal">
            <instruction>Go /user</instruction>
        </function>
    </button>
    <button backcol="none" display="both" label_pos="right" textcol="none">
        <label>Go /temp</label>
        <icon1>#newcommand</icon1>
        <function type="normal">
            <instruction>Go /temp</instruction>
        </function>
    </button>
    <button backcol="none" display="both" label_pos="right" textcol="none">
        <label>Go /appdata</label>
        <icon1>#newcommand</icon1>
        <function type="normal">
            <instruction>Go /appdata</instruction>
        </function>
    </button>
</button>

#4

Instead of Go /user, you have to use a more explicit command line Go PATH="/user" with the Go command and any alias that has the same name as one of its arguments.

(I tend to use that form almost all the time, as then you don't have to worry about when it is and isn't needed.)


#5

Yes... thanks. From the beginning I was thinking whether it is such a good idea to use folder names that clash with system folders or commands. To always use the explicit form sounds like a good habit, will try to pick this up.