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

File list wizardry

Expand Messages
  • Marcus
    Is it possible to have a wizard that lets you select 1) multiple files (and store them in a variable NTB can access) and/or 2) a directory name If yes, could
    Message 1 of 3 , Dec 3, 2000
    • 0 Attachment
      Is it possible to have a wizard that lets you select

      1) multiple files (and store them in a variable NTB can access)
      and/or
      2) a directory name

      If yes, could you point me to the commands I need to look at?
      If anybody has a sample clip or knows of one, that would be cool :-)

      Thanks,

      Marcus Friedlaender
    • Jody
      Hi Marcus, ... There are a whole mess of Clips in my DirStuff that works with directories and subs using a few different methods including 4.83 s
      Message 2 of 3 , Dec 3, 2000
      • 0 Attachment
        Hi Marcus,

        >Is it possible to have a wizard that lets you select
        >
        >1) multiple files (and store them in a variable NTB can access)
        >and/or 2) a directory name
        >
        >If yes, could you point me to the commands I need to look at?
        >If anybody has a sample clip or knows of one, that would be cool :-)

        There are a whole mess of Clips in my DirStuff that works with
        directories and subs using a few different methods including
        4.83's sub-directories addition. Go to my Libraries page from
        the link in my sigline to get it.

        In short, you are looking at these:

        FileCount/List/Size 4.83...
        ^!ClearVariables
        ; one long one follows
        ^!Set %Dir%=^?{(T=D)&Directory}; %Subs%=^?{Include &Sub-directories (v4.83 only)=_Yes^=+|No^=}; %Types%=^?{File &type(s) *.txt;*.htm*;*.dll;*.exe (all types shown)=*.*}; %Attr%=^?{&Attributes, A: Archive, H: Hidden, R: Read-only, S: System=_All^=|AHRS}

        See: Clip Language - Disk Files (GetFiles in Help Find)

        ---

        This one allows you to select files in an open dialog. The "T=O;S=M"
        is what allows you to do it. In the Help dialog under find type in
        T=O then click on "Clip Language - Clip Wizard and Fields" and you
        will see a number of the T= listed. Look in SampleCode also.

        <--- Copy below this line --->
        H=Select List...
        ; Last Updated 12-03-2000, Sojourner@..., jody
        ; makes a list & inserts in new doc from selected files
        ; long line till blank line
        ^!Set %File%=^?[(T=O;S=M;F="Text (*.txt;*.ini)|*.txt;*.ini|Hyper Text (*.*htm*;*.asp;*.css)|*.*htm*;*.asp;*.css|Pictures (*.gif;*.jpg;*.jpeg)|*.gif;*.jpg;*.jpeg|NoteTab (*.clb;*.otl;*.fvr)|*.clb;*.otl;*.fvr|Back up (*.*bac*;*.*bak*)|*.*bac*;*.*bak*|Dictionaries (*.udt;*.dic)|*.udt;*.dic|Binaries (*.exe;*.zip)|*.exe;*.zip")Browse to folder choose file(s)=C:\]

        ; ^!SetWizardTitle ~^$StrFill(" ";60)$http://www.notetab.net^$StrFill(" ";66)$~
        ; ^!Info ^%File%
        ^!Set %File%=^$StrReplace(";";"";"^%File%";0;0)$
        ^!Set %File%=^$StrReplace("""";"^%nl%";"^%File%";0;0)$
        ^!Toolbar New Document
        ^!InsertText ^%File%^p

        <--- Copy above this line, right --->
        <--- click over a Library, and --->
        <--- choose "Add from Clipboard" --->

        nite...

        Happy Clip'n!
        Jody

        http://www.notetab.net

        Subscribe, UnSubscribe, Options
        mailto:Ntb-Clips-Subscribe@...
        mailto:Ntb-Clips-UnSubscribe@...
        http://www.egroups.com/group/ntb-clips
      • Jody
        Hi Marcus, ... Perhaps you were looking for something like this too since you did not specify what folder. H=Get and Break Path... Breaks path
        Message 3 of 3 , Dec 3, 2000
        • 0 Attachment
          Hi Marcus,

          >Is it possible to have a wizard that lets you select
          >
          > ...2) a directory name

          Perhaps you were looking for something like this too since you did
          not specify what folder. <bg>

          H=Get and Break Path... Breaks path up into single folders
          ^!SetWizardTitle Breaks path up into single folders
          ^!Set %GetPath%=^?{(T=D)Get and break up path=^$GetDocumentPath$}
          ; Delete or ;comment next line if drive letter is wanted.
          ^!Set %GetPath%=^$StrDelete("^%GetPath%";1;3)$
          ^!Set %GetPath%=^$StrReplace("\";"^%nl%";"^%GetPath%";0;0)$
          ^!Info [L]^%GetPath%

          0r

          ^!Set %FullPath%=^?{(T=O)Get path}
          ^!Set %FullPath%=^%GetPath(^%FullPath%)$

          Or simply

          ^!Set %FullPath%=^?{(T=D)Get path}

          Or

          ^!Info ^?{(T=D)Get path=^$GetPath(^##)$}

          nite, again, really... ;)

          Happy Clip'n!
          Jody

          http://www.notetab.net

          Subscribe, UnSubscribe, Options
          mailto:Ntb-Clips-Subscribe@...
          mailto:Ntb-Clips-UnSubscribe@...
          http://www.egroups.com/group/ntb-clips
        Your message has been successfully submitted and would be delivered to recipients shortly.