Page 1 of 1

Muiltiple file name filters?

Posted: Sun May 08, 2011 11:56 am
by BarrySumpter

Code: Select all

put pList into tList
   filter tList without "."
   filter tList without ".."
   
   ##---------------------------------------------
   
   if the hilite of btn chkMOV and the hilite of btn chkMP4 then
      ## answer "chkMOV"
      Filter tList with "*.mov"                        -- this shortlist
      Filter tList with "*.mp4"                        -- but this just clears the list
   end if
##---------------------------------------------


If I filter witn one of the other its ok.
But if I filter with both the list is blank.

Any help would be greatly appreciated.

Re: Muiltiple file name filters?

Posted: Sun May 08, 2011 1:49 pm
by jmburnod
Hi,

Filter change the content of tList. You must keep it for the next filter
Something like that :

Code: Select all

if the hilite of btn chkMOV and the hilite of btn chkMP4 then
      ## answer "chkMOV"
      put tList into tbufMov --•• keep tList 
      Filter tbufMov with "*.mov" -- this shortlist
      put tList into tbufMp4
      Filter tbufMp4 with "*.mp4" -- but this just clears the list
      put tbufMov&return&tbufMp4  into tListfinal
 end if

Jean-Marc

Re: Muiltiple file name filters?

Posted: Sun May 08, 2011 2:08 pm
by BarrySumpter

Code: Select all


if the hilite of btn chkMOV and the hilite of btn chkMP4 then
      ## answer "chkMOV"
      put tList into tbufMov --•• keep tList
      Filter tbufMov with "*.mov" -- this shortlist
      put tList into tbufMp4
      Filter tbufMp4 with "*.mp4" -- but this just clears the list
      put tbufMov & return & tbufMp4  into tListfinal
end if

Of course!

Funny how that is so logical now that I can see the solution.

Thanks heaps for that.

The two Filter Withouts made me beliece I should be able to have two filter withs.

Re: Muiltiple file name filters?

Posted: Mon May 09, 2011 3:30 am
by BarrySumpter
I've just changed the code around in the Video Library example.

Adding MOV and MP4 filters.

Anyone know if there are more for QuickTime.
And also on winxp is there a difference between the video control when I have just QuickTime or QuickTime Pro installed?

I chandged it to recurse folder to a full drive c:\

But its giving me the FOLLOWING ERROR:
tHE hANDLER : fILTEREDfIELES HAS REACHED THE RECURSION LIMIT OF : 400000.
EXECUTION WILL BE TERMINATED TO PREVENT HANG.

Yeah ok fair enough.

----

Also, since it processes for so long I wanted to show an hours or progress wheel.
Anyone know how to do this?

Otherwise, chasing arrows.gif freezes and the Indeterminate Prog Bars freeze during the List Files with Paths.
Anyone know how to make these continue spinnig?