Minor scripting related wishes (a generic thread)
Re: Minor scripting related wishes (a generic thread)
Perfect. Thanks.
Re: Minor scripting related wishes (a generic thread)
Could you please give a little steroid to SC moveto and copyto - allow a way to supress the rich-copy dialog.
-
- Site Admin
- Posts: 60595
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
The dialog asks a question. You want me decide for you?
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
No, I would decide in a scripted way.
If we go in a branch view and are invoking a script, I would know what I am doing. I am always hitting a No in this case and could always use a predetermined No in such scenarios. There can be four completely independent possibilites here (3 options - yes, no, cancel or show the dialog).
On the same lines, copyto and move to can make use of the on_collision field which is available for backupto. I often goto help file to see the format and stop after seeing it is backupto only. Occasionaly, do think about (ab)using backupto + delete instead of moveto, but drop the idea as it would involve actual bit copies of large files.
P.S. - I never asked before for on_collision because of the subtle difference in parameters for these 3 ops (and wrote this out of flow today)
If we go in a branch view and are invoking a script, I would know what I am doing. I am always hitting a No in this case and could always use a predetermined No in such scenarios. There can be four completely independent possibilites here (3 options - yes, no, cancel or show the dialog).
On the same lines, copyto and move to can make use of the on_collision field which is available for backupto. I often goto help file to see the format and stop after seeing it is backupto only. Occasionaly, do think about (ab)using backupto + delete instead of moveto, but drop the idea as it would involve actual bit copies of large files.
P.S. - I never asked before for on_collision because of the subtle difference in parameters for these 3 ops (and wrote this out of flow today)
Re: Minor scripting related wishes (a generic thread)
+1
Having to answer the Rich Copy prompt can be a real annoyance when collecting files in on place. I had to do it at least a thousand times last year, when flattening folders manually in Branch View * and later using a script **. An override on this prompt for scripting, at least, would be a big help in such cases.
* http://www.xyplorer.com/xyfc/viewtopic. ... py#p105191
** http://www.xyplorer.com/xyfc/viewtopic. ... ch#p110893
Having to answer the Rich Copy prompt can be a real annoyance when collecting files in on place. I had to do it at least a thousand times last year, when flattening folders manually in Branch View * and later using a script **. An override on this prompt for scripting, at least, would be a big help in such cases.
* http://www.xyplorer.com/xyfc/viewtopic. ... py#p105191
** http://www.xyplorer.com/xyfc/viewtopic. ... ch#p110893
-
- Site Admin
- Posts: 60595
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
Why not simply use backupto()?
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
I already answered that
BackupTo is an alternative to CopyTo. Not a very good alternative for MoveTo for moves on the same partition.
BackupTo is an alternative to CopyTo. Not a very good alternative for MoveTo for moves on the same partition.
-
- Site Admin
- Posts: 60595
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
OK, but that wish is more complex than it might seem. Maybe next year.
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
can formatdate() support msecs
?
formatdate(property('System.DateCreated',$f), 'yyyy.dd.mm_hh.nn.ss.fff')
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60595
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
It does already, but property('System.DateCreated') does not return any msecs. The shell dumbs down NTFS data and ignores the msec part.
Getting the exact time now, for instance:
Getting the exact time now, for instance:
Code: Select all
echo formatdate(, 'yyyy.dd.mm_hh.nn.ss.fff');
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
*bump*
I apparently forgot to bump this old wish but I found myself with another need for it today...
I apparently forgot to bump this old wish but I found myself with another need for it today...
TheQwerty wrote:Please sir, I want some more.
This wish comes with free documentation!
History.txt:CHM:Code: Select all
+ SC get got a new named argument "listofcommands". Syntax: get("listofcommands", [flags], [separator=CRLF]) flags: (bit field) 1 = Prepend Command IDs, separated by a TAB. 2 = Append Keyboard Shortcuts, separated by a TAB. return: The list of all commands. Examples: text get("listofcommands"); text get("listofcommands", 3);
Code: Select all
<Under: ::help('idh_scripting_comref.htm#idh_sc_get'); > "listofcommands", [flags], [separator=CRLF] Returns the list of all commands. flags: (bit field) 1 = Prepend Command IDs, separated by a TAB. 2 = Append Keyboard Shortcuts, separated by a TAB. return: The list of all commands. Examples: text get("listofcommands"); text get("listofcommands", 3);
Re: Minor scripting related wishes (a generic thread)
+1 to TQ's wish.
Please andAnd please add a separator parameter to thumbsconf, continuing the setlayout parallel.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60595
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
Ok, and Ok.
Can't resist a copy+paste job.
Can't resist a copy+paste job.
FAQ | XY News RSS | XY Twitter
Re: Minor scripting related wishes (a generic thread)
Thank you!admin wrote:Ok, and Ok.
Guess I should do some digging because I know you've resisted a few in the past and now might be a good time to bump them!admin wrote:Can't resist a copy+paste job.
-
- Site Admin
- Posts: 60595
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Minor scripting related wishes (a generic thread)
Noooo, mercy!!!
FAQ | XY News RSS | XY Twitter