Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ntb-clips · The NoteTab Clips List

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 11337 - 11366 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#11337 From: "michaeljbrock" <michael@...>
Date: Thu Dec 4, 2003 12:10 am
Subject: Re: [Clip] Syntax question (Using Examdiff)
michaeljbrock
Send Email Send Email
 
I gave up on my "fancy" approach and I have adopted yours. Time will
tell if I can remember to move the files next to each other before I
compare them.

Michael

______[Copy below this line]_______
H="Examdiff"
;Larry Thomas <larryt@c...>
;04/13/2003, 02:04:09 PM
^!Set %Comp1%=^**
^!Keyboard Ctrl+Tab
^!Set %Comp2%=^**
^!CmdShow Maximize
^!C:\Program Files\Examdiff\EXAMDIFF.EXE "^%Comp1%" "^%Comp2%"
_____[Copy above this line]______
| right click over the clipbook |
| and choose "Add from Clipboard" |
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

#11338 From: Larry Thomas <larryt@...>
Date: Thu Dec 4, 2003 1:04 am
Subject: Re: [Clip] Syntax question (Using Examdiff)
back3home2003
Send Email Send Email
 
Hi Michael,

At 12:10 AM 12/4/03 -0000, you wrote:
>I gave up on my "fancy" approach and I have adopted yours. Time will
>tell if I can remember to move the files next to each other before I
>compare them.
>
>Michael

Here is a modification of my clip that you might like better.  It takes
advantage of the fact that NoteTab maintains a history of the last fourteen
files opened and you can reopen these files with the ^!Keyborad command.
All you have to do before you use this clip is to have the two files you
want to compare open and then close both of them to place them on the
reopen history list.  Then run the clip and it will reopen and compare the
last two files you closed.

______[Copy below this line]_______
H="Examdiff - Reload"
;lrt@... eżê
;12/03/2003, 06:58:26 PM
^!Keyboard Alt+F R 1
^!Set %Comp1%=^**
^!Keyboard Alt+F R 1
^!Set %Comp2%=^**
^!CmdShow Maximize
^!C:\Program Files\Examdiff\EXAMDIFF.EXE "^%Comp1%" "^%Comp2%" /t
  _____[Copy above this line]______
|  right click over the clipbook  |
| and choose "Add from Clipboard" |
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Regards,

Larry
lrt@... eżê

#11339 From: Jody <kjv-av1611@...>
Date: Thu Dec 4, 2003 1:20 am
Subject: RE: [Clip] Database Spit Clip
notetabber
Send Email Send Email
 
Hi Chris,

I was doing one of those quickie Clips to save a selection as a
file, actually I was using ^!TextToFile and I thought about your
"Spit Clip." <g> If you are not going to be uploading from
NoteTab, then you don't want to save the files it makes inside
the editor so to speak because of resources due to how huge your
file is; it's huge to me anyway. The following if used or not
will introduce you to some more commands and techniques that you
will use later if you continue on with Clip'n.

^!TextToFile will create a new file if it does not exist and if
it does, the existing file will get overwritten without warning.

The syntax is ^!TextToFile "Full\Path\FileName.ext" Text to save to file

So, in the section of the script below the changes would be made.
I made the changes below what's next, the current as far as what
was posted to the list.

^!SetClipboard ^$GetTextTop$
^!Toolbar Paste New
;  Saves the copied text in a file with incremental numbering
;  using the same filename as the original (See ^!Set Clips)
^!Save As "^%PathName%^%n%^%ext%"
;  Switches back to the original file
^!SetDocIndex ^%DocIndex%
;  Increments n by 1 (one)
^!Inc %n%

-----------------------------------------------

; extra blank lines below put in to see it better

^!SetClipboard ^$GetTextTop$

; was: ^!Toolbar Paste New
; was: ^!Save As "^%PathName%^%n%^%ext%"

; Creates a new file
^!TextToFile "^%PathName%^%n%^%ext%" ^$GetClipboard$

; The next two lines are removed completely
; was:  Switches back to the original file
; was: ^!SetDocIndex ^%DocIndex%

;  Increments n by 1 (one)
^!Inc %n%

By using that method you do not double the size of MB open in
NoteTab. It will make the Clip run faster because NoteTab is not
overloading memory.

If it is going to be used often, you will want to put in a safety
measure so that you do not overwrite files that may exist when doing
the TextToFile.

In Help read up on ^!IfFileExist, but the short of it is...

^!IfFileExist "^%PathName%^%n%^%ext%" Warning else Next

You can get fancy with it and increment the %n% in a loop until
it does not find a file by the name being checked, but I would
keep it simple and less confusing in go to Windows Explorer by
just going to the :Warning label. You would have something like:

:Warning
^!Prompt
The file "^%PathName%^%n%^%ext%" already exists^%nl%
in the folder you are trying to save to. You need^%nl%
to go to go to Windows Explorer (or a file manager^%nl%
used) to see what is going on. It's most likely^%nl%
that you already ran this Clip using the folder^%nl%
just mentioned.^%nl%

You could use a ^!Continue box and ask if you wanted to
go ahead and overwrite. If answered Yes, then you would
need to set a flag so you would skip the ^!IfFileExist
line. You would also need to ^!Dec%n% just once and go
back to the text that was aborted out of (actually, not.
It would still be on the Clipboard, but you might need
to adjust the cursor position. I'm just typing away
doing this in my head so it may not all be right on the
money. <g> So, something like:

^!Continue blah, blah, blah... Continue?
^!Set %OverWrite%=1
; DEc given that you Inc before you IfFileExist ... Warning
^!Dec %n%
^!TextToFile "^%PathName%^%n%^%ext%" ^$GetClipboard$

You then go to a :label back up in your script to restart it;
probably where you loop to if no file already existed.

^!Goto SomeLabel

When you get to the ^!IfFileExist line in the Clip you add the
following with the flag you set:

^!IfTrue ^%OverWrite% Skip

The line you skip is the ^!IfFileExist check. The line of code
following it would be the ^!TextToFile command. It will be
skipped every time you loop through it (or until you set
%OverWrite%=0 if you ever find a reason to do that. <bg>

OK, then, go for it. BTW, there is no extra charge for those
tidbits. 8D I normally write Clips for $50.00 an hour if anybody
is ever interested interested. ;) Jody @ NoteTab . net
(compressed) :) I was up all night last night build a computer to
sell on eBay or locally, so this is about it for me.

Good NoteNite!-) ...and...

Happy Clip'n!
Jody

http://www.notetab.net/html/cd-info.htm
http://www.notetab.net/html/maillist.htm

Subscribe, UnSubscribe, Options
mailto:ntb-Clips-Subscribe@yahoogroups.com
mailto:ntb-Clips-UnSubscribe@yahoogroups.com
http://groups.yahoo.com/group/ntb-clips

#11340 From: "Dick Gascoigne" <dick.gascoigne@...>
Date: Wed Dec 3, 2003 3:37 am
Subject: Re: [Clip] Syntax question
bobbit_singa...
Send Email Send Email
 
Larry -
Running NTP 4.95.  Your wizard width suggestion only partially works for me

Using SetWizardTitle to a long string does not change the width of the
selection box, but it does change the width of the Info box

I also tried with SetWizardLablel and setting the prompt string.  None had
any effect on the Wizard.

Am I missing something?

Dick Gascoigne
Singapore

#11341 From: "Dick Gascoigne" <dick.gascoigne@...>
Date: Wed Dec 3, 2003 3:45 am
Subject: Re: [Clip] Database Spit Clip
bobbit_singa...
Send Email Send Email
 
I have a similar clip, but it divides a large file into a specified number of
segments, rather than a variable number segments of fixed size.

It is used to break up a large spool file containing many documents (e.g.
Invoices) into N files, each containing about the same number of documents. 
That is so each segment can be printed to a different printer, concurrently. 
(Load balancing.)

If anyone can use it, let me know.

Dick Gascoigne
Singapore




[Non-text portions of this message have been removed]

#11342 From: "Dick Gascoigne" <dick.gascoigne@...>
Date: Thu Dec 4, 2003 4:28 am
Subject: Re: [Clip] Syntax question (I Goofed Again!)
bobbit_singa...
Send Email Send Email
 
Larry -  If it wasn't for you message, I wouldn't even
have known how to change the Info box width <bg>

And, thanks to Jody, Michael and I now know that one can resize the Wizard
box by grabbing the right margin and dragging, or by double-clicking the
title bar to make it full-screen.

Dick Gascoigne
Singapore

----- Original Message -----
From: "Larry Thomas" <larryt@...>
To: <ntb-clips@yahoogroups.com>
Sent: Thursday, 04 December, 2003 12:22 AM
Subject: Re: [Clip] Syntax question (I Goofed Again!)



Hi Jody and Michael,

At 02:39 AM 12/3/03 -0600, you wrote:
>Hi Larry & Michael,
>
>>You can pad a title with spaces but it is my experience that you
>>must have some printable text on the right end of the title.
>>
>>Example:
>>
>>MY LONG TITLE                                            -->>
>
>:Display
>^!SetWizardTitle ~^$StrFill(" ";66)$ clean-funnies.com ^$StrFill(" ";66)$~
>^!Info [L]^%Folder%^%Ext%^p^pLine Number: ^%Line%^p^p^%LineList%

I goofed again and I apologize.  I thought that I had checked this all out
before but obviously, I did not.  I now see that my advice only applies to
the information boxes created by the ^!Info command.  The wizards as far as
I can tell cannot be increased or decreased in width by changing the title.
  The title is just truncated to fit the bar and the right side is cut off.
Again I am sorry about my bad advice.

Regards,

Larry
lrt@... eżê





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#11343 From: "michaeljbrock" <michael@...>
Date: Thu Dec 4, 2003 5:19 pm
Subject: Re: [Clip] Syntax question (Using Examdiff)
michaeljbrock
Send Email Send Email
 
That's clever!  Unfortunately, it would mean that I would lose my
bookmarks in the files.  Probably not a big deal most of the time
but I'm sure the first time I accidently lost a bunch of bookmarks I
would become "not very happy"!

Michael

--- In ntb-clips@yahoogroups.com, Larry Thomas <larryt@c...> wrote:
>
> Hi Michael,
>
> At 12:10 AM 12/4/03 -0000, you wrote:
> >I gave up on my "fancy" approach and I have adopted yours. Time
will
> >tell if I can remember to move the files next to each other
before I
> >compare them.
> >
> >Michael
>
> Here is a modification of my clip that you might like better.  It
takes
> advantage of the fact that NoteTab maintains a history of the last
fourteen
> files opened and you can reopen these files with the ^!Keyborad
command.
> All you have to do before you use this clip is to have the two
files you
> want to compare open and then close both of them to place them on
the
> reopen history list.  Then run the clip and it will reopen and
compare the
> last two files you closed.
>
> ______[Copy below this line]_______
> H="Examdiff - Reload"
> ;lrt@n... eżê
> ;12/03/2003, 06:58:26 PM
> ^!Keyboard Alt+F R 1
> ^!Set %Comp1%=^**
> ^!Keyboard Alt+F R 1
> ^!Set %Comp2%=^**
> ^!CmdShow Maximize
> ^!C:\Program Files\Examdiff\EXAMDIFF.EXE "^%Comp1%" "^%Comp2%" /t
>  _____[Copy above this line]______
> |  right click over the clipbook  |
> | and choose "Add from Clipboard" |
>  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
>
> Regards,
>
> Larry
> lrt@n... eżê

#11344 From: Larry Thomas <larryt@...>
Date: Thu Dec 4, 2003 8:39 pm
Subject: Re: [Clip] Syntax question (Using Examdiff)
back3home2003
Send Email Send Email
 
Hi Michael,

At 05:19 PM 12/4/03 -0000, you wrote:
>That's clever!  Unfortunately, it would mean that I would lose my
>bookmarks in the files.  Probably not a big deal most of the time
>but I'm sure the first time I accidently lost a bunch of bookmarks I
>would become "not very happy"!
>
>Michael

I am sorry that it did not work for you.  Well don't ever accuse me of
giving up although I think that this will be my last work on this.  I wrote
this new improved version and I am keeping it for myself to use, I like it
so much.  This clip captures the currently focused document name and then
uses ^!StatusShow to display a message on the screen without blocking you
from changing document tabs while it is running.  Then it goes into a loop
and waits for you to switch focus to the second document to be compared and
when you press the Ctrl key, it captures the file name for the second
document and sends the names of both documents to Examdiff for comparison.
I have tested this one as well as the one before and this one does NOT
delete bookmarks.  It allows you to select documents in any order without
arranging them side by side or in any special order.  Just select the first
document to compare and run the clip and then select the second document to
compare and press the Ctrl key and it will do it.  If you fail to select
the second document, you will receive a message telling you need to make a
second selection and then looping you back to the status message.  If you
want to cancel the clip when it is showing the status message, first press
the Alt key and hold it down and press the Ctrl key which will cancel the
clip.  Enjoy.

______[Copy below this line]_______
H="Examdiff - Second Doc Selector"
;lrt@... eżê
;12/04/2003, 02:09:41 PM
^!Set %Comp1%=^**
^!StatusShow Select the second file and press the control key.
^!IfFalse ^$IsCtrlKeyDown$ Skip_-1
^!IfSame "^%comp1%" "^**" Next ELSE Skip_3
^!StatusClose
^!Info [L] You need to select a second^Pdocument for comparison.
^!Goto Skip_-5
^!Set %Comp2%=^**
^!CmdShow Maximize
^!C:\Program Files\Examdiff\EXAMDIFF.EXE "^%Comp1%" "^%Comp2%" /t
  _____[Copy above this line]______
|  right click over the clipbook  |
| and choose "Add from Clipboard" |
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ



Regards,

Larry
lrt@... eżê

#11345 From: "Alec Burgess" <burale@...>
Date: Fri Dec 5, 2003 1:09 am
Subject: Re: [Clip] Syntax question (Using Examdiff)
alecb3ca
Send Email Send Email
 
Laary -

> It allows you to select documents in any order without
> arranging them side by side or in any special order.  Just select the
> first document to compare and run the clip and then select the second
> document to compare and press the Ctrl key and it will do it.

*very* slick - though I prefer CompareIt to the free version of ExamDiff. I
haven't looked at the Pro.

Btw: CompareIt http://www.grigsoft.com/wc3history.htm just came out with ver
3.3. Since ver 3.1 or 3.2 it has  included syntax highlighting so now with a
file of Html or Perl format I can hit my clip button based on your clip and
see the files compared with highlighting or just compare a "real" file to an
empty buffer to see a file highlighted with the syntax appropriate to its
type.


Regards ... Alec
--

---- Original Message ----
From: "Larry Thomas" <larryt@...>
To: <ntb-clips@yahoogroups.com>
Sent: Thursday, December 04, 2003 15:39
Subject: [gla: Re: [Clip] Syntax question (Using Examdiff)

>
> ______[Copy below this line]_______
> H="Examdiff - Second Doc Selector"
> ;lrt@... eżê
> ;12/04/2003, 02:09:41 PM
> ^!Set %Comp1%=^**
> ^!StatusShow Select the second file and press the control key.
> ^!IfFalse ^$IsCtrlKeyDown$ Skip_-1
> ^!IfSame "^%comp1%" "^**" Next ELSE Skip_3
> ^!StatusClose
> ^!Info [L] You need to select a second^Pdocument for comparison.
> ^!Goto Skip_-5
> ^!Set %Comp2%=^**
> ^!CmdShow Maximize
> ^!C:\Program Files\Examdiff\EXAMDIFF.EXE "^%Comp1%" "^%Comp2%" /t
>  _____[Copy above this line]______
>>  right click over the clipbook  |
>> and choose "Add from Clipboard" |
>  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

#11346 From: "michaeljbrock" <michael@...>
Date: Fri Dec 5, 2003 2:56 pm
Subject: Re: [Clip] Syntax question (Using Examdiff)
michaeljbrock
Send Email Send Email
 
Wow! I'm happy now. That is a clip which reminds me why I have been
using NoteTab for years while my partners use the editors
with "fancy" features (where's 5.0? <g>).

Works like a charm.  Couldn't have asked for something that suited
my needs any better.

Thanks again. I very much appreciate the effort.

Michael

--- In ntb-clips@yahoogroups.com, Larry Thomas <larryt@c...> wrote:
>
> Hi Michael,
>
> At 05:19 PM 12/4/03 -0000, you wrote:
> >That's clever!  Unfortunately, it would mean that I would lose my
> >bookmarks in the files.  Probably not a big deal most of the time
> >but I'm sure the first time I accidently lost a bunch of
bookmarks I
> >would become "not very happy"!
> >
> >Michael
>
>
> ______[Copy below this line]_______
> H="Examdiff - Second Doc Selector"
> ;lrt@n... eżê
> ;12/04/2003, 02:09:41 PM
> ^!Set %Comp1%=^**
> ^!StatusShow Select the second file and press the control key.
> ^!IfFalse ^$IsCtrlKeyDown$ Skip_-1
> ^!IfSame "^%comp1%" "^**" Next ELSE Skip_3
> ^!StatusClose
> ^!Info [L] You need to select a second^Pdocument for comparison.
> ^!Goto Skip_-5
> ^!Set %Comp2%=^**
> ^!CmdShow Maximize
> ^!C:\Program Files\Examdiff\EXAMDIFF.EXE "^%Comp1%" "^%Comp2%" /t
>  _____[Copy above this line]______
> |  right click over the clipbook  |
> | and choose "Add from Clipboard" |
>  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
>
>
>
> Regards,
>
> Larry
> lrt@n... eżê

#11347 From: Larry Thomas <larryt@...>
Date: Fri Dec 5, 2003 3:29 pm
Subject: Re: [Clip] Syntax question (Using Examdiff)
back3home2003
Send Email Send Email
 
At 02:56 PM 12/5/03 -0000, you wrote:
>Wow! I'm happy now. That is a clip which reminds me why I have been
>using NoteTab for years while my partners use the editors
>with "fancy" features (where's 5.0? <g>).
>
>Works like a charm.  Couldn't have asked for something that suited
>my needs any better.

You are welcome.  I am using this one myself so I get the advantage of it
too.  This is one of the many reasons that I like NoteTab so much.  Eric
provided so very very many commands and functions that you can almost drive
yourself crazy trying to decide which is the best way to do something.  And
it only took me ten lines of code to do compared to what we were trying to
do before I went this route.  !-)

Regards,

Larry
lrt@... eżê

#11348 From: "Scott McDonald" <claremontacademy@...>
Date: Sat Dec 6, 2003 7:56 pm
Subject: Clip to "chunk" one large text file to multiple files
scooter_mcd2004
Send Email Send Email
 
I'm a long-time NoteTab Pro user but a clip neophyte. So excuse me
if I
explain this request in non-programmer terms.

I'm looking for a clip that will process a large text file, chunking
the file according to rules and writing these chunks to new files. I
can add structure to this text file with unique text strings, so
that the clip would look for an opening string, go into "select"
mode, look for the closing string, and then write the selected text
to a generic filename that increments by one. Any script that's a
close variation on this theme would be helpful in orienting me.

I've been told to use Perl to do this kind of operation, but if
NoteTab Pro can do this I'd just as soon stay with something
familiar.

Thanks in advance,

Scott

#11349 From: Jody <kjv-av1611@...>
Date: Sat Dec 6, 2003 9:08 pm
Subject: Re: [Clip] Clip to "chunk" one large text file to multiple files
notetabber
Send Email Send Email
 
Hi Scott,

>I'm looking for a clip that will process a large text file,
>chunking the file according to rules and writing these chunks to
>new files. I can add structure to this text file with unique text
>strings, so that the clip would look for an opening string, go
>into "select" mode, look for the closing string, and then write
>the selected text to a generic filename that increments by one.
>Any script that's a close variation on this theme would be
>helpful in orienting me.

Read the recent thread at: http://groups.yahoo.com/group/ntb-clips/messages
posted by me:

RE: [Clip] Database Spit Clip
02 Dec 2003
First line of a post: Splits files at given line, that has a finished
script, but there is another prior that uses Save As instead of TextToFile.

Then, edit so that you use what you are requesting...

:Loop
^!Find "<tag>" S
^!IfError End
^!Jump Select_End
^!Set %Start%=^$GetRow$:^$GetCol$
^!Find "</tag>" S
^!Jump Select_Start
^!SelectTo ^%Start%
; Enter the ^!SetClipboard ^!Toolbar Paste New,
; ^!Save As, ^!SetDocIndex etc. or ^!TextToFile data here
^!Inc %n%
^!Jump +1
^!Goto Loop

Note: if there is a label already called Loop, you'll need
to name this or the other something else. I like using Loop1,
Loop2, etc. myself, but sometimes enter a descriptive name
like :ReStart, :EndLineLoop, :Convert2HTMLLoop, and so on...

Happy Clip'n!
Jody

www.clean-funnies.com, http://www.fookes.us/maillist.htm

Subscribe: mailto:ntb-Clips-Subscribe@yahoogroups.com
UnSubscribe: mailto:ntb-Clips-UnSubscribe@yahoogroups.com
Options: http://groups.yahoo.com/group/ntb-clips

#11350 From: "Roy Herring" <roynancy@...>
Date: Sun Dec 7, 2003 5:56 pm
Subject: Keep from unselecting lines
roynancy@...
Send Email Send Email
 
I would like to process a file and insert text into all lines that were
selected.
How do I keep from unselecting lines as I process the file?
My attemt is below.

Thanks,
Roy

;Insert string
^!Set %String%=^?{Enter string to insert=}
^!Set %Col%=^?{Enter col (0-n)=}

:PointToRcdOne
^!Jump 1
^!GoTo ReadLine
:BumpLine
^!Jump +1
:ReadLine
^!If ^$GetRow$ > ^$GetTextLineCount$ EOF
;________________________________
^!If ^$GetSelection$ = " " BumpLine
^!MoveCursor +^%Col%
^%String%
;________________________________
^!GoTo BumpLine
:EOF
:End


[Non-text portions of this message have been removed]

#11351 From: Larry Thomas <larryt@...>
Date: Sun Dec 7, 2003 6:36 pm
Subject: Re: [Clip] Keep from unselecting lines
back3home2003
Send Email Send Email
 
Hi Roy,

At 11:56 AM 12/7/03 -0600, you wrote:
>I would like to process a file and insert text into all lines that were
selected.
>How do I keep from unselecting lines as I process the file?
>My attemt is below.
>
>Thanks,
>Roy
>
>;Insert string
>^!Set %String%=^?{Enter string to insert=}
>^!Set %Col%=^?{Enter col (0-n)=}
>
>:PointToRcdOne
>^!Jump 1
>^!GoTo ReadLine
>:BumpLine
>^!Jump +1
>:ReadLine
>^!If ^$GetRow$ > ^$GetTextLineCount$ EOF
>;________________________________
>^!If ^$GetSelection$ = " " BumpLine
>^!MoveCursor +^%Col%
>^%String%
>;________________________________
>^!GoTo BumpLine
>:EOF
>:End

I am assuming that the selection was made before the clip is run since
there is no ^!Find or ^!Select commands or other commands for selecting
text in this clip.  Unless this is just part of your clip?

If you are entering text into a doc that already has a selection, you need
to say what you want to do with the text.  Do you want to insert it in
front of the selection or after the selection?  Do you want it on the same
line or insert it before or after the selected line?

Do you want your text to replace the selected text or do you want it
inserted as above with the original selection still selected?

This line in a clip all by itself will replace text with the string you
enter and select your entry.

^!InsertSelect ^?{Enter string to insert=}

It gets more complicated if you want to keep the original text rather than
replace it.

^!Jump Select_Start
^!InsertSelect ^?{Enter string to insert=}^P

Will move the cursor to the beginning of the selected line and unselect it
and insert the text on the line forcing the line down and then select the
text you entered.  The original selection will be unselected and pushed
down one line by your text which will be the new selection.

^!Jump Select_Start
^!InsertText ^?{Enter string to insert=}^P
^!Select EOL

Will unselect the line and insert your text plus a <cr/lf> pushing the
original line down.  The cursor will be at the beginning or the line that
was orginally selected and the last command will reselect the original line.

You see.  I need to know more to do what you want.  I need to see a before
and after sample of what you are trying to do.

Regards,

Larry
lrt@... eżê

#11352 From: Larry Thomas <larryt@...>
Date: Sun Dec 7, 2003 6:50 pm
Subject: Re: [Clip] Keep from unselecting lines
back3home2003
Send Email Send Email
 
Hi Roy,

Gosh Roy, it occurs to me that this is even more complicated.  Are you
trying to select multiple lines of text and replace them?

Example:

These three lines are all selected at once and then you run the clip:

Line One
Line Two
LIne Three

The clip opens a wizard and you type in "My name is Roy."

And when the clip is finishsed, nothing is selected but the three selected
lines have been replaced by:

My name is Roy
My name is Roy
My name is Roy

In the exact same place the selected lines were located.  Is that what you
are doing??  See how complicated things can get if you do not provide
enought information.

Regards,

Larry
lrt@... eżê

#11353 From: Jeff <scismgenie@...>
Date: Sun Dec 7, 2003 9:23 pm
Subject: Trying to automate Thumbnails for HTML
scismgenie
Send Email Send Email
 
I am trying to auto process the local directory to do the following, and
I just can't seem to get the process down.

I would like to extract a list of all *.jpg, and *.gif files from a
directory in the local drive.

Then I wuld like to generate html coding for each listed file, that not
only creates the file name to a link to that file, but inserts the
thumbnail as well.

I currently use the following clip to highlight a SINGLE filename and
create the referenced file text with the Thumbnail inserted, but it has
to be done manually, one line at a time from a prepared listing.

~~~CLIP~~~

<a href="^&.jpg"><img src="thumb/tn_^&.jpg" border="0" alt="^&" />^&</a>
<P>

~~~END CLIP~~~


This clip takes the selected text and inserts it in three places.
The directory where the thumbnails are stored is a subdiretory in the
same directory as the  source images, named "thumb", all thumbnails are
the same file name as the referenced  photo prefixed by "tn_". (This is
already referenced in the above clip.) (It would be nice if Easy Thumb
did this as a function when making the thumbnails).


I was trying to adapt this one to do it But so far my efforts failed.
(This  lists the links from a directory)

Here is a (very basic) clip that produces hyperlinks for
a whole directory:

<<
H="HTMLDIR"
^!set %path%=^?{(t=d)DIRECTORY}
^!sethintinfo works
^!setlistdelimiter <br>^p
^!setarray %files%=^$getfiles("^%path%";"*.jpg;*.gif";name)$; %ct%=0
^!inc %ct%
^!if ^%ct% > ^%files0% skip_2
;LONG LINE FOLLOWS
^!set %files^%ct%%=<a
href="^$filetourl(^%files^%ct%%)$">^$getname(^%files^%ct%%)$</a>
;END OF LONG LINE
^!goto skip_-3
^!info [l]^%files%
;END OF CLIP

Regards,

Melchior>>



Any help on getting this automated?

Thanks!

Jeff

#11354 From: Don Passenger <dpasseng@...>
Date: Sun Dec 7, 2003 9:38 pm
Subject: Re: [Clip] Trying to automate Thumbnails for HTML
dpasseng
Send Email Send Email
 
I have numerous clips that do this type of thing.  The funny part
(assuming you haven't spent too much time on this) is that the basics of
what you want are already in a stock clip.  Wander over to the utility
library and find the images to HTML clip.  Copy it, run it to see what
it does.  Now modify it to only find the thumnail files, and then modify
it to get rid of the extra stuff you might not want like file size.
There you go.

Jeff wrote:

> I am trying to auto process the local directory to do the following,

> I would like to extract a list of all *.jpg, and *.gif files from a
> directory in the local drive.

#11355 From: Jody <kjv-av1611@...>
Date: Sun Dec 7, 2003 11:52 pm
Subject: Re: [Clip] Keep from unselecting lines
notetabber
Send Email Send Email
 
Hi Roy,

>I would like to process a file and insert text into all lines
>that were selected. How do I keep from unselecting lines as I
>process the file?

Like Larry, I'm not sure if you want to replace the lines or
insert text into them. I'm going to assume you want to replace
them since it reads more like that.

Once you select the lines you use the following functions and
set it in a variable.

; gets the row position +1 of the end of the selection
^!Set %End%=^$Calc(^$GetRowEnd$+1)$
^!Jump Select_Start
:Loop
^!Select eol
^!InsertText YourText
^!Jump +1
^!If "^$GetRow$" = "^%End%" Next else Loop
; optional ;)
^!Jump 1

Related functions and commands that you might use or read up on:

^$GetColEnd$
^$GetColLeft$
^$GetColScreen$
^$GetColStart$
^$GetRow$
^$GetRowEnd$
^$GetRowStart$
^$GetRowTop$
^$GetSelection$
^!MoveCursor
^!Select eol/bol/word/line/paragraph, etc.
^!SelectTo
^!SetCursor
^!SetCursorPara
^!SetView
^!Inc
^!IfSame/Diff/Match/True/False...

Take care,
Jody Adair

The whole world doth err save you and me,
       and even thou doest err some!
         http://clean-funnies.com
    http://notetab.net, http://fookes.us

#11356 From: "hugo_paulissen" <H.Paulissen@...>
Date: Mon Dec 8, 2003 8:30 am
Subject: Re: [Clip] Keep from unselecting lines
hugo_paulissen
Send Email Send Email
 
> >I would like to process a file and insert text into all lines
> >that were selected. How do I keep from unselecting lines as I
> >process the file?
>

Roy,

Larry and Jody already gave you an answer, but you could keep it
realy simple if you use a regular expression... It depends where you
want to insert the text if you can use this or not. In any case -
this keeps you from writing a complicated script (which might be fun
in itself though). _I_ assume you want to _insert_ text.

^!Set %newtext%=^?{Insert this text=}
^!Replace "{.*}" >> "^%newtext% \1" HRA

What this line does is insert your new text and a speace in front of
the find pattern. The find pattern looks for everything on a line -
the replace-function thus inserts something at the beginning of each
line. Please note that it will insert your new textstring at the
beginning of the selection as well - no matter where you start your
selection. If you only want text at the beginning of a line change
your replace pattern to this...

^!Replace "^{.*}" >> "^%newtext% \1" HRA

Regards,

Hugo

#11357 From: Larry Thomas <larryt@...>
Date: Mon Dec 8, 2003 8:01 pm
Subject: Re: Keep from unselecting lines
back3home2003
Send Email Send Email
 
Hi Roy,

At 09:31 PM 12/7/03 -0000, you wrote:
>Hi Larry,
>I'm sorry I did not give you an example.
>
>Please refer to the file below.
>I will preselect the 3rd and 4th lines manually.
>I would like to prompt for the insertion column# (5).
>I would like to prompt for the text to be inserted ("tree ").
>I would like the clip to insert "tree " in the 5th column of the 3rd
>and 4th lines, scooting "is green" down.
>
>Thanks again,
>Roy
>
>Line containing anything
>Line containing anything
>The is green
>The is green
>Line containing anything
>Line containing anything
>Line containing anything

This is my last and best clip.  I have tested it and it works just fine.
You do not need to modify it as you do my last clip.  It will determine the
first line and the last line of the selection and then it will jump to the
first line and start processing and keep processing until it does the last
line.  It will quit when finished and if you do not select anything, it
will give you an error message and quit without processing anything.

______[Copy below this line]_______
H="Inset String in Line"
;
;----------------------[begin long line]---------------------------
^!Set %Column%=^?{Enter Column to insert to=}; %String%=^?{Enter string to
insert=}^%SPACE%
;-----------------------[end long line]----------------------------
;
^!Set %Start%=^$GetRowStart$; %End%=^$GetRowEnd$
^!IfTrue ^$IsEmpty("^$GetSelection$")$ Next ELSE Skip_2
^!Info [L]You must select one or more lines to use this^Pclip.  Try again.
^!Goto Exit
:Loop
^!Jump ^%Start%
^!Select Line
^!InsertText ^$StrInsert("^%String%";"^$GetSelection$";^%Column%)$
^!If ^%Start%=^%End% Exit ELSE Next
^!Inc %Start%
^!Goto Loop
  _____[Copy above this line]______
|  right click over the clipbook  |
| and choose "Add from Clipboard" |
  ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Regards,

Larry
lrt@... eżê

#11358 From: Jody <kjv-av1611@...>
Date: Tue Dec 9, 2003 6:56 pm
Subject: RE: [Clip] Modifying Shortcut Keys
notetabber
Send Email Send Email
 
Hi Robert,

It appears I missed this one. No date of completion set. It will
have customizable syntax highlighting. A much better block mode
interface will be used.

>Please forgive me if this has been discussed recenytly and I missed it, but
>when is V5 scheduled for release? Will it also have customizable syntax
>color coding? Also, for the wish list, a better interface for "block mode"
>editing would be nice.


See ya in the funnies!
jody

clean-funnies.com, fookes.us, notetab.net
sojourner.us, notetab.net/html/cd-info.htm


[Non-text portions of this message have been removed]

#11359 From: "Dick Gascoigne" <dick.gascoigne@...>
Date: Thu Dec 11, 2003 7:45 am
Subject: Trouble creating a new document
bobbit_singa...
Send Email Send Email
 
Running NTP...
  I want to close any / all open documents, then open a new empty document, then
open a file.

Simple, huh? But If I use:

    ^!Close ALL,DISCARD
    ^!Delay 10
    ^!Keyboard Ctrl+n
    ^!Open ^%ScriptFile%

Then I get TWO new document (NoNamexx) windows, plus the ScriptFile

Or, using:
    ^!Close ALL,DISCARD
    ^!Delay 10
    ^!Open ^%ScriptFile%

results in just the ScriptFile being opened. (As would be expected)

What's happening here? How can I get just ONE new document before opening
ScriptFile?

Dick Gascoigne
Singpore




[Non-text portions of this message have been removed]

#11360 From: loro <loro-spam01-@...>
Date: Thu Dec 11, 2003 10:10 am
Subject: Re: [Clip] Trouble creating a new document
yastupidhoo
Send Email Send Email
 
Dick Gascoigne wrote:
>Running NTP...
> I want to close any / all open documents, then open a new empty document, then
open a file.
>
>Simple, huh? But If I use:
>
>   ^!Close ALL,DISCARD
>   ^!Delay 10
>   ^!Keyboard Ctrl+n
>   ^!Open ^%ScriptFile%
>
>Then I get TWO new document (NoNamexx) windows, plus the ScriptFile

<snip>

When you close all documents Notetab automatically creates a new doc. Then you
create one. That's two. AFAIK it isn't possible to have *no documents* open in
Notetab.

Lotta

#11361 From: Larry Thomas <larryt@...>
Date: Thu Dec 11, 2003 11:28 am
Subject: Re: [Clip] Trouble creating a new document
back3home2003
Send Email Send Email
 
Hi Dick,

At 03:45 PM 12/11/03 +0800, you wrote:
>Running NTP...
> I want to close any / all open documents, then open a new empty document,
then open a file.
>
>Simple, huh? But If I use:
>
>   ^!Close ALL,DISCARD
>   ^!Delay 10
>   ^!Keyboard Ctrl+n
>   ^!Open ^%ScriptFile%
>
>Then I get TWO new document (NoNamexx) windows, plus the ScriptFile
>
>Or, using:
>   ^!Close ALL,DISCARD
>   ^!Delay 10
>   ^!Open ^%ScriptFile%
>
>results in just the ScriptFile being opened. (As would be expected)
>
>What's happening here? How can I get just ONE new document before opening
ScriptFile?

Loro is right about NoteTab always having one new NoNamexx file open when
no other files are open at least as far as I can tell.  I have never seen
any other behavior.

I would suggest that you re-arrange the code in your clip to:

    ^!Close ALL,DISCARD
    ^!Delay 10
    ^!Open ^%ScriptFile%
    ^!Keyboard Ctrl+n

or to:

    ^!Close ALL,DISCARD
    ^!Delay 10
    ^!Open ^%ScriptFile%
    ^!Toolbar New Document

When the ^%ScriptFile% is opened, NoteTab will in effect replace/close the
default NoNamexx file and then the last command will open another new file.
  You will just not have the tabs in the sequence you want.  The only way
that I know to do that would be to add code to this clip that would switch
back to the script file and close it and then reopen it.

Example:

    ^!Close ALL,DISCARD
    ^!Delay 10
    ^!Open ^%ScriptFile%
    ^!Keyboard Ctrl+n Ctrl+Shift+Tab Ctrl+F4 Alt+F R 1

Regards,

Larry
lrt@... eżê

#11362 From: "Roy Herring" <roynancy@...>
Date: Thu Dec 11, 2003 11:28 pm
Subject: 1st letter uppercase of each word
roynancy@...
Send Email Send Email
 
Many times I have a string that is all uppercase.
Is there a clip or function that will convert all words in a string to lowercase
and convert the 1st letter of each word to uppercase?

Thanks,
Roy

[Non-text portions of this message have been removed]

#11363 From: NetAware <bhc@...>
Date: Fri Dec 12, 2003 12:16 am
Subject: moving values around on a line...
bhc@...
Send Email Send Email
 
I have the following date & other numerica values toward the end of each
line of CSV's:
    ...01/14/2003","14"

I want to remove everything after the year value (","14" in the above
example), select the date string (01/14/2003 in the above exp.), move
the date to the beginning of the same line & follow it with a semi-colon
& a space (eg, 05/22/2004: ). The values I want to delete in the last
set of quotes ("14" in the above) vary -- they might be nothing ("") or
larger or smaller than my example (eg, "238" / "1" / "3.2" / etc.). How
do I do this?

Bill

#11364 From: Don Passenger <dpasseng@...>
Date: Fri Dec 12, 2003 2:15 am
Subject: Re: [Clip] 1st letter uppercase of each word
dpasseng
Send Email Send Email
 
that is an easy one Roy
shift+control+k
also available under modify/text case/capitalize


Roy Herring wrote:
> Many times I have a string that is all uppercase.
> Is there a clip or function that will convert all words in a string to
lowercase and convert the 1st letter of each word to uppercase?
>
> Thanks,
> Roy

#11365 From: loro <loro-spam01-@...>
Date: Fri Dec 12, 2003 2:22 am
Subject: Re: [Clip] 1st letter uppercase of each word
yastupidhoo
Send Email Send Email
 
Roy Herring wrote:
>Many times I have a string that is all uppercase.
>Is there a clip or function that will convert all words in a string to
lowercase and convert the 1st letter of each word to uppercase?

Look at the Modify -> Text Case menu. If you want to do it it in a clip there is
^$StrCapitalize()$.

Lotta

#11366 From: "Timothy Barlow" <timothy.barlow@...>
Date: Fri Dec 12, 2003 1:53 am
Subject: RE: [Clip] 1st letter uppercase of each word
timothy.barlow@...
Send Email Send Email
 
Actually, you don't need a clip to do that.  There are two ways to do
this.  First you highlight the text you want to change, then you do
either of the following:

1) Click on Modify -> Text Case -> Capitalise
2) Press Shift+CTRL+K

(The latter one is faster if you can remember it.)

I have the same problem, and use this function all the time in Notetab.
It works perfectly well, and there are several other case functions
which I find invaluable in Notetab.

Regards,
Tim.

-----Original Message-----
From: Roy Herring [mailto:roynancy@...]
Sent: Friday, 12 December 2003 10:29 AM
To: Notetab clips: post a question
Subject: [Clip] 1st letter uppercase of each word

Many times I have a string that is all uppercase.
Is there a clip or function that will convert all words in a string to
lowercase and convert the 1st letter of each word to uppercase?

Thanks,
Roy

[Non-text portions of this message have been removed]





Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/




**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Messages 11337 - 11366 of 23787   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright İ 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help