Minor scripting related wishes (a generic thread)

Features wanted...
admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Minor scripting related wishes (a generic thread)

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

zer0
Posts: 2673
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Post 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 :(
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Minor scripting related wishes (a generic thread)

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

zer0
Posts: 2673
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Post 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 2752 times
All I would like is to be able to get those values through scripting :|
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Minor scripting related wishes (a generic thread)

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

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

Re: Minor scripting related wishes (a generic thread)

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

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

Re: Minor scripting related wishes (a generic thread)

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

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

Re: Minor scripting related wishes (a generic thread)

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

zer0
Posts: 2673
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Post 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.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

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

Re: Minor scripting related wishes (a generic thread)

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

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

Re: Minor scripting related wishes (a generic thread)

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

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

Re: Minor scripting related wishes (a generic thread)

Post by admin »

I could improve it a bit: You now can state a topic line and a subtopic line, but only one line each.

zer0
Posts: 2673
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Post 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.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Twisten
Posts: 204
Joined: 27 Apr 2008 10:30

Re: Minor scripting related wishes (a generic thread)

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

zer0
Posts: 2673
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Post 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" ;)
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Post Reply