visual filters

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
graham
Posts: 457
Joined: 24 Aug 2007 22:08
Location: Isle of Man

visual filters

Post by graham »

like the new vs for scripts but

why do you need ; as a separater for multiples? could a space be allowed as well or instead?

graham
Posts: 457
Joined: 24 Aug 2007 22:08
Location: Isle of Man

Post by graham »

not a direct follow up but related_

just tried using this and hit a problem

used script below and expected the filter at the end to reset but this is what I got!

C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland\book|C:\Documents and Settings\home\My Documents\temp

It seems logical to me that you reset the filter after completing the dependent action (backup in my case) so the result was unexpected. I can code round this but to me it seems wrong.


// script 1
script to bu only .png or .pdf files in sunderland book

::filter *.png; *.pdf
::goto C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland\book\
::focus l
::selpos a
::backupto C:\Documents and Settings\home\My Documents\temp
::filter
// end script 1

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: visual filters

Post by jacky »

graham wrote:like the new vs for scripts but

why do you need ; as a separater for multiples? could a space be allowed as well or instead?
I would think not, because "::filter" is just an alias for "::goto |" basically, but the VF syntax remains the same, obviously.
BTW, set a vf to "*.gif *.jpg" does work, but would catch items such as "foo.gif converted.jpg" ;)

Edit: Just saw your new post, tried it here, script works as expected.
Proud XYplorer Fanatic

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Post by fishgod »

graham wrote:C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland\book|C:\Documents and Settings\home\My Documents\temp

It seems logical to me that you reset the filter after completing the dependent action (backup in my case) so the result was unexpected. I can code round this but to me it seems wrong.
I have this "bug" also in one of mine scripts, but the solution is very simple. You have to write "::filter" followed by a " " (space) and then either a filter-mask (to filter) or nothing (to remove the any filter). If you skip this little space at the end of the filter-command it won't work.
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

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

Post by admin »

fishgod wrote:
graham wrote:C:\Documents and Settings\home\My Documents\AUTOCAD 2002\Sunderland\book|C:\Documents and Settings\home\My Documents\temp

It seems logical to me that you reset the filter after completing the dependent action (backup in my case) so the result was unexpected. I can code round this but to me it seems wrong.
I have this "bug" also in one of mine scripts, but the solution is very simple. You have to write "::filter" followed by a " " (space) and then either a filter-mask (to filter) or nothing (to remove the any filter). If you skip this little space at the end of the filter-command it won't work.
Hm, I cannot get the bug, and I don't understand the solution. What you des^cribe does not make a difference.

fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Post by fishgod »

maybe you remember the following script:

Code: Select all

::filter *.rar;*.zip::#250::#1404::filter 
(#1404 was an "Open With"-UDC to extract the files with WinRar)
If I skip the space after the last filter, my folder is filtered by 1404. Using the space at the end, it works fine.
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

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

Post by admin »

fishgod wrote:maybe you remember the following script:

Code: Select all

::filter *.rar;*.zip::#250::#1404::filter 
(#1404 was an "Open With"-UDC to extract the files with WinRar)
If I skip the space after the last filter, my folder is filtered by 1404. Using the space at the end, it works fine.
Oh yes! :oops: Sorry, bug confirmed!

Post Reply