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?
visual filters
-
graham
- Posts: 457
- Joined: 24 Aug 2007 22:08
- Location: Isle of Man
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
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
I would think not, because "::filter" is just an alias for "::goto |" basically, but the VF syntax remains the same, obviously.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?
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
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.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.
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted
totally XYscripting-addicted
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Hm, I cannot get the bug, and I don't understand the solution. What you des^cribe does not make a difference.fishgod wrote: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.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.
FAQ | XY News RSS | XY X
-
fishgod
- Posts: 231
- Joined: 03 Feb 2008 00:40
- Location: Sankt Augustin (near Bonn), Germany
maybe you remember the following script:
(#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.
Code: Select all
::filter *.rar;*.zip::#250::#1404::filter 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
totally XYscripting-addicted
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Oh yes!fishgod wrote:maybe you remember the following script:(#1404 was an "Open With"-UDC to extract the files with WinRar)Code: Select all
::filter *.rar;*.zip::#250::#1404::filter
If I skip the space after the last filter, my folder is filtered by 1404. Using the space at the end, it works fine.
FAQ | XY News RSS | XY X
XYplorer Beta Club