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

Re: [Clip] Digest Number 1648 Auto Renaming Files

Expand Messages
  • Jefry
    ... Thanks, that does the job. I ve still got a few bugs to figure out with it that i ll get back to you on when i ve got time. I d say 98% at this time. LOVE
    Message 1 of 1 , Oct 17, 2005
      ntb-clips@yahoogroups.com wrote:

      >Hi don,
      >
      >
      Thanks, that does the job. I've still got a few bugs to figure out with
      it that i'll get back to you on when i've got time. I'd say 98% at this
      time. LOVE the Wizard!! Now_ i_ need to learn how to do this!
      Thanks again.

      >__________--
      >Sincerely,
      >Jefry
      >
      >
      >The most important thing to remember in Chemistry is, 'don't lick the spoon'.______________________________________________________________
      >________________________________________________________________________
      >
      >Message: 1
      > Date: Thu, 13 Oct 2005 10:11:15 -0500
      > From: Jody <kjv-av1611@...>
      >Subject: Re: Using the 'Find Dialog Box' within a CLIP
      >
      >Hi Lotta, bewarefr, Harvey...
      >
      >
      >
      >>>While creating or editing a CLIP, I routinely use the 'Find
      >>>Command' to locate text and discovered that once it completes
      >>>the search within the selected CLIP, will automatically switch
      >>>to the NEXT CLIP and begin searching there. It does this even
      >>>though the "Scope - All Documents" option in the 'Find Dialog
      >>>Box' is not checked.
      >>>
      >>>
      >>Hah! Wait until you've done a Replace on whole library by mistake
      >>and don't notice until it's too late. :-(
      >>
      >>
      >
      >Been there, done that! :( Switch Libraries and do not save if you
      >notice what you did. Usually the 13684 replacements made when you
      >know it should have only been a few gives it away.
      >
      >
      >
      >>>Is this normal operation within the CLIP environment?
      >>>
      >>>
      >
      >Yes, unless you select the text first. That is the key to only
      >doing the one Clip and then only within the selection. If no text
      >is selected, the entire Library will be searched in the manner
      >depending on your other options chosen.
      >
      >
      >Happy Clip'n!
      >Jody
      >
      >All Lists: http://www.fookes.us/maillist.htm
      >Convert your eMail programs... Aid4Mail: http://www.fookes/aid4mail
      >Freeware and Shareware; seamleesly integrates with NoteTab:
      >http://www.sojourner.us/software
      >See ya in the funnies!-) http://www.clean-funnies.com
      >
      >
      >
      >________________________________________________________________________
      >________________________________________________________________________
      >
      >Message: 2
      > Date: Thu, 13 Oct 2005 16:54:51 -0000
      > From: "abairheart" <abairheart@...>
      >Subject: Re: ProgIniLoad
      >
      >Jamal,
      >
      >My experience has been, that NotePro.ini will always have all setting
      >in it.
      >
      >When I need specific different settings, I create a new INI file with
      >a different name, so I can start NotPro with those settings instead,
      >without losing my main setup (in NotePro.ini).
      >
      >To create such a file, I simply load the ini file as a document, and
      >SAV AS a different name. THEN I load Notetab with that new INI file,
      >change the settings, and close notetab again.
      >
      >Result two (or more) different ini files, preset for special
      >configurations.
      >
      >Stuff that you migh have different are:
      >
      >Which default library loads on start up,
      >Toolbar may have different tools,
      >pop-up menu may have different menus,
      >Where to save documents,
      >etc.
      >
      >
      >Abair.
      >
      >
      >
      >
      >
      >________________________________________________________________________
      >________________________________________________________________________
      >
      >Message: 3
      > Date: Thu, 13 Oct 2005 14:38:50 -0500
      > From: Don Daugherty <daugherty@...>
      >Subject: Re: automatic naming of files
      >
      >hsavage wrote:
      >
      >
      >
      >>Jefry S wrote:
      >>
      >>
      >>>hsavage wrote:
      >>>
      >>>
      >>>Thanks, but i'm still having problems. I'm using this clip-
      >>>
      >>>H="Save As First Line"
      >>>;_Modified-Updated~Created
      >>>;_20051010_12:21:51p_hsavage@...
      >>>; edit next line to reflect your starting_folder' preference
      >>>^!Set %path%=^?{(T=D)Choose Path To Save Files=D:\My Documents\NoteTab\}
      >>>^!Set %line1%=^$GetLine(1)$
      >>>^!Save AS "^%path%^%line1%.txt"
      >>>
      >>>
      >>
      >>
      >>
      >>
      >I think there is some confusion regarding the H="Save As First Line".
      >
      >That is the clip header-line within a clip library document. If you
      >open any clip library as a text file, either from the File>Open menu
      >item, or by right clicking on the library name in the clipbook window
      >and choosing Open as document, you will see lines of this nature
      >starting each clip. For example, one of my libraries, when so-opened reads
      >
      > = V5 MultiLine NoSorting TabWidth=30
      >
      >H="Save AS"
      >^!SetDebug On
      >;Above line only for debugging purposes; delete it or prefix it with
      >semicolon for normal use.
      >^!Jump Text_Start
      >^!Jump Line_End
      >^!SelectTo 1:1
      >^!Set %FileName%="c:\My Documents\^$GetSelection$."
      >;Above provides nul file extension; use
      >;^!Set %FileName%="c:\My Documents\^$GetSelection$.txt"
      >;if .txt is desired.
      >^!Save AS "^%FileName%"
      >;If preferred, the ^!Set and ^!Save AS lines can be combined into one:
      >;^!Save AS "c:\My Documents\^$GetSelection$." or
      >;^!Save AS "c:\My Documents\^$GetSelection$.txt"
      >
      >H="_OpenOrFocusApp"
      >^!CmdShow Maximize
      >^!IfAppOpen "^%TBar%" ^!Clip "AlreadyInUse"
      >
      >One way to get the new clip into a library is to open that library in
      >this manner, and pasting the above text into an appropriate spot in that
      >document. "An appropriate spot" would be above an existing H="blah,
      >blah, " line. Be sure that each H="..." line has a blank line before
      >and after it, as illustrated above.)
      >
      >The more usual way of entering clips into an existing library, is to
      >simply make the library the active or Open one in the clip library,
      >right click over any clipname listed within that library, and choosing
      >Add New Clip... This will prompt you to supply a name for the new clip
      >("Save As 1st Line"?).
      >Once you have done that, a new main window will be opened and you can
      >start typing-in commands or pasting-in commands copied from email. In
      >that case your copying should EXCLUDE the H="Save ..." line in the email.
      >
      >
      >
      >________________________________________________________________________
      >________________________________________________________________________
      >
      >Message: 4
      > Date: Thu, 13 Oct 2005 15:31:17 -0500
      > From: hsavage <hsavage@...>
      >Subject: Re: automatic naming of files
      >
      >hsavage wrote:
      > > Jefry S wrote:
      > >> hsavage wrote:
      > >>>
      > >> Thanks, but i'm still having problems. I'm using this clip-
      > >
      > > Any clue as to how to prompt for input to choose location?
      > >
      > > Thanks again, this is fun!
      > >
      > > ------------------
      > > H="Save As First Line"
      > > ;_Modified-Updated~Created
      > > ;_20051011_5:15:18p_hsavage@...
      > > ^!ClearVariables
      > > ; edit next line to reflect your starting_folder' preference
      > > ^!Set %path%=^?{(T=D)Choose Path To Save Files=C:\+r2rweb\lists\}
      > > ;
      > > ^!SetListDelimiter ;
      > > ; these are the 9 forbidden characters I know about, \/:*?"<>|
      > > ^!SetArray %frbdn%="\;/;:;*;?;";<;>;|"
      > > ^!Set %idx%=0; %cnt%=^%frbdn0%
      > > ^!Set %name%="^$GetLine(1)$"
      > > :FRBDN
      > > ^!Inc %idx%
      > > ; replaces forbidden characters with dashes
      > > ^!Set %name%=^$StrReplace("^%frbdn^%idx%%";"-";"^%name%";0;0)$
      > > ^!If ^%idx% = ^%cnt% NEXT ELSE FRBDN
      > > ^!Set %name%=^$StrTrim("^%name%")$
      > > ;
      > > ^!KeyBoard F2 &50 #^%name%.#
      > > ;^!RenameDoc "^%name%"
      > > ^!Save AS "^%path%^%name%."
      > > -------------------------
      >
      >Jefry,
      >
      >The clip above was my second completed attempt, it is the one you may be
      >using now. I have a new, modified version I'm going to paste below.
      >It's my favorite so far. I like it well enough that I added an icon for
      >it in 2 of my Personal Toolbars.
      >
      >The clip runs, grabs line 1, scans it for forbidden characters replacing
      >them with dashes. You can edit that line to use a character other than
      >dashes if you wish.
      >
      >Edit, if you wish, the ^$StrReplace( line, replace the dash with an
      >ascii character of your choosing.
      >
      >This is different from previous clips in that it uses only ONE Wizard
      >which allows 3 inputs,
      >
      >input 1. an entry point to edit the proposed filename.
      >
      >input 2. select default save location or use the wizard to select a new
      >location.
      >
      >input 3. allow choice of whether to retain or delete source file.
      >Default is to retain, not delete, source.
      >
      >----------------------------
      >H="Save As First Line"
      >;_Modified-Updated~Created
      >;_20051013_2:07:17p_hsavage@...
      >^!ClearVariables
      >^!Set %sourcefile%="^$GetExpandedName(^##)$"
      >^!SetListDelimiter ;
      >;
      >; these are the 9 forbidden characters I know about, \/:*?"<>|
      >^!SetArray %frbdn%="\;/;:;*;?;";<;>;|"
      >^!Set %idx%=0; %cnt%=^%frbdn0%
      >^!Set %name%="^$GetLine(1)$"
      >:FRBDN
      >^!Inc %idx%
      >; replaces forbidden characters with dashes
      >^!Set %name%=^$StrReplace("^%frbdn^%idx%%";"-";"^%name%";0;0)$
      >^!If ^%idx% = ^%cnt% NEXT ELSE FRBDN
      >^!Set %name%=^$StrTrim("^%name%")$
      >; edit next line to reflect your starting_folder' preference
      >;
      >^!SetWizardLabel "Choose Destination - Edit FileName - Delete SourceFile"
      >;
      >; this is a very long line, you should check to make sure it is
      >straightened out
      >^!Set %name%=^?{New FileName to Accept or Edit=^%name%};
      >%path%=^?{(T=D)Choose Destination Path For File=C:\+r2rweb\lists\};
      >%delsource%=^?{Delete Source_File==Yes^=1|_No^=0}
      >;
      >^!Save AS "^%path%^%name%"
      >^!IfTrue ^%delsource% ^!DeleteFile ^%sourcefile%
      >---------------------------------------
      >
      >Long lines usually get wrapped in email and it's up to you to make a
      >single long line out of them again. I've separated the most likely to
      >be wrapped with blank lines.
      >
      >Try this clip, I think you'll like it better than the last.
      >
      >ºvº
      >05.10.13
      >hrs > hsavage@...
      >
      >
      >
      >
      >
      >________________________________________________________________________
      >________________________________________________________________________
      >
      >Message: 5
      > Date: Thu, 13 Oct 2005 23:14:42 -0000
      > From: "Mike" <jafpcu@...>
      >Subject: Re: ProgIniLoad
      >
      >--- In ntb-clips@yahoogroups.com, "Jamal Mazrui" <Jamal.Mazrui@f...>
      >wrote:
      >
      >
      >>Does anyone know of minimal requirements for a .ini file to be
      >>
      >>
      >loaded by
      >
      >
      >>the ProgIniLoad command?
      >>
      >>
      >
      >The minimum contents of any useful INI file are:
      >A "section", a "key", and a "KeyValue".
      >
      >A section is any name or numbers (spaces are allowed) surrounded by
      >square brackets.
      >A "key" is the identifier to the left of the equal-sign.
      >A "KeyValue" is anything to the right of the equal-sign. A lack of any
      >characters on the right-side of the equal-sign is still a valid
      >"KeyValue" (At least as Windows deals with it, I can't say if NoteTab
      >makes a distinction.)
      >
      >[My Section]
      >My Key=MyValue
      >
      >In practice, an INI file can be completely empty. (Again, as far as
      >Windows in general is concerned.) A call to read a value from an empty
      >INI will just say "can't find that section/key/value". (You are
      >responsible for how your code will deal with that eventuality.)
      >
      >
      >
      >
      >
      >
      >
      >________________________________________________________________________
      >________________________________________________________________________
      >
      >
      >Fookes Software: http://www.fookes.us, http://www.fookes.com
      >Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
      >
      >------------------------------------------------------------------------
      >Yahoo! Groups Links
      >
      >
      >
      >
      >------------------------------------------------------------------------
      >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.