Page 2 of 2

Re: Some workflow enhancers

Posted: 09 May 2010 22:24
by Pagat
sandra wrote:
admin wrote:I will add "standalone aliases" prefixed with @, and they will be added to 9.20.
Hurray!
indeed :)

How will we be able to define the aliases? List Management?

Re: Some workflow enhancers

Posted: 10 May 2010 06:28
by TheQwerty
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.
admin wrote:then you could do this in the address bar:
C:\@w@\system32
This should still be somewhat possible, in that there should be two new fields for GetInfo & <get ...>:
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.

Re: Some workflow enhancers

Posted: 10 May 2010 08:37
by admin
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.
admin wrote:then you could do this in the address bar:
C:\@w@\system32
This should still be somewhat possible, in that there should be two new fields for GetInfo & <get ...>:
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.
Excellent!

Re: Some workflow enhancers

Posted: 27 May 2010 13:12
by admin
Done! 8)

Re: Some workflow enhancers

Posted: 27 May 2010 13:41
by TheQwerty
admin wrote:Done! 8)
Nearly! :P Seems you missed:
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."

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>");

Re: Some workflow enhancers

Posted: 27 May 2010 13:50
by sandra
Great, thank you so much, Don!

Would it be possible, to make them work in the CopyTo/MoveTo Dialogue, please?

Re: Some workflow enhancers

Posted: 27 May 2010 13:57
by admin
TheQwerty wrote:
admin wrote:Done! 8)
Nearly! :P Seems you missed:
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
For what?

Re: Some workflow enhancers

Posted: 27 May 2010 15:01
by TheQwerty
admin wrote:
TheQwerty wrote:
admin wrote:Done! 8)
Nearly! :P Seems you missed:
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
For what?
Alternative means of managing them.. I don't know, but I'm sure I could come up with something eventually...

Perhaps more preferable would be a new function GetList(ListName[, Delimiter]); which could work with all of the List Manager's children.

Re: Some workflow enhancers

Posted: 27 May 2010 18:54
by admin
TheQwerty wrote:
admin wrote:
TheQwerty wrote:
admin wrote:Done! 8)
Nearly! :P Seems you missed:
TheQwerty wrote:GetInfo("AliasList", [Delimiter]) which would return the list of all aliases as "@aliasName=value[delimiter]..."
For what?
Alternative means of managing them.. I don't know, but I'm sure I could come up with something eventually...

Perhaps more preferable would be a new function GetList(ListName[, Delimiter]); which could work with all of the List Manager's children.
Never mind, but I'll keep that for later... :)

Your idea of defining the aliases right in the address bar was very cool -- thanks for that! :D

Re: Some workflow enhancers

Posted: 27 May 2010 19:06
by admin
sandra wrote:Would it be possible, to make them work in the CopyTo/MoveTo Dialogue, please?
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\";

Re: Some workflow enhancers

Posted: 27 May 2010 22:33
by admin
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>");
Wild thing! :mrgreen:

Re: Some workflow enhancers

Posted: 27 May 2010 22:57
by Stefan
Great new feature, thanks! :D

Announcement

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)
Read more...

First tests

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 script

We need an new thread: Share your aliases

.

Re: Some workflow enhancers

Posted: 28 May 2010 07:46
by sandra
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\";
Wow, I didn't know that such things are already possible. Great feature. Thank you very much, Don.

Re: Some workflow enhancers

Posted: 28 May 2010 07:57
by admin
sandra wrote:
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\";
Wow, I didn't know that such things are already possible. Great feature. Thank you very much, Don.
Actually I should have added the :: script marker:

Code: Select all

@t=::focus list; copyto "C:\Test\Target\";
Without :: the script only works when you set the tweak ScriptSmartDetect=1 in the INI.

Re: Some workflow enhancers

Posted: 28 May 2010 09:03
by admin
BTW, I just enhanced the copyto command. In the next version you can drop the focus list; line and do this:

Code: Select all

::copyto "C:\Test\Target\", ":list";