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...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 5626 - 5655 of 23810   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#5626 From: Kent Tenney <kent@...>
Date: Fri Feb 2, 2001 5:13 pm
Subject: RE: [Clip] Editing Python scripts(is that parrot dead monty?)
kent@...
Send Email Send Email
 
Thanks for the help, it brings up a couple questions.

How do I send the name of the current file instead of ^%PyFile% in
^!INFO ^$GetOutput(python "^%PyFile%")$

Where is info on the function ^$getScriptPath()$

Thanks,
Kent




On Thu, 1 Feb 2001 23:34:57 +1300, Grant wrote:
Hi kent
> > What is the preferred method for editing scripts, sending them
> > to the interpreter, and viewing the output of the script?
This should get you started

You can grab the output of a python script with notetabs
^$GetOutput()$ method

H= pythonHelloWorldTest
;name the script to be placed in ntabs script folder
^!Set %PyFile%=^$getScriptPath()$test.py
^!Toolbar new document
;the 2 line python script
print "hello hello"
print "is that parrot dead monty?"
^!Save as ^%PyFile%
;run python script and get  output
^!INFO ^$GetOutput(python "^%PyFile%")$

#5627 From: Jody <av1611@...>
Date: Fri Feb 2, 2001 6:58 pm
Subject: RE: [Clip] Editing Python scripts(is that parrot dead monty?)
av1611@...
Send Email Send Email
 
Hi Kent,

Grant might give you the whole thing, but here ya go...

>How do I send the name of the current file instead of ^%PyFile% in
>^!INFO ^$GetOutput(python "^%PyFile%")$

GetInputOutput
^$GetInputOutput("Command")$

Launches the console program specified by "Command" and sends the
current document text to the StdInput data stream. The function
returns the console's StdOutput data stream. The stderr stream is
saved in file called "StdError.err" in NoteTab's application
directory unless another file is specified with the
SetStdErrorName command. This command is only available in the
commercial and trial versions of NoteTab.

Try something like these:

; ^** = path to focused unsaved document if exists otherwise
; the path to the focused doc in saved state
^!Set %File%=^**
^!Info ^$GetInputOutput(python "^%File%")$

^!Set %File%=^?[(T=O)Get file path]
^!Info ^$GetInputOutput(python "^%File%")$

> Where is info on the function ^$getScriptPath()$

In Help under Clip Language - Disk Directories (I searched for
GetScript under the Find tab). I'm not sure why Grant through in
the "()" in the function except for you can do that in functions
that don't normally have them.

^$GetScriptPath$
Returns the path for NoteTab script files (e.g. AWK, Perl, etc.;
always ends with backslash).

I still use Wayne's Cross Reference which I try to update with
commands and functions it is not all of them.  Wayne has some
nice Libraries at his site NoteAwk being the most talked about
after the Cross Reference. ;)

http://landru.myhome.net/wayne/notetab.html
http://landru.myhome.net/wayne/ntr460.zip

^$GetScriptPath$
Returns the path for NoteTab script files (e.g. AWK, Perl, etc.;
always ends with backslash).

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5628 From: "Grant" <emerge@...>
Date: Thu Feb 1, 2001 9:22 pm
Subject: RE: [Clip] Editing Python scripts(is that parrot dead monty?)
emerge@...
Send Email Send Email
 
> Thanks for the help, it brings up a couple questions.
>
> How do I send the name of the current file instead of ^%PyFile% in
> ^!INFO ^$GetOutput(python "^%PyFile%")$

You must have saved the python script you are working on with .py ext of
course
Then ^$GetDocName()$ gets the name of the current file.
So the following will send the current file to the python interpretor

^!Set %PyFile%=^$GetDocName()$
^!Info ^$GetOutput(python ^%PyFile%)$

> Where is info on the function ^$getScriptPath()$

In the help file i hope.
Its just a folder in the ntab dir and is handy place to chuck your scripts,
it serves no other intrinsic purpose.

The active python distribution  comes with a active x  scripting engine
(Python AXScript Engine) which you can use to run pythonScript in the wsh.
Note the pys extension.

H=pysInHost
^!Set %PyFile%=^$getScriptPath()$testingWSH.pys
^!Toolbar new document
;a 2 line python script
import sys
WScript.Echo("python version", sys.version)
^!Save as ^%PyFile%
;run python script in wsh host and get output
^!INFO ^$GetOutput(cscript "^%PyFile%")$

#5629 From: "Grant" <emerge@...>
Date: Thu Feb 1, 2001 9:22 pm
Subject: RE: [Clip] Need to extract surnames; The DOM vs reg exp
emerge@...
Send Email Send Email
 
> > If you want to take a look posted a DOM way to do this on the Notetab
> > html list.  subj: Extracting table data with the DOM Have heard 'reg
> > exp' losing favour because of the power of the DOM. It certainly is a
> > lot more intuitive than writing a reg exp to do the same thing. So if
> > you want to check it out have a look.

> I take interest in both DOM and regexes. DOM can get you the contents
> of a tag, but can it check if these contents match a particular
> pattern?

No it can't, but using reg exp to extract a tables first col surnames in an
html doc is like using a chainsaw to cut butter.
In comparison it took me about 5 minutes to write that dom script to extract
the tables first collum data because it's the right tool for this job.
The dom provides an easy way to navigate text marked up with html or xhtml
or xml while Reg expressions are good at finding  patterns in the
unstructured text. They are not competing technologies but complementary.
Working with the dom I'm not pattern matching but working directly with the
documents structured objects.
the tables collection of rows and the first child of each row,  to get the
first td column.
Having extracted the first col, if I want to find all the 'parkers' in that
extracted data  then using reg ex is handy.

#5630 From: Jody <av1611@...>
Date: Fri Feb 2, 2001 10:24 pm
Subject: RE: [Clip] Editing Python scripts(is that parrot dead monty?)
av1611@...
Send Email Send Email
 
Hi Grant,

>> Where is info on the function ^$getScriptPath()$
>
>In the help file i hope.

It's in there, but do you add the parenthesis for anything
special other than to keep Jody scratching his head? :)

I suppose I will have to break down and install my VBscript
stuff so I can try out your scripts.


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5631 From: "Larry Hamilton" <lm_hamilton@...>
Date: Fri Feb 2, 2001 11:45 pm
Subject: Re: [Clip] Java Clip
lm_hamilton@...
Send Email Send Email
 
Clint,

I saw your post, and have just been too busy to dig out a couple of
clips from Wayne (now I have some time). I find they are very
helpful. At the end are some
of my own creations. I have not had time to work with Java for a
long time, just playing mostly, so I cannot offer a lot of help with it.

I did learn how to do some things with other programming
languages, from these clips, that are fairly portable, but again,
mostly playing.

H="Compile Java"
;Wayne VanWeerthuizen <wayne@...>
;Tue, 28 Dec 1999 23:13:55 -0800
;This clip requires sun's compiler, called 'javac', to be
;located at "C:\jdk\bin\javac.exe"  If your copy of javac is stored
;elsewhere, you'll need to modify the path in the clip.
;// Get rid of old error file, so we don't get misled by seeing it
around
^!SET %ErrorFile%=^$GetStdErrorName$
^!DestroyDoc ^%ErrorFile%
;// Make sure source code is saved
^!Save
^!Set %File%=^**
;// Prepare a place to put the command's output
^!Set %DocIndex%=^$GetDocIndex$
^!Toolbar "New Document"
;// Compile the java applet
;^!InsertText ^$GetOutput("C:\JDK\BIN\JAVAC -deprecation"
"^%File%")$
;^!InsertText ^$GetOutput("D:\java\bin\JAVAC" "^%File%")$
^!InsertText ^$GetOutput("D:\jdk1.1.8\bin\JAVAC -deprecation"
"^%File%")$

;// Close the file if command produced no output.
^!If ^$GetTextSize$ > 1 SKIP
^!Close DISCARD
;// Check for an error file
^!IFFILEEXIST "^%ErrorFile%" DISPLAYERROR
;// No errors to refocus on source code document
^!SetDocIndex ^%DocIndex%
^!GOTO END
;// Load and display errors
:DISPLAYERROR
^!OPEN ^%ErrorFile%
^!SetWordWrap ON
^!SOUND SystemExclamation
*****end clip******

H="Jump to Line from Error Output"
;Wayne VanWeerthuizen <wayne@...>
;Tue, 11 Jan 2000 11:50:55 -0800
;This update stops NoteTab from printing error messages if the clip
is
;accidentally used on a document that does not contain error
message
;output, and allows the cursor to be placed on any line of the error
;message, instead of just the first.  I don't expect it will need any
;more updates, unless something needs to be changed to make it
work
;better with the output of other compilers that I've not yet tested.
:Redo
^!FocusDoc
; Look from current cursor position for something resembling:
; <Path and Filename><colon><number><colon><space>
^!Select LINE
^!Find ": " SH
^!IfError Error
^!Jump Select_Start
^!Set %Position%="^$GetRow$:^$GetCol$"
^!Find ":" BS
^!IfError Error
^!Jump Select_End
^!SelectTo ^%Position%
^!Set %Line%="^$GetSelection$"
; Line Number has been found.
^!Jump Select_Start
^!MoveCursor -1
^!Select BOL
^!Set %File%="^$GetSelection$"
; Filename has been found.
^!Open ^%File%
^!Jump ^%Line%
^!Goto Exit
; If we had an error, it means a find failed, which means the
; cursor was not on the first line of an error message.  We back
; up a line and try again.  (The -2 is because the above code
; moves the cursor down a during the search line.)
:Error
^!If ^$GetRow$ < 2 Exit
^!Jump -2
^!Goto Redo
****end clip****

Here is one I made to run a Java program from the *.java file in
focus in NoteTab.

---------< start clip >---------
H="Run with Java2"
;Larry Hamilton, Jr. <LM_Hamilton@...>
;02/02/2001, 05:34:28 PM
;^!SetDebug On
;This Clip will run Java applets from the commandline, if their *.java
file is focused in NoteTab. So far this only works with JDBC
applets, that output to commandline. Need a way to get output into
a text file or applet display.
^!SET %ErrorFile%=^$GetStdErrorName$
^!DestroyDoc ^%ErrorFile%
;This command only gives the name of the file, so can use to get
name of *.java to run *.class.
^!ChDir D:\NoteTab\Documents\java\
^!Set %file%=^$GetName(^**)$
;Commandline to run a java applet from commandline.
;^!SetClipboard=java ^%file%
;^!Info ^$GetOutput("D:\jdk1.1.8\bin\JAVA -classpath
D:\NoteTab\Documents\java\ ^%File%")$
^!SetWizardTitle Run with Java2 Output Stream
^!SetWizardLabel Output Stream:
^!Info ^$GetInputOutput("JAVA -classpath
D:\jdk1.1.8\lib\classes.zip;D:\jdk1.1.8\lib\solid\jdbc\;D:\NoteTab\Do
cuments\java\ ^%File%")$
;java -classpath
D:\jdk1.1.8\lib\classes.zip;D:\jdk1.1.8\lib\solid\jdbc\;D:\Downloads\J
ava\sj23win\samples\ sample1
;^!Info ^$GetStdErrorName$

^!If ^$GetTextSize$ > 1 SKIP
^!Close DISCARD
;// Check for an error file
^!IFFILEEXIST "^%ErrorFile%" DISPLAYERROR
;// No errors to refocus on source code document
^!SetDocIndex ^%DocIndex%
^!GOTO END
;// Load and display errors
:DISPLAYERROR
^!SetWizardTitle Error Stream
^!Info ^$GetFileText(^%ErrorFile%)$
^!OPEN ^%ErrorFile%
^!SetWordWrap ON
^!SOUND SystemExclamationt
---------< end clip >-----------

Another helpful set of clips:

H="Get Usage"
;03/24/2000
;This Clip will send Java commands to the commandline, and will
return the usage to an info box. CAUTION: If a command does not
generate usage information, this could cause problems.
;^!SetDebug On
^!ClearVariables
^!SET %ErrorFile%=^$GetStdErrorName$
;^!Set %pgm%=^?{Java Exe=}
;^!Set %param%="-help"
^!DestroyDoc ^%ErrorFile%

^!SetHintInfo Calculating...
^!SetListDelimiter=^%SPACE%
^!SetArray
%FileList%=^$GetFiles(^?[(T=D)Directory=D:\jdk1.1.8\bin];"*.exe")$

^!Set
%list%=^$StrReplace("D:\jdk1.1.8\bin\";"|";"^%FileList%";False;Tru
e)$
^!Set %list2%=^$StrReplace(".exe
";"^%EMPTY%";"^%List%";False;True)$
^!Set %Show%=^$StrDelete("^%List2%";1;1)$

^!SetWizardTitle Get Java Command Usage
^!SetWizardLabel These are the Java commands in your JDK:
^!Info ^%Show%
^!Set %pgm%=^?{(T=C;H=24)Exe's=^%Show%}

;^!ChDir D:\NoteTab\Documents\java\
;Commandline to run a java applet from commandline.
^!SetWizardTitle Command Usage
^!Info ^$GetInputOutput("^%pgm%")$
;^!Info ^$GetOutput("^%pgm%")$

;java -classpath
D:\jdk1.1.8\lib\classes.zip;D:\jdk1.1.8\lib\solid\jdbc\;D:\Downloads\J
ava\sj23win\samples\ sample1

^!If ^$GetTextSize$ > 1 SKIP
^!Close DISCARD
;// Check for an error file
^!IFFILEEXIST "^%ErrorFile%" DISPLAYERROR
;// No errors to refocus on source code document
^!SetDocIndex ^%DocIndex%
^!GOTO END
;// Load and display errors
:DISPLAYERROR
^!SetWizardTitle Error Stream
^!Info ^$GetFileText(^%ErrorFile%)$
;^!OPEN ^%ErrorFile%
^!SetWordWrap ON
;^!SOUND SystemExclamation
***end clip*****

H="Get Usage2"
;03/24/2000
;This Clip will send Java commands to the commandline, and will
return the usage to an info box. CAUTION: If a command does not
generate usage information, this could cause problems.
;^!SetDebug On
^!ClearVariables
^!SET %ErrorFile%=^$GetStdErrorName$
^!DestroyDoc ^%ErrorFile%
^!SetListDelimiter=|
;----------------------[begin long line]---------------------------
^!Set
%List%=^$StrReplace("D:\jdk1.1.8\bin\";;"^$GetFiles("D:\jdk1.1.8\bi
n\";"*.exe")$";False;False)$
;-----------------------[end long line]----------------------------
^!Set
%List%=^$StrCapitalize("^$StrReplace(".exe";;"^%List%";False;Fal
se)$")$
^!Set %Value%=^?{(H=15)Choose Java program to
execute==^%List%}

^!Info ^$GetInputOutput("^%Value%")$

^!If ^$GetTextSize$ > 1 SKIP
^!Close DISCARD
;// Check for an error file
^!IFFILEEXIST "^%ErrorFile%" DISPLAYERROR
;// No errors to refocus on source code document
^!SetDocIndex ^%DocIndex%
^!GOTO END
;// Load and display errors
:DISPLAYERROR
^!SetWizardTitle Error Stream
^!Info ^$GetFileText(^%ErrorFile%)$
;^!OPEN ^%ErrorFile%
^!SetWordWrap ON
;^!SOUND SystemExclamation


On 26 Jan 2001, at 14:57, Clint Tredway wrote:

> Doesn't some one have a clip for compiling and running java code
from Note
> Tab?
>
> Clint
Larry Hamilton, Jr.
lm_hamilton@...
http://notlimah.tripod.com/
Hamilton National Genealogical Society, Inc.
http://www.hamiltongensociety.org/

#5632 From: Jody <av1611@...>
Date: Sat Feb 3, 2001 7:03 am
Subject: [Clip] Re: [NTB] Disk files list 2
av1611@...
Send Email Send Email
 
Hi Steve,

>If I go to the quick list (using f6), right mouse click and
>choose disk files there are various choices saved in the drop
>down box at the top. These are just paths and don't seem to be
>listed in any of my .fvr files. One of these I added by mistake
>and don't know how to delete it.

You'll have to joint the long lines that will probably get split
in the mail.  Just select them and use the Join Lines tool.

<---     Copy below this line     --->
H=";Info"
; Last Updated 01-23-2001, Sojourner@..., jody
To edit a Quick List Directory group, the paths in the Quick List combobox, open
NoteTab's ini file (NotePro.ini or NoteTab.ini). Delete the lines you do not
want leaving no blank line in their place. You can use the DeleteLine clip for
this by placing your cursor on the line and clicking on the clip. Additional
line deletions can be done by placing your cursor on the line (or using your
Up/Down keys) and pressing "Ctrl+Space Bar".  Run the "Edit Directory List (Part
of the Quick List) Clip after that.  Lastly, save the ini file with an
exclamation mark in from of it and restart NoteTab.  You can start the Clip
right above the [DirectoryList] section in the ini file.


H="Open *.ini"
; Last Updated 01-23-2001, Sojourner@..., jody
^!Open ^?{(T=O;F="User Defined Dictionaries|*.udt")Your NotePro.ini or NoteTab
file may be in NoteTab or Dictionaries=^$GetAppPath$}


H="DeleteLine"
; Last Updated 01-23-2001, Sojourner@..., jody
^!DeleteLine


H="Edit Directory List (Part of Quick List)"
; Last Updated 01-23-2001, Sojourner@..., jody
^!Continue To edit a the Directory Quick List listing in the combobox first open
NoteTab's ini file found it its main folder (NotePro.ini or NoteTab.ini). If you
have not done so, please read About before continuing. Continue?

^!SetHintInfo Reformatting ^$GetDocName$...
^!SetScreenUpdate Off
^!Find "Specs_" STI
^!Set %Counter%=0

:Loop
^!Inc %Counter%
^!Find "=" S
^!IfTrue ^$IsEmpty("^$GetLine$")$ SpecsCount
^!Select Bol
^!InsertText Specs_^%Counter%=
^!Jump +1
^!Goto Loop

:SpecsCount
^!Find "SpecsCount=" SBI
^!IfError Info
^!Select Eol
^!Dec %Counter%
^!InsertText SpecsCount=^%Counter%
^!Jump 1

:Info
^!Info Simply repeat the process to delete more words. You may now Save & Close
the file if you are satisfied with it.  Be sure to save with the exclamation
mark in from of the ini file name as stated in Info.^p^pHappy
NoteTabbin'!^p^pJody
Adair^pmailto:Sojourner@...^phttp://www.notetab.net^p

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

#5633 From: "Glenn Dixon" <glenn@...>
Date: Mon Feb 5, 2001 5:06 am
Subject: help!
glenn@...
Send Email Send Email
 
hehe...thought that would be a good intro after a long absence from
the list...

seriously, I'm trying to do a simple search through a text file - but
when I search for the "#" symbol it isn't found....

I'm sure there is something simple I'm missing here but I haven't
messed with these scripts in awhile

using version 4.82

what's the newest version out there now?

#5634 From: "Don Passenger" <dpasseng@...>
Date: Mon Feb 5, 2001 5:29 am
Subject: Re: [Clip] help!
dpasseng@...
Send Email Send Email
 
4.83 is up
4.84 is in final beta

---
Don Passenger
Personal Page: http://www.iserv.net/~dpasseng
Court Page: http://www.iserv.net/~dpasseng/grdc
----- Original Message -----
From: Glenn Dixon <glenn@...>
To: <ntb-clips@yahoogroups.com>
Sent: Monday, February 05, 2001 12:06 AM
Subject: [Clip] help!


> hehe...thought that would be a good intro after a long absence from
> the list...
>
> seriously, I'm trying to do a simple search through a text file - but
> when I search for the "#" symbol it isn't found....
>
> I'm sure there is something simple I'm missing here but I haven't
> messed with these scripts in awhile
>
> using version 4.82
>
> what's the newest version out there now?
>
>
>
>
>

#5635 From: Jody <av1611@...>
Date: Mon Feb 5, 2001 6:23 am
Subject: Re: [Clip] help!
av1611@...
Send Email Send Email
 
Hi Glenn,

>hehe...thought that would be a good intro after a long absence
>from the list...

Are you trying for the understatement of the year? :)

>seriously, I'm trying to do a simple search through a text file -
>but when I search for the "#" symbol it isn't found....

Read what the T and C options do under ^!Find or ^!Replace in Help.

^!Find "#" ST

Our latest version of NoteTab is 4.83 and it is a free for you:

http://www.notetab.com/upgrade.htm
http://www.notetab.com/dictionaries.htm

NoteTab Pro v4.83 (upgrade wrapper); size 1,720 KB:
     http://www.notetab.ch/ftp/ntp483k.exe

NoteTab Std v4.83 (upgrade wrapper); size 1,655 KB:
     http://www.notetab.ch/ftp/nts483k.exe

Setup program with English dictionaries and thesaurus
(size 1,394 KB; updated 8 May 2000)
http://www.notetab.com/ftp/dicts.exe

NoteTab Light v4.83 (Freeware); size 1,465 KB:
     http://www.notetab.ch/ftp/ntfree.zip

NoteTab Pro 4.84 (Registered update)
    http://www.notetab.ch/temp/ntp484wp.exe (size 1,811,153 bytes)

NoteTab Pro (Trial) and NoteTab Light 4.84
    http://www.notetab.com/beta.htm

There is a discussion mailing list to send in bug reports.  You
can sign up for it if you are interested from the link below or
online.  I think if you do it from the beta page though eGroups
ask you for some information.  The eMail address below to sign up
for the ntb-NextRelease list does not require that, or at least
it didn't before Yahoo took over.

The NoteTab Next Release List
ntb-NextRelease-Subscribe@YahooGroups.com
ntb-NextRelease-UnSubscribe@YahooGroups.com

http://www.fookes.com/products.htm

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5636 From: "Alan C." <acummings@...>
Date: Mon Feb 5, 2001 7:05 am
Subject: Re: [Clip] help!
acummings@...
Send Email Send Email
 
Hi Glen,

> seriously, I'm trying to do a simple search through a text file - but
> when I search for the "#" symbol it isn't found....

It wasn't until I got done with the following that I thought I might share
it.  Birds fly.  Sun shines.  I'm not a clip writer, not yet.  But a clip
writer writes clips.  A practicer practices.  That is what I am doing.  It
works good.

H="junk1"
;This clip records line number of each #
;in a Doc and then displays the results
;Ntab ver. 4.62 or later required
;
;Word wrap may be either on or off
;On menu: View can turn on line numbers
;
^!ClearVariable %group%
^!Set %group%="# Resides^%NL%^%NL%"
^!Jump 1
:loop
^!FIND "#" TS
^!IfError viewit
^!Set %item%=^$GetRow$
^!Append %group%="# at line number ^%item%^%NL%"
^!Jump SELECT_END
^!Goto loop
:viewit
^!Info [L]^%group%
^!ClearVariable %group%
;---<end of clip<<

Bye.  Alan.

#5637 From: "Glenn Dixon" <glenn@...>
Date: Mon Feb 5, 2001 7:14 am
Subject: Re: help!
glenn@...
Send Email Send Email
 
well, it took me awhile to find the help file again :o)

I was searching in 'whole word only' mode, and the # was stuck up
against other characters......

it HAS been a long time eh?

--- In ntb-clips@y..., Jody <av1611@e...> wrote:
> Hi Glenn,
>
> >hehe...thought that would be a good intro after a long absence
> >from the list...
>
> Are you trying for the understatement of the year? :)
>
> >seriously, I'm trying to do a simple search through a text file -
> >but when I search for the "#" symbol it isn't found....
>
> Read what the T and C options do under ^!Find or ^!Replace in Help.
>
> ^!Find "#" ST
>
> Our latest version of NoteTab is 4.83 and it is a free for you:
>
> http://www.notetab.com/upgrade.htm
> http://www.notetab.com/dictionaries.htm
>
> NoteTab Pro v4.83 (upgrade wrapper); size 1,720 KB:
>     http://www.notetab.ch/ftp/ntp483k.exe
>
> NoteTab Std v4.83 (upgrade wrapper); size 1,655 KB:
>     http://www.notetab.ch/ftp/nts483k.exe
>
> Setup program with English dictionaries and thesaurus
> (size 1,394 KB; updated 8 May 2000)
> http://www.notetab.com/ftp/dicts.exe
>
> NoteTab Light v4.83 (Freeware); size 1,465 KB:
>     http://www.notetab.ch/ftp/ntfree.zip
>
> NoteTab Pro 4.84 (Registered update)
>    http://www.notetab.ch/temp/ntp484wp.exe (size 1,811,153 bytes)
>
> NoteTab Pro (Trial) and NoteTab Light 4.84
>    http://www.notetab.com/beta.htm
>
> There is a discussion mailing list to send in bug reports.  You
> can sign up for it if you are interested from the link below or
> online.  I think if you do it from the beta page though eGroups
> ask you for some information.  The eMail address below to sign up
> for the ntb-NextRelease list does not require that, or at least
> it didn't before Yahoo took over.
>
> The NoteTab Next Release List
> ntb-NextRelease-Subscribe@Y...
> ntb-NextRelease-UnSubscribe@Y...
>
> http://www.fookes.com/products.htm
>
> Happy Clip'n!
> Jody
>
> http://www.notetab.net
>
> Subscribe, UnSubscribe, Options
> mailto:Ntb-Clips-Subscribe@y...
> mailto:Ntb-Clips-UnSubscribe@y...
> http://www.egroups.com/group/ntb-clips

#5638 From: Stephen <stephen@...>
Date: Mon Feb 5, 2001 5:23 pm
Subject: Re: [Clip] creating a calendar
stephen@...
Send Email Send Email
 
Hi all,
I am looking forward to putting my church's calendar
on-line----repeatedly, so I spent odd hours for a couple of weeks
creating a createacalendar clip.
It works well. At the moment, it cycles through each day of the month
and asks what is going on that day, which if fine once or twice but any
month with more days than two gets boring so I want to organize the
wizards differently, but it works from the years 1980 through 2030.
Including comments and html, it is 168 lines long, so I won't post it
here, but if anyone needs a calendar-maker or would like to check it out
and give me suggestions on how to make it better, email me
at:stephen@...
Thanks, Stephen

#5639 From: "Piotr Bienkowski" <syntax@...>
Date: Thu Feb 1, 2001 2:08 pm
Subject: RE: [Clip] Need to extract surnames; The DOM vs reg exp
syntax@...
Send Email Send Email
 
Wonded why my message popped up with a few days' delay... :(

On 25 Jan 2001, at 11:33, Piotr Bienkowski wrote:

> On 18 Jan 2001, at 11:19, Grant wrote:
>
> > If you want to take a look posted a DOM way to do this on the
> > Notetab html list.  subj: Extracting table data with the DOM Have
> > heard 'reg exp' losing favour because of the power of the DOM. It
> > certainly is a lot more intuitive than writing a reg exp to do the
> > same thing. So if you want to check it out have a look.
> >
> >
> Hi,
>
> I take interest in both DOM and regexes. DOM can get you the contents
> of a tag, but can it check if these contens match a particular
> pattern?
>
> Piotr
>

#5640 From: "Andy Young" <ajyoung@...>
Date: Fri Feb 2, 2001 6:15 pm
Subject: Build an Index
ajyoung@...
Send Email Send Email
 
I've been using Note Tab for a couple of years but I have only been
reading posts to this list for about a month. I've read enough to
figure out what Clips can do, but not how. Perhaps someone can help
design a clip for me? I could use a clip that would create a
subject/word index for html pages. Maybe a search engine would be
easier, but these HTML files are going to go into e-books, pdf, and
print publishing.

Open a file
	 What file do you want to search through? (Input filename)
Search the file for a word
	 What word do you want to search for? (Input word)
At every occurence of the word at an anchor tag, identified by a
unique name (add anchor tag and create name for anchor tag from the
word plus an incremental three digit number).
Save file

Create and index for word with link to anchor in a new file
	 Append to or create what file? (Input filename) Remember old
filename and search word.
Create a list with a link to each anchor on the page for the search
word in a format as follows:
	 searchword: 001, 002, 003, ...
or
	 searchword (001, 002, 003, ...)

Thanks for your help.
Andy

#5641 From: "Piotr Bienkowski" <syntax@...>
Date: Sat Feb 3, 2001 1:28 pm
Subject: RE: [Clip] Need to extract surnames; The DOM vs reg exp
syntax@...
Send Email Send Email
 
On 2 Feb 2001, at 10:22, Grant wrote:

> No it can't, but using reg exp to extract a tables first col surnames
> in an html doc is like using a chainsaw to cut butter. In comparison
> it took me about 5 minutes to write that dom script to extract the
> tables first collum data because it's the right tool for this job.

Righto! Chisels are not for fixing tractors. :)

Piotr

#5642 From: Luuk.Houwen@...
Date: Sun Feb 4, 2001 9:04 pm
Subject: SGML converter
Luuk.Houwen@...
Send Email Send Email
 
Does anyone know if there is an SGML to HTML and or XML converter about that
can be used from within NoteTab?

Luuk Houwen

#5643 From: Manuel <manuel123@...>
Date: Sun Feb 4, 2001 10:23 pm
Subject: rename document
manuel123@...
Send Email Send Email
 
Hi, All and Jody.

This is is a question?. Yes, of course! :-)

How can I rename a file that I have open with the same name
but with new characteres append in the name of the file?

Example:
I want to rename the file Jody.txt to Jody010204.txt
I want to rename the file Jody.otl to Jody100204.txt

I want to add the date in format yymmdd at the end of the name the
file that I see in the windows and leave the same extension.

Mi idea is the next, but it's no good. Where it's wrong?

CodificaFile
^!Set %DocName%=^$GetDocName$
^!Toolbar Rename Document
^!Keyboard  RIGHT RIGHT RIGHT RIGHT
^!Keyboard #^$GetDate(yymmdd)$#

---
Manuel
manuel123@...
- Cursos por email:Windows,Navegador,Outlook,Html,Word,Excel,Access
   También para ciegos.
http://manuel123.8m.com

#5644 From: Jody <av1611@...>
Date: Mon Feb 5, 2001 8:02 pm
Subject: RE: [Clip] Need to extract surnames; The DOM vs reg exp
av1611@...
Send Email Send Email
 
Hi Piotr,

>Wonded why my message popped up with a few days' delay... :(

It appears a few of them just got spit out.

> > If you want to take a look posted a DOM way to do this on the
> > Notetab html list.  subj: Extracting table data with the DOM
> > Have heard 'reg exp' losing favour because of the power of the
> > DOM.

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5645 From: Jody <av1611@...>
Date: Mon Feb 5, 2001 8:08 pm
Subject: Re: [Clip] SGML converter
av1611@...
Send Email Send Email
 
Hi Luuk,

>Does anyone know if there is an SGML to HTML and or XML converter
>about that can be used from within NoteTab?

You can do XHTML.  See Options | HTML Files at the bottom.  That
effects the way the HTML features and Clipbooks work.

Also see the HTML features under the Modify main menu.

I just finished a script last might that will convert a whole
directory to lower or upper case or XHTML with a click and
choosing your options.  It will save to a new location so you
have a backup or you can put in the same folder for the save in
as the ones to be converted and it will overwrite those files.
I'll put it up on Snatch-A-Clip later today since it has some
long lines in it.

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5646 From: Jody <av1611@...>
Date: Mon Feb 5, 2001 8:21 pm
Subject: Re: [Clip] rename document
av1611@...
Send Email Send Email
 
Hi Manuel,

>How can I rename a file that I have open with the same name
>but with new characteres append in the name of the file?

:)

>Mi idea is the next, but it's no good. Where it's wrong?
>
>CodificaFile
>^!Set %DocName%=^$GetFileName(^#)$
>^!Toolbar Rename Document
>^!Keyboard  RIGHT RIGHT RIGHT RIGHT
>^!Keyboard #^$GetDate(yymmdd)$#

I changed your ^$GetDocName$ which returns the whole path to
what it is now.  It now returns only the filename without the
extention.  You want to add some more code to the keyboard line.

^!Keyboard #^%DocName%^$GetDate(yymmdd)$^$GetExt(^##)$#

You might look into ^!RenameFile.  You would get the information
you need, close the open file, Renamefile, and then open it (all
from a Clip of course.  It is better to stay away from keyboard
macros when you can do it using straight scripting code not
having to bring up windows that require input.

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5647 From: Elizabeth Wild <ewild@...>
Date: Mon Feb 5, 2001 9:41 pm
Subject: Re:[Clip] rename document
ewild@...
Send Email Send Email
 
Manuel,

I approached your problem slightly different angle than Jody.  I used the Save
AS and then Destroy, because I couldn't get the Rename command to work for me.
This clip does work.  I tried to put in enough comments to explain what I was
doing/thinking.

Hope this helps
Elizabeth Wild
ewild@...

The Clip.......

^!Set %DocName%=^$GetDocName$

;Total size of name string
^!Set %Size%=^$StrSize("^%DocName%")$

;Finds the position of the period and trims the blank spaces
^!Set %ExtPos%=^$StrPosRight(".";"^%DocName%";False)$
^!Set %ExtPos%=^$StrTrim(^%ExtPos%)$

;Finds the size of the extension, helpful if you might have htm & html files.
^!Set %ExtSize%=^$Calc(^%Size%-^%ExtPos%)$

;Copies extension
^!Set %ExtType%=^$StrCopy("^%DocName%";^$Calc(^%ExtPos%+1)$;^%ExtSize%)$

;Copies Name
^!Set %Name%=^$StrCopyLeft("^%DocName%";^$Calc(^%ExtPos%-1)$)$

;Renames the document
^!Save AS ^%Name%^$GetDate(yymmdd)$.^%ExtType%

;Optional if you want to destroy the old document.  Rather than keep two copies.
^!DestroyDoc ^%DocName%

#5648 From: Jody <av1611@...>
Date: Mon Feb 5, 2001 10:20 pm
Subject: Re:[Clip] rename document
av1611@...
Send Email Send Email
 
Hi Elizabeth,

>I approached your problem slightly different angle than Jody.  I
>used the Save AS and then Destroy, because I couldn't get the
>Rename command to work for me.

Don't you think or can't you get something like this to work with
the rest of the code?

^!Set %Current%=^##
^!Close ^%Current%
^!RenameFile "^%Current%" "^%Name%^$GetDate(yymmdd)$.^%ExtType%"
; ^!Delay 1 if needed
^!Open "^%Name%^$GetDate(yymmdd)$.^%ExtType%"

Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5649 From: Elizabeth Wild <ewild@...>
Date: Mon Feb 5, 2001 10:28 pm
Subject: Re:[Clip] rename document
ewild@...
Send Email Send Email
 
Jody,

I was reasonably sure that the problem was that I was trying to Rename without
closing the file.  However, my brain was to tired to explore that possibility. 
I also did
the with the Save AS, because if I (personally) would use dates in file names
when I wanted to be able to track/save changes.  I would then just need to
eliminate
the Destroy line.

Elizabeth

Original message from: Jody
>Hi Elizabeth,
>
>>I approached your problem slightly different angle than Jody.  I
>>used the Save AS and then Destroy, because I couldn't get the
>>Rename command to work for me.
>
>Don't you think or can't you get something like this to work with
>the rest of the code?
>
>^!Set %Current%=^##
>^!Close ^%Current%
>^!RenameFile "^%Current%" "^%Name%^$GetDate(yymmdd)$.^%ExtType%"
>; ^!Delay 1 if needed
>^!Open "^%Name%^$GetDate(yymmdd)$.^%ExtType%"
>
>Happy Clip'n!
>Jody
>

#5650 From: Jody <av1611@...>
Date: Mon Feb 5, 2001 11:02 pm
Subject: Re:[Clip] rename document
av1611@...
Send Email Send Email
 
Hi Elizabeth,

OK, I was just wondering.  I normally use Save As myself.  I just
said to use ^!Close because it made more sense to me that way.  I
was not suggesting that it wouldn't work.  I figured if you
renamed the file, the copy in NoteTab would not be in NoteTab.

I was able to rename a file while it was open, but when you close
it then it is not on the reopen list because it does not exist
anymore.

^!Renamefile "^##" "Whatever.txt"

>I was reasonably sure that the problem was that I was trying to
>Rename without closing the file.  However, my brain was to tired
>to explore that possibility.  I also did the with the Save AS,
>because if I (personally) would use dates in file names when I
>wanted to be able to track/save changes.  I would then just need
>to eliminate the Destroy line.


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5651 From: Jody <av1611@...>
Date: Tue Feb 6, 2001 5:21 am
Subject: Re: [Clip] Build an Index
av1611@...
Send Email Send Email
 
Hi Andy,

>I've read enough to figure out what Clips can do, but not how.
>Perhaps someone can help design a clip for me?

What you want to do can be done.  Can you write any Clips at all?
It would take a bit of time to do what you want and I am not
quite sure if I have the time for it now.  I can tell you what
commands and functions I would use in the steps to do it if you
think you or somebody else (Hi Alan C.:) could take it from there.

>Open a file
>        What file do you want to search through? (Input filename)
>Search the file for a word
>        What word do you want to search for? (Input word)
>At every occurence of the word at an anchor tag, identified by a
>unique name (add anchor tag and create name for anchor tag from the
>word plus an incremental three digit number).
>Save file
>
>Create and index for word with link to anchor in a new file
>        Append to or create what file? (Input filename) Remember old
>filename and search word.
>Create a list with a link to each anchor on the page for the search
>word in a format as follows:
>        searchword: 001, 002, 003, ...
>or
>        searchword (001, 002, 003, ...)


Happy Clip'n!
Jody

http://www.notetab.net

Subscribe, UnSubscribe, Options
mailto:Ntb-Clips-Subscribe@yahoogroups.com
mailto:Ntb-Clips-UnSubscribe@yahoogroups.com
http://www.egroups.com/group/ntb-clips

#5652 From: "Alan C." <acummings@...>
Date: Tue Feb 6, 2001 7:17 am
Subject: Re: [Clip] Build an Index
acummings@...
Send Email Send Email
 
Hi Jody, Andy,

> design a clip for me? I could use a clip that would create a
> subject/word index for html pages. Maybe a search engine would be
> easier, but these HTML files are going to go into e-books, pdf, and

I'm interested try out my skills on it.  But just a bit busy lately.  Give
me some time, however long.  Several days probably iffy.  But a week perhaps
up to two.  Some time for it to evolve and pull together.

Well, Andy, I gather so far that the clip would need to

1. make that HTML index page.

but I also gather that the clip would

2. work with other html files by making anchors at the found words, found
from doing a search (^!Find)

and that the clip would also

3.  coordinate the index page's links with the links/anchors that exist on
the other pages

So, (for comparison purpose only), that the result of those three steps
above would be perhaps similar to a small web site.  Or it would be similar
to a help reference that comes with some software, the kind of help
reference that is all accomplished through the use of HTML.  An example
comes to mind, the help file that comes with Perl from www.activestate.com;
it is written entirely in html.

But the key difference would be that your index links to the other pages
with the ^!Find (words that were found) and their named and sequentially
numbered anchors on the outlying pages since yours is intended to be neither
a help file nor a web site. If I had a name for yours, it sounds like yours
be called a keyword search or reference system with an index that uses html
as the means to accomplish its end result.

Thanks.  Regards.  Alan.

#5653 From: Luuk.Houwen@...
Date: Mon Feb 5, 2001 9:42 pm
Subject: Counter
Luuk.Houwen@...
Send Email Send Email
 
I would like to count the number of times my program gies through a loop. I
tried the following line within the loop, but it does not work. Any ideas
about improving it?

^!Set %Counter%=^$Calc(x=x+1)$

Luuk

#5654 From: Luuk.Houwen@...
Date: Mon Feb 5, 2001 9:36 pm
Subject: RE: [Clip] SGML converter
Luuk.Houwen@...
Send Email Send Email
 
Jody,

Perhaps I do not understand you, but does your routine convert from SGML to
XHTML, because that is precisely what I need. I have just been sent over 40
Mb of texts all in sgml (TEI 2.0) and browsers have all but disappeared from
the web (I tried for several days to locate one, all gone).

Luuk

#5655 From: Luuk.Houwen@...
Date: Mon Feb 5, 2001 10:35 pm
Subject: Lack of list speed
Luuk.Houwen@...
Send Email Send Email
 
bout an hour ago (22.30 GMT+1) I sent to mails to this group, none have so
far gone through. What is up?

Luuk

Messages 5626 - 5655 of 23810   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