Page 1 of 1
visual filters
Posted: 06 Feb 2008 16:57
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?
Posted: 06 Feb 2008 17:13
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
Re: visual filters
Posted: 06 Feb 2008 17:19
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.
Posted: 06 Feb 2008 18:03
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.
Posted: 06 Feb 2008 18:18
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.
Posted: 06 Feb 2008 18:26
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.
Posted: 06 Feb 2008 18:41
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!

Sorry, bug confirmed!