Page 8 of 28

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Sep 2011 10:30
by admin
zer0 wrote:
highend wrote:I do this with the help of ffmpeg (in a greater context for my video convert script).
Thank you for a potential workaround. I would rather Don makes it possible through scripting, which should be a trivial exercise.
I could not believe that property() does not return this, but indeed you are right! Although the indices are there (#162 and #164), they don't return anything. Weird.

Sorry, but providing extra support for this is not possible right now.

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Sep 2011 11:30
by zer0
admin wrote:Sorry, but providing extra support for this is not possible right now.
You already show the dimensions in a box in the preview pane, so is it that far a leap to be able to allow scripting to derive them as well? If yes, then :(

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Sep 2011 11:50
by nas8e9
zer0 wrote:
admin wrote:Sorry, but providing extra support for this is not possible right now.
You already show the dimensions in a box in the preview pane, so is it that far a leap to be able to allow scripting to derive them as well? If yes, then :(
From a quick look, XYplorer isn't alone with the width and height properties not being displayed: Windows Explorer and xplorer2 (both of which support shell columns) show empty values in the width and height shell columns. Oddly enough, WE does show those properties correctly in its Details Pane.

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Sep 2011 12:02
by zer0
nas8e9 wrote:From a quick look, XYplorer isn't alone with the width and height properties not being displayed: Windows Explorer and xplorer2 (both of which support shell columns) show empty values in the width and height shell columns. Oddly enough, WE does show those properties correctly in its Details Pane.
XYplorer does display those values as shown in the screenshot below:
video_dimensions.PNG
video_dimensions.PNG (38.03 KiB) Viewed 2748 times
All I would like is to be able to get those values through scripting :|

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Sep 2011 12:24
by nas8e9
zer0 wrote:
nas8e9 wrote:From a quick look, XYplorer isn't alone with the width and height properties not being displayed: Windows Explorer and xplorer2 (both of which support shell columns) show empty values in the width and height shell columns. Oddly enough, WE does show those properties correctly in its Details Pane.
XYplorer does display those values as shown in the screenshot below: All I would like is to be able to get those values through scripting :|
It looks like XYplorer, as does WE in its Details Pane, uses a different way to get at those properties in its Preview tab. Hopefully, therein lies a clue for Don.

Re: Minor scripting related wishes (a generic thread)

Posted: 26 Sep 2011 12:54
by admin
Yes, I could do it, but I said "Sorry, but providing extra support for this is not possible right now." meaning: no time.

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Sep 2011 21:54
by TheQwerty
This is long overdue: either extend Run() or create a new similar function that captures and returns the executed program's standard out output.

Having to pipe the output elsewhere and juggle around files needs to end.

Re: Minor scripting related wishes (a generic thread)

Posted: 24 Oct 2011 16:27
by TheQwerty
TheQwerty wrote:This is long overdue: either extend Run() or create a new similar function that captures and returns the executed program's standard out output.

Having to pipe the output elsewhere and juggle around files needs to end.
Bumping and requesting a new method for Compare().

Method:
'f' = Files: Strings are treated as file paths and the files are compared using the same logic as "Compare (Submenu)".
First the file sizes are compared. If they are identical, the contents themselves are compared. The result is simply a "same" or "different" without any further information. If you need more details use a specialized comparison application (which can easily be automated from XY using UDCs or Scripting).
EDIT: And for this case results of 1 and -1 will only really have meaning if the file sizes differ.

Re: Minor scripting related wishes (a generic thread)

Posted: 24 Oct 2011 17:22
by zer0
While there may be a way to do this through regular expressions (hint hint), I would like for SC rename in S&R mode to support numeric-only wildcards. For example, I may have a file called "totallyawesomefile.123.whoisyourdaddy.doc" and want to be able to use rename() to call it "totallyawesomefile.a1b23.whoisyourdaddy.doc". Except it won't always be 123, hence the use of the wildcards.

Re: Minor scripting related wishes (a generic thread)

Posted: 27 Oct 2011 10:19
by admin
TheQwerty wrote:
TheQwerty wrote:This is long overdue: either extend Run() or create a new similar function that captures and returns the executed program's standard out output.

Having to pipe the output elsewhere and juggle around files needs to end.
Bumping and requesting a new method for Compare().
I tried this some weeks ago but failed. (I had not much time.)

Neither there is time for the other requests here.

Re: Minor scripting related wishes (a generic thread)

Posted: 20 Feb 2012 15:35
by TheQwerty
Could Input please be updated so that it is possible to provide multiline topics & notes for the multiline styles?
It seems silly that we can provide more information when asking for a single line of input than multiple lines, especially since QuickFileView proves it's possible to have our cake and eat it too! :wink:

The new syntax could be:

Code: Select all

input(topic, [notes], [default], [style=s|m|w], [cancel], [width=600], [height=400], [caption])
When using the 'm' or 'w' styles the dialog would now display multiline topics and notes in the white/grey areas respectively.
The new caption parameter will set the window's title bar, however, if omitted, it will default to using the first line of the topic to maintain backwards compatibility.


If you're feeling really ambitious (or bored!) the ability to add text under the edit box (again like QFV) would be welcomed as well! :mrgreen:

Re: Minor scripting related wishes (a generic thread)

Posted: 05 Mar 2012 17:33
by admin
I could improve it a bit: You now can state a topic line and a subtopic line, but only one line each.

Re: Minor scripting related wishes (a generic thread)

Posted: 07 May 2012 17:19
by zer0
I would like to bump an ability to retrieve values for width and height of video files via scripting.

Also, I would welcome for XYplorer to be able to detect segments of just numbers when encased by dots in the file name. For example, File.123.name.txt. I would like for XY to tell me how many numbers are there and allow to place characters at specific positions of the number string, like so: File.1a2b3c.name.txt.

Re: Minor scripting related wishes (a generic thread)

Posted: 09 May 2012 06:55
by Twisten
zer0 wrote:I would like to bump an ability to retrieve values for width and height of video files via scripting.

Also, I would welcome for XYplorer to be able to detect segments of just numbers when encased by dots in the file name. For example, File.123.name.txt. I would like for XY to tell me how many numbers are there and allow to place characters at specific positions of the number string, like so: File.1a2b3c.name.txt.
The first is more related to your particular setup (I belive windows call those - property sheet handlers) giving you the ability to retrieve certain properties of a file (video file in you case).

The second point can be easily handled with regular expressions and existing string handling SCs.

Re: Minor scripting related wishes (a generic thread)

Posted: 09 May 2012 15:00
by zer0
Twisten wrote:
zer0 wrote:I would like to bump an ability to retrieve values for width and height of video files via scripting.

Also, I would welcome for XYplorer to be able to detect segments of just numbers when encased by dots in the file name. For example, File.123.name.txt. I would like for XY to tell me how many numbers are there and allow to place characters at specific positions of the number string, like so: File.1a2b3c.name.txt.
The first is more related to your particular setup (I belive windows call those - property sheet handlers) giving you the ability to retrieve certain properties of a file (video file in you case).

The second point can be easily handled with regular expressions and existing string handling SCs.
1. Calling those parameters via property() does not return anything, so it is not related to my setup.
2. RegEx is not my strongest suit, so feel free to provide an example before you say "easily" ;)