Loading ...
Sorry, an error occurred while loading the content.

4692Re: [Clip] Re: Clip to Generate File Listings?

Expand Messages
  • Bryan Guignard
    Sep 17, 2000
      Hi all,

      A couple of years ago I had the horrible task of getting the file names of over
      30,000 graphics files spanning 3 CDs. I sure wish I had had something like this
      at the time instead of just the DOS command line and Word to edit out a ton of
      useless info.

      Anyway, this clip is real handy, so I decided to touch it up a bit and add some
      formatting so it will better suit my needs. I'm posting it in case anyone needs
      some fancier output.

      On another note, is anyone interested in a clip library for doing Core
      Javascript and PDF Javascript objects, properties and methods? I have one that's
      just about ready for public consumption.

      Bryan Guignard
      Adobe Certified Expert


      <--- Copy below this line --->
      ^!Set %Folder%=^?{(T=D)Full dir path, end in backslash}; %Type%=^?{File
      &Types=*.*|_*.*htm*;*.asp;*.css;*.js;*.xml|*.gif;*.jpg;*.jpeg;*.png;*.bmp};
      %Sort%=^?{&Sort order=Date|_Name|Size|Type|UnSorted}; %Rev%=^?{&Reverse sort
      order=Yes^=Rev|_No^=}

      ^!SetListDelimiter ^p
      ^!SetArray %FileList%=^$GetFiles(^%Folder%;^%Type%;;^%Rev%^%Sort%)$
      ^!Set %Count%=^%FileList0%
      ^!Set %Index%=0

      ^!Set %Save%=^$GetPath(^$GetFileName(^%FileList1%)$)$

      ^!Set %Save%=^$StrReplace(".";;"^%Save%";0;0)$
      ^!Set %Save%=^$StrReplace("\";;"^%Save%";0;0)$

      :Loop
      ^!SetScreenUpdate Off
      ^!Inc %Index%
      ^!If ^%Index% > ^%Count% Skip_2
      ^!Insert Directory: ^$GetPath(^%FileList^%Index%%)$^pFile name:
      ^$GetFileName(^%FileList^%Index%%)$^pFile size:
      ^$GetFileSize(^%FileList^%Index%%)$ bytes^pFile date:
      ^$GetFileDate(^%FileList^%Index%%)$^p^p
      ^!Goto Loop
      <--- Copy above this line, right --->
      <--- click over a Library, and --->
      <--- choose "Add from Clipboard" --->
    • Show all 26 messages in this topic