Minor scripting related wishes (a generic thread)

Features wanted...

Re: Minor scripting related wishes (a generic thread)

Postby admin » 26 Sep 2011 09:30

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.
admin
Site Admin
 
Posts: 32825
Joined: 22 May 2004 15:48
Location: Cologne

Re: Minor scripting related wishes (a generic thread)

Postby zer0 » 26 Sep 2011 10:30

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 Professional/Enterprise 64-bit SP1
Always using the latest stable build
zer0
 
Posts: 2471
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Postby nas8e9 » 26 Sep 2011 10:50

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.
nas8e9
 
Posts: 1945
Joined: 21 Jun 2008 13:50

Re: Minor scripting related wishes (a generic thread)

Postby zer0 » 26 Sep 2011 11:02

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 612 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 Professional/Enterprise 64-bit SP1
Always using the latest stable build
zer0
 
Posts: 2471
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Postby nas8e9 » 26 Sep 2011 11:24

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.
nas8e9
 
Posts: 1945
Joined: 21 Jun 2008 13:50

Re: Minor scripting related wishes (a generic thread)

Postby admin » 26 Sep 2011 11:54

Yes, I could do it, but I said "Sorry, but providing extra support for this is not possible right now." meaning: no time.
admin
Site Admin
 
Posts: 32825
Joined: 22 May 2004 15:48
Location: Cologne

Re: Minor scripting related wishes (a generic thread)

Postby TheQwerty » 27 Sep 2011 20:54

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: 3119
Joined: 03 Aug 2007 21:30

Re: Minor scripting related wishes (a generic thread)

Postby TheQwerty » 24 Oct 2011 15:27

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.
TheQwerty
 
Posts: 3119
Joined: 03 Aug 2007 21:30

Re: Minor scripting related wishes (a generic thread)

Postby zer0 » 24 Oct 2011 16:22

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 Professional/Enterprise 64-bit SP1
Always using the latest stable build
zer0
 
Posts: 2471
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Postby admin » 27 Oct 2011 09:19

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.
admin
Site Admin
 
Posts: 32825
Joined: 22 May 2004 15:48
Location: Cologne

Re: Minor scripting related wishes (a generic thread)

Postby TheQwerty » 20 Feb 2012 15:35

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:
TheQwerty
 
Posts: 3119
Joined: 03 Aug 2007 21:30

Re: Minor scripting related wishes (a generic thread)

Postby admin » 05 Mar 2012 17:33

I could improve it a bit: You now can state a topic line and a subtopic line, but only one line each.
admin
Site Admin
 
Posts: 32825
Joined: 22 May 2004 15:48
Location: Cologne

Re: Minor scripting related wishes (a generic thread)

Postby zer0 » 07 May 2012 16:19

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 Professional/Enterprise 64-bit SP1
Always using the latest stable build
zer0
 
Posts: 2471
Joined: 19 Jan 2009 20:11

Re: Minor scripting related wishes (a generic thread)

Postby Twisten » 09 May 2012 05:55

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.
Twisten
 
Posts: 187
Joined: 27 Apr 2008 09:30

Re: Minor scripting related wishes (a generic thread)

Postby zer0 » 09 May 2012 14:00

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 Professional/Enterprise 64-bit SP1
Always using the latest stable build
zer0
 
Posts: 2471
Joined: 19 Jan 2009 20:11

PreviousNext

Return to Wishes



Who is online

Users browsing this forum: No registered users and 0 guests

cron