Some workflow enhancers

Features wanted...
Pagat
Posts: 309
Joined: 09 Oct 2007 21:23
Location: Austria

Re: Some workflow enhancers

Post 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?
OS: Windows 11, 64-bit, Version 25H2, Build 26200.8655 (10.0), AMD64
Monitor: 1/2 (Primary) Primary Screen DPI: 96 (100%)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Some workflow enhancers

Post 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.

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

Post 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!

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

Post by admin »

Done! 8)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Some workflow enhancers

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

sandra
Posts: 11
Joined: 08 May 2010 11:23

Re: Some workflow enhancers

Post by sandra »

Great, thank you so much, Don!

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

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

Post 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?

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Some workflow enhancers

Post 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.

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

Post 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

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

Post 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\";

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

Post 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:

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Some workflow enhancers

Post 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

.

sandra
Posts: 11
Joined: 08 May 2010 11:23

Re: Some workflow enhancers

Post 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.

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

Post 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.

admin
Site Admin
Posts: 66362
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Some workflow enhancers

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

Post Reply