indeedsandra wrote:Hurray!admin wrote:I will add "standalone aliases" prefixed with @, and they will be added to 9.20.
How will we be able to define the aliases? List Management?
indeedsandra wrote:Hurray!admin wrote:I will add "standalone aliases" prefixed with @, and they will be added to 9.20.
This should still be somewhat possible, in that there should be two new fields for GetInfo & <get ...>:admin wrote:then you could do this in the address bar:
C:\@w@\system32
Excellent!TheQwerty wrote:I agree with what's been seemingly decided so far, Don, but I think I'd like to see: @aliasName[=value]
So the aliasName cannot contain @ or =.
Then in any goto we can use:
"@aliasName" to goto/execute value.
"@aliasName=value" to define aliasName as an alias to value.
"@aliasName=" to clear/undefine aliasName.
And ideally there will be an Alias List in List Management.This should still be somewhat possible, in that there should be two new fields for GetInfo & <get ...>:admin wrote:then you could do this in the address bar:
C:\@w@\system32
GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
GetInfo("AliasValue", aliasName) which would return just the alias' value.
Nearly!admin wrote:Done!
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
Code: Select all
@@=::Goto('@' . Input("Create New Alias","Enter an alias name (without @) for: <curpath>","<curfolder>",'s') . "=<curpath>");For what?TheQwerty wrote:Nearly!admin wrote:Done!Seems you missed:
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
Alternative means of managing them.. I don't know, but I'm sure I could come up with something eventually...admin wrote:For what?TheQwerty wrote:Nearly!admin wrote:Done!Seems you missed:
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
Never mind, but I'll keep that for later...TheQwerty wrote:Alternative means of managing them.. I don't know, but I'm sure I could come up with something eventually...admin wrote:For what?TheQwerty wrote:Nearly!admin wrote:Done!Seems you missed:
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
Perhaps more preferable would be a new function GetList(ListName[, Delimiter]); which could work with all of the List Manager's children.
Hmmm... wait a minute... what are you trying to do? If you are looking for a quick (alias-based) way to copy the selected list items to a particular folder, I would rather write a one-liner using scripting command copyto, and then map this onto an alias. E.g.sandra wrote:Would it be possible, to make them work in the CopyTo/MoveTo Dialogue, please?
Code: Select all
@t=focus list; copyto "C:\Test\Target\";Wild thing!TheQwerty wrote:My first alias (to make it easier to create more):Code: Select all
@@=::Goto('@' . Input("Create New Alias","Enter an alias name (without @) for: <curpath>","<curfolder>",'s') . "=<curpath>");
Code: Select all
v9.11.0012 - 2010-05-27 13:09
Usage Of Aliases:
Aliases can be added, edited, or removed directly through the Address Bar:
Shift+Ctrl+A to access address bar
@AliasName=value define AliasName as an alias to value
adds a new alias or overwrites any existing alias of the same name
@AliasName goto/execute value associated with AliasName
@AliasName= undefine AliasName (= remove it)Code: Select all
@=::#633; //open "Tools / List Management / Aliases..."
n=::run notepad; //start notepad
N=::$a = "<curpath>\" . input("New file name without .txt") . ".txt"; new $a, file; run notepad $a; //create new file
new=::#230; //opens default "New... " - dialog
u=::goto "%UserProfile%"; // goto C:\Documents and Settings\<cur username>
U=::Load "UserMenu"; //run an scriptWow, I didn't know that such things are already possible. Great feature. Thank you very much, Don.admin wrote:Hmmm... wait a minute... what are you trying to do? If you are looking for a quick (alias-based) way to copy the selected list items to a particular folder, I would rather write a one-liner using scripting command copyto, and then map this onto an alias. E.g.Code: Select all
@t=focus list; copyto "C:\Test\Target\";
Actually I should have added the :: script marker:sandra wrote:Wow, I didn't know that such things are already possible. Great feature. Thank you very much, Don.admin wrote:Hmmm... wait a minute... what are you trying to do? If you are looking for a quick (alias-based) way to copy the selected list items to a particular folder, I would rather write a one-liner using scripting command copyto, and then map this onto an alias. E.g.Code: Select all
@t=focus list; copyto "C:\Test\Target\";
Code: Select all
@t=::focus list; copyto "C:\Test\Target\";Code: Select all
::copyto "C:\Test\Target\", ":list";