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 206 - 235 of 23891   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#206 From: wayne@... (Wayne VanWeerthuizen)
Date: Thu Apr 1, 1999 8:23 am
Subject: [Clip] Re: Easy Hyperlink Forward & Back
wayne@...
Send Email Send Email
 
Kay Roath <notetab@...> wrote:

>If you use this clip to go to a hyperlink, the same clip
>will take you back as long as your cursor isn't on a new
>hyperlink.

This minor improvement allows you to backup multiple steps.


H=wmv_Fwd_Back
;   requires 4.60  GrandmaK, WayneMV
^!Select HYPERLINK
^!IfError Back
; long line - watch for word wrap
^!SetArray %bk%=^$GetDocIndex$;^$GetTopicIndex$;^$GetRow$;^$GetCol$
; end long line
^!Inc %p_StackSize%
^!Set %Stack^%p_StackSize%%=^%bk%
^!Toolbar Open Document Link
^!Goto Done

:Back
^!If ^%p_StackSize% < 1 Done
^!SetArray %bk%="^%Stack^%p_StackSize%%"
^!ClearVariable %Stack^%p_StackSize%%
^!Dec %p_StackSize%

^!SetDocIndex ^%bk1%
^!SetTopicIndex ^%bk2%
^!SetCursor ^%bk3%:^%bk4%

:Done
^!FocusDoc




Known Issues:

  1.  Going forward a lot, without going back, could create
      a lot of variables and waste memory.

  2.  You have to move the cursor away from the link to
      backup multiple steps.  This could be solved by
      making the "Back" portion its own clip.

  3.  Doesn't have a "Forward" button - but one could
      easily be added.

  4.  Only works if links are navigated by using the
      clip.  Ctrl-clicking a link doesn't remember it.


--
Wayne M. VanWeerthuizen
ICQ: 15117288
Homepage: http:/landru.myhome.net/wayne


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#207 From: Erno Mijland <p.j.j.mijland@...>
Date: Thu Apr 1, 1999 9:59 am
Subject: [Clip] Double input ...
p.j.j.mijland@...
Send Email Send Email
 
Tabbers,

What would be the easiest way to place one input on two places:

<SELECT NAME="^?[Title]">
<OPTION VALUE="Nothing chosen">^?[Title]

The second ^?[Title] should be an exact copy of what was put in in the first
^?[Title]. I am sure there must be a way to do this.

Bye,
Erno Mijland
===================
Nu ook op ICQ #33823182


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#208 From: Kay Roath <notetab@...>
Date: Thu Apr 1, 1999 9:00 am
Subject: [Clip] Re: ^!Refresh and file attributes
notetab@...
Send Email Send Email
 
3/31/1999 8:45 PM Aaron wrote

> Howdy all -

> I'm trying to write a clip that changes the file attributes of the current
> file.  It's pretty self explanatory but doesn't quite work they way I want:

> ^!attrib +r ^$GetDocName$
> ^!WAIT
> ^!Refresh

Refresh updates your Library list.  Try
^!ToolBar Reload Document

--- Grandma Kay ---
Introduction to NoteTab Clip Programming
    http://notetab.kay.net



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#209 From: Kay Roath <notetab@...>
Date: Thu Apr 1, 1999 12:11 pm
Subject: [Clip] Re: Double input ...
notetab@...
Send Email Send Email
 
4/1/1999 3:59 AM Erno Mijland wrote

> What would be the easiest way to place one input on two places:
> <SELECT NAME="^?[Title]">
> <OPTION VALUE="Nothing chosen">^?[Title]
> The second ^?[Title] should be an exact copy of what was
> put in in the first ^?[Title].
> I am sure there must be a way to do this.

Just the way you have it :)
From Clip Basics in the Help file:
A Clip can have as many prompts in it as you like. If you
repeat a prompt within the same Clip, the initial answer
entered by the user is inserted in its place (the dialog box
is not displayed again). In the following example, the user
will only be prompted once:

Dear ^?[First Name=Lisa|Bill|Jane|Ted],
How are you ^?[First Name]?

--- Grandma Kay ---
Introduction to NoteTab Clip Programming
    http://notetab.kay.net



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#210 From: nisi@... (Nicole Simon)
Date: Thu Apr 1, 1999 10:08 am
Subject: [Clip] Re: Double input ...
nisi@...
Send Email Send Email
 
Erno Mijland wrote:
> The second ^?[Title] should be an exact copy of what was put in in the first
> ^?[Title]. I am sure there must be a way to do this.

Hm, seems as if you never tested your code. This does exactly what you
want.

Nicole
--
    Thousands of years ago the Egyptians worshipped cats
    as gods. Cats have never forgotten this.
    David Wren-Hardin [bdh4 at quads uchicago edu]

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#211 From: Erno Mijland <p.j.j.mijland@...>
Date: Thu Apr 1, 1999 2:32 pm
Subject: [Clip] Re: Double input ...
p.j.j.mijland@...
Send Email Send Email
 
Kay,

At 06:11 1-04-99 -0600, you wrote:
>Just the way you have it :)

Wow, sometimes life is so much easier than you think it is.

Thanks,
Bye,
Erno
===================
Nu ook op ICQ #33823182


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#212 From: Jon Tams <jon@...>
Date: Thu Apr 1, 1999 3:38 pm
Subject: [Clip] Replace NewLines
jon@...
Send Email Send Email
 
Hi all,

I know this should be simple, but I am still a rookie!
I am trying to write a clip that will replace all -newlines- in selected
text with something else (such as a comma).

Example:
a
b
c
d
would turn into:
a,b,c,d

I have been playing with ^$StrReplace("^%NL%";",";"^&";False;False)$
It doesn't seem to recognize the newlines. Also during testing I found
that
^$StrReplace("a";"b";"^&";False;False)$ will work fine on a single line,
but if I select multiple lines I always get a syntax error. I assume it
has something to do with the newline characters.

Any ideas??

Jon


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#213 From: Jody <KJB1611@...>
Date: Thu Apr 1, 1999 4:02 pm
Subject: [Clip] Re: Replace NewLines
KJB1611@...
Send Email Send Email
 
Hi Jon,

>a
>b
>c
>d
>would turn into:
>a,b,c,d
>
>I have been playing with ^$StrReplace("^%NL%";",";"^&";False;False)$
>It doesn't seem to recognize the newlines.

This works fine for me with the text given above:

^!Select All
^$StrReplace("^%nl%";",";"^$GetSelection$";False;False)$

You can also use:

^!Replace "^p" >> "," WAS


>^$StrReplace("a";"b";"^&";False;False)$ will work fine on a single line,
>but if I select multiple lines I always get a syntax error.

Use it without the ^& changing it for ^$GetSelection$ instead.

^$StrReplace("^%NL%";",";"^&";False;False)$
^$StrReplace("^%nl%";",";"^$GetSelection$";False;False)$

Happy NoteTabbin',
Jody Adair

The NoteTabbers Assistant Page
http://www.sureword.com/notetab/
NoteTab Home Page - Go Pro......
http://www.notetab.com

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#214 From: "Dennis Cummins" <sqd@...>
Date: Thu Apr 1, 1999 7:06 pm
Subject: [Clip] Re: Easy Hyperlink Forward & Back
sqd@...
Send Email Send Email
 
Hi Wayne and All,

This works pretty good.  I do not like having to have the clipbook and
outline window open at the same time however.  I think it would be really
great to just have a forward/back button we could put on the toolbar or
have it on the right click menu when navigating through these very large
outlines.

Dennis


On 1 Apr 99, 8:23 Wayne VanWeerthuizen wrote:

> Kay Roath <notetab@...> wrote:
>
> >If you use this clip to go to a hyperlink, the same clip
> >will take you back as long as your cursor isn't on a new
> >hyperlink.
>
> This minor improvement allows you to backup multiple steps.
>
>
> H=wmv_Fwd_Back
> ;   requires 4.60  GrandmaK, WayneMV
> ^!Select HYPERLINK
> ^!IfError Back
> ; long line - watch for word wrap
> ^!SetArray %bk%=^$GetDocIndex$;^$GetTopicIndex$;^$GetRow$;^$GetCol$
> ; end long line
> ^!Inc %p_StackSize%
> ^!Set %Stack^%p_StackSize%%=^%bk%
> ^!Toolbar Open Document Link
> ^!Goto Done
>
> :Back
> ^!If ^%p_StackSize% < 1 Done
> ^!SetArray %bk%="^%Stack^%p_StackSize%%"
> ^!ClearVariable %Stack^%p_StackSize%%
> ^!Dec %p_StackSize%
>
> ^!SetDocIndex ^%bk1%
> ^!SetTopicIndex ^%bk2%
> ^!SetCursor ^%bk3%:^%bk4%
>
> :Done
> ^!FocusDoc
>
>
>
>
> Known Issues:
>
>  1.  Going forward a lot, without going back, could create
>      a lot of variables and waste memory.
>
>  2.  You have to move the cursor away from the link to
>      backup multiple steps.  This could be solved by
>      making the "Back" portion its own clip.
>
>  3.  Doesn't have a "Forward" button - but one could
>      easily be added.
>
>  4.  Only works if links are navigated by using the
>      clip.  Ctrl-clicking a link doesn't remember it.
>
>
> --
> Wayne M. VanWeerthuizen
> ICQ: 15117288
> Homepage: http:/landru.myhome.net/wayne
>
>
> ------------------------------------------------------------------------
> eGroups Spotlight: "Kosovo-Reports" - Direct reports from
> Kosovo/Serbia/Yugoslavia. http://offers.egroups.com/click/252/0
>
> eGroup home: http://www.eGroups.com/list/ntb-clips
> Free Web-based e-mail groups by eGroups.com
>
>
>



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#215 From: "Dennis Cummins" <sqd@...>
Date: Thu Apr 1, 1999 7:40 pm
Subject: [Clip] Monitor Cover
sqd@...
Send Email Send Email
 
A new monitor cover.  I got two of them.

http://www.zdnet.com/products/stories/reviews/0,4161,2234787,00.html

Dennis


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#216 From: "Lawrence R. Thomas" <larryt@...>
Date: Thu Apr 1, 1999 7:47 pm
Subject: [Clip] Re: Easy Hyperlink Forward & Back
larryt@...
Send Email Send Email
 
Hi Dennis,

At 01:06 PM 4/1/1999 -0600, you wrote:
>Hi Wayne and All,
>
>This works pretty good.  I do not like having to have the clipbook and
>outline window open at the same time however.  I think it would be really
>great to just have a forward/back button we could put on the toolbar or
>have it on the right click menu when navigating through these very large
>outlines.

I would prefer having 5 to 10 assignable toolbar buttons that we could
click to run specific clips that are used on a regular basis without
opening the clipbook or using the In-Context menu to launch the clips.

Regards,

Larry
larryt@...

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#217 From: "Dennis Cummins" <sqd@...>
Date: Thu Apr 1, 1999 7:50 pm
Subject: [Clip] Re: Easy Hyperlink Forward & Back
sqd@...
Send Email Send Email
 
Hi Larry,


On 1 Apr 99, 13:47 Lawrence R. Thomas wrote:

> I would prefer having 5 to 10 assignable toolbar buttons that we could
> click to run specific clips that are used on a regular basis without
> opening the clipbook or using the In-Context menu to launch the clips.
>
> Regards,

Yep that would be nice also.<G>

Dennis


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#218 From: "Norma Armstrong" <narmstr@...>
Date: Thu Apr 1, 1999 9:00 pm
Subject: [Clip] Using ^$GetFileFirst
narmstr@...
Send Email Send Email
 
How can I use ^$GetFileFirst to return a list of files and insert them in an
array
so I can process multiple files? I'm kind of confused on how to go about
that. I see there's a ^GetFileNext$. Basically I'm working on a clip to
convert IE Favorites to an html file. I got everything but the actual loop
to do the work. Any ideas?
		 Thanks!
                      Norma


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#219 From: "Norma Armstrong" <narmstr@...>
Date: Thu Apr 1, 1999 9:00 pm
Subject: [Clip] Re: Monitor Cover
narmstr@...
Send Email Send Email
 
LOL! I got a few myself...
         Norma

> -----Original Message-----
> From: Dennis Cummins [mailto:sqd@...]
> Sent: Thursday, April 01, 1999 11:41 AM
> To: ntb-clips@egroups.com
> Subject: [Clip] Monitor Cover
>
>
>
>
>
>
> A new monitor cover.  I got two of them.
>
> http://www.zdnet.com/products/stories/reviews/0,4161,2234787,00.html
>
> Dennis
>
>
> ------------------------------------------------------------------------
> shop.theglobe.com * One Stop Shopping * Free Shipping in the U.S.!
> Live Personal Shopper * Satisfaction Guaranteed * No Hassle Returns!
> Accessories, Apparel, Gourmet, Jewelry, Kids, Outdoors, Sports, More!
> http://clickhere.egroups.com/click/7
>
> eGroup home: http://www.eGroups.com/list/ntb-clips
> Free Web-based e-mail groups by eGroups.com
>
>
>

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#220 From: "Dennis Cummins" <sqd@...>
Date: Thu Apr 1, 1999 9:20 pm
Subject: [Clip] Re: Monitor Cover
sqd@...
Send Email Send Email
 
Did you try to download any of the software?

Dennis


On 1 Apr 99, 13:00 Norma Armstrong wrote:

> LOL! I got a few myself...
>         Norma
>
> > -----Original Message-----
> > From: Dennis Cummins [mailto:sqd@...]
> > Sent: Thursday, April 01, 1999 11:41 AM
> > To: ntb-clips@egroups.com
> > Subject: [Clip] Monitor Cover
> >
> >
> >
> >
> >
> >
> > A new monitor cover.  I got two of them.
> >
> > http://www.zdnet.com/products/stories/reviews/0,4161,2234787,00.html
> >
> > Dennis
> >
> >
> > ------------------------------------------------------------------------
> > shop.theglobe.com * One Stop Shopping * Free Shipping in the U.S.!
> > Live Personal Shopper * Satisfaction Guaranteed * No Hassle Returns!
> > Accessories, Apparel, Gourmet, Jewelry, Kids, Outdoors, Sports, More!
> > http://clickhere.egroups.com/click/7
> >
> > eGroup home: http://www.eGroups.com/list/ntb-clips
> > Free Web-based e-mail groups by eGroups.com
> >
> >
> >
>
> ------------------------------------------------------------------------
> eGroups Spotlight: "Kosovo-Reports" - Direct reports from
> Kosovo/Serbia/Yugoslavia. http://clickhere.egroups.com/click/5
>
> eGroup home: http://www.eGroups.com/list/ntb-clips
> Free Web-based e-mail groups by eGroups.com
>
>
>



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#221 From: "Norma Armstrong" <narmstr@...>
Date: Thu Apr 1, 1999 9:27 pm
Subject: [Clip] Re: Monitor Cover
narmstr@...
Send Email Send Email
 
Yeah I love the buttons :)
           Norma

> -----Original Message-----
> From: Dennis Cummins [mailto:sqd@...]
> Sent: Thursday, April 01, 1999 1:20 PM
> To: ntb-clips@egroups.com
> Subject: [Clip] Re: Monitor Cover
>
>
> Did you try to download any of the software?
>
> Dennis
>
>
> On 1 Apr 99, 13:00 Norma Armstrong wrote:
>
> > LOL! I got a few myself...
> >         Norma
> >
> > > -----Original Message-----
> > > From: Dennis Cummins [mailto:sqd@...]
> > > Sent: Thursday, April 01, 1999 11:41 AM
> > > To: ntb-clips@egroups.com
> > > Subject: [Clip] Monitor Cover
> > >
> > >
> > >
> > >
> > >
> > >
> > > A new monitor cover.  I got two of them.
> > >
> > > http://www.zdnet.com/products/stories/reviews/0,4161,2234787,00.html
> > >
> > > Dennis
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > shop.theglobe.com * One Stop Shopping * Free Shipping in the U.S.!
> > > Live Personal Shopper * Satisfaction Guaranteed * No Hassle
> Returns!
> > > Accessories, Apparel, Gourmet, Jewelry, Kids, Outdoors, Sports, More!
> > > http://clickhere.egroups.com/click/7
> > >
> > > eGroup home: http://www.eGroups.com/list/ntb-clips
> > > Free Web-based e-mail groups by eGroups.com
> > >
> > >
> > >
> >
> > ------------------------------------------------------------------------
> > eGroups Spotlight: "Kosovo-Reports" - Direct reports from
> > Kosovo/Serbia/Yugoslavia. http://clickhere.egroups.com/click/5
> >
> > eGroup home: http://www.eGroups.com/list/ntb-clips
> > Free Web-based e-mail groups by eGroups.com
> >
> >
> >
>
>
>
> ------------------------------------------------------------------------
> shop.theglobe.com * One Stop Shopping * Free Shipping in the U.S.!
> Live Personal Shopper * Satisfaction Guaranteed * No Hassle Returns!
> Accessories, Apparel, Gourmet, Jewelry, Kids, Outdoors, Sports, More!
> http://clickhere.egroups.com/click/7
>
> eGroup home: http://www.eGroups.com/list/ntb-clips
> Free Web-based e-mail groups by eGroups.com
>
>
>


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#222 From: nisi@... (Nicole Simon)
Date: Thu Apr 1, 1999 9:35 pm
Subject: [Clip] Re: Monitor Cover
nisi@...
Send Email Send Email
 
Norma and Dennis,
a) please take this to privat mail
b) cut down your qoutes :(

Nicole
--
    Thousands of years ago the Egyptians worshipped cats
    as gods. Cats have never forgotten this.
    David Wren-Hardin [bdh4 at quads uchicago edu]

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#223 From: Jody <KJB1611@...>
Date: Thu Apr 1, 1999 9:37 pm
Subject: [Clip] Re: Using ^$GetFileFirst
KJB1611@...
Send Email Send Email
 
Hi Norma,

>How can I use ^$GetFileFirst to return a list of files and
>insert them in an array so I can process multiple files?

Look in Eric's SampleCode or Utilities for the one that makes
the image html page.

Also, get my NPM - there is one already done for NS and IE, but
the IE requires a small freeware app.  Link in the clips.

C ya,
Jody

http://www.sureword.com/sojourner
http://www.sureword.com/notetab

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#224 From: wayne@... (Wayne VanWeerthuizen)
Date: Thu Apr 1, 1999 9:45 pm
Subject: [Clip] Re: Using ^$GetFileFirst
wayne@...
Send Email Send Email
 
"Norma Armstrong" <narmstr@...> wrote:

>How can I use ^$GetFileFirst to return a list of files and insert them in an
>array
>so I can process multiple files? I'm kind of confused on how to go about
>that. I see there's a ^GetFileNext$. Basically I'm working on a clip to
>convert IE Favorites to an html file. I got everything but the actual loop
>to do the work. Any ideas?

Something like this:  (It is fairly short. The comments make it longer.)


H="File listing into an Array"

;Clear variable before using ^!Append.
^!ClearVariable %FileList%

;Get first file.
^!Set %ThisFile%=^$GetFileFirst("C:\";"*.*";NAME)$
^!IfTrue ^$IsEmpty(^%ThisFile%)$ Done
^!Append %FileList%=""^%ThisFile%""
;      Outer quotes used by append.
;      Inner quotes put into variable.

;Get remaining files.
:Loop
^!Set %ThisFile%=^$GetFileNext$
^!IfTrue ^$IsEmpty(^%ThisFile%)$ EndLoop
^!Append %FileList%=";"^%ThisFile%""
;      Doubled quotes intentional.
^!Goto Loop
:EndLoop

;At this point we do not HAVE to make the list into
;an array.  This works ok without being an array.
;^!Open ^%FileList%

;Put into an array
^!SetArray %FileArray%=^%FileList%
;    Putting them into an array puts the count
;    of the number of files into ^%FileArray0%
;    The N-th file is in ^%FileArray^%N%%

;Diagnostic Output
^!Info Items=^%FileArray0%^p^p^%FileArray%



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#225 From: "Norma Armstrong" <narmstr@...>
Date: Thu Apr 1, 1999 9:52 pm
Subject: [Clip] Re: Monitor Cover
narmstr@...
Send Email Send Email
 
My apologies. This was done in the spirit of a holiday we have in the US
today (in case anybody reading this doesn't have an April Fool's Day). Sorry
about the quotes though. Normally I try to remember this.

			 Regards,
                      Norma

>
>
> Norma and Dennis,
> a) please take this to privat mail
> b) cut down your qoutes :(
>
> Nicole
> --



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#226 From: "Norma Armstrong" <narmstr@...>
Date: Thu Apr 1, 1999 9:55 pm
Subject: [Clip] Re: Using ^$GetFileFirst
narmstr@...
Send Email Send Email
 
> -----Original Message-----
> From: Wayne VanWeerthuizen [mailto:wayne@...]
> Sent: Thursday, April 01, 1999 1:46 PM
> To: ntb-clips@egroups.com
> Subject: [Clip] Re: Using ^$GetFileFirst
>
>
> "Norma Armstrong" <narmstr@...> wrote:
>
> >How can I use ^$GetFileFirst to return a list of files and
> insert them in an
> >array

>
> Something like this:  (It is fairly short. The comments make it longer.)
>
>
[Clip code snipped to make message shorter]

Thanks for the code. It's well appreciated! To save bandwidth a big thanks
to Jody too! :)
                 Norma


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#227 From: wayne@... (Wayne VanWeerthuizen)
Date: Thu Apr 1, 1999 10:00 pm
Subject: [Clip] Re: Using ^$GetFileFirst
wayne@...
Send Email Send Email
 
wayne@... (Wayne VanWeerthuizen) wrote:

>"Norma Armstrong" <narmstr@...> wrote:
>
>>How can I use ^$GetFileFirst to return a list of files and insert them in an
>>array
>>so I can process multiple files? I'm kind of confused on how to go about
>>that. I see there's a ^GetFileNext$. Basically I'm working on a clip to
>>convert IE Favorites to an html file. I got everything but the actual loop
>>to do the work. Any ideas?
>
>Something like this:  (It is fairly short. The comments make it longer.)
>
>;Get first file.
>^!Set %ThisFile%=^$GetFileFirst("C:\";"*.*";NAME)$
>^!IfTrue ^$IsEmpty(^%ThisFile%)$ Done

Last line here should be:
^!IfTrue ^$IsEmpty(^%ThisFile%)$ EndLoop


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#228 From: Jody <KJB1611@...>
Date: Fri Apr 2, 1999 1:06 am
Subject: [Clip] Re: Using ^$GetFileFirst
KJB1611@...
Send Email Send Email
 
Hi Norma and Eric,

Eric,

Sort order is not working in ^$GetFileFirst(^%Path%;^%Ext%;^%Sort%)$
for Type.  Name is working; I did not check the others. I checked
your Image to HTML out to see what I was doing wrong and it no workie
there either. :(

>How can I use ^$GetFileFirst to return a list of files and
>insert them in an array so I can process multiple files?

Here is another that may give you some ideas.

H=FileList Checkbox
^!ClearVariable %DiskFileList%
^!ClearVariable %Nag%
^!SetHintInfo Getting Filenames...

; One lo...ng line :) Enter your own default path.

^!Set %Path%=^?[(T=D)Directory to search=H:\MySites\Sojourner\];
%Ext%=^?[(H=15)File Types==_All Files^=*.*|Images, Html, Midi, and
Wav^=*.gif;*.jpg;*.*htm*;*.mid;*.wav|Images and Html
Only^=*.gif;*.jpg;*.*htm*|Images Only^=*.gif;*.jpg|Html Only^=*.*htm*|Text
only^=*.txt|Midi Only^=*.mid|Wav Only^=*.wav|Zip Files^=*.zip|MS Word
Documents^=*.doc|Executables^=*.exe]; %Sort%=^?[Method to sort
files=Unsorted|Name|_Type|Date|Size]

^!Set %Full%=^$GetFileFirst(^%Path%;^%Ext%;^%Sort%)$

:Loop1
^!IfTrue ^$IsEmpty(^%Full%)$ CloseFind
^!Set %Name%=^%Full%

; Take out underscore "=_^%Name%" to have boxes unchecked

^!Append %DiskFileList%=_^%Name%|
^!Set %Full%=^$GetFileNext$
^!Goto Loop1

:CloseFind
^!CloseFileFind

; Change any of the below for final ouput, adjust
; ^!Append %DiskFileList%=^%Name%| above accordingly.  Next
; line is without an ^!Array ^!^?{(T=A;H=28)==^%DiskFileList%}
; and the clip would stop here if used.

^!SetArray %FileList%=^?{(T=A;H=28)==^%DiskFileList%}
^!Set %List%=^%FileList0%
^!Set %n%=0

^!SetWizardLabel Opens file with default application
; Long line.
^!Goto ^?{Yeppers, another nag screen==Prompt for each file^=Loop2|_Open
All^=Loop3}

:Loop2
^!Inc %n%
^!If ^%n% > ^%List% End
^!Skip Open ^%FileList^%n%%
^!Goto Loop2
^!^%FileList^%n%%
^!Goto Loop2

:Loop3
^!Inc %n%
^!If ^%n% > ^%List% End
^!^%FileList^%n%%
^!Goto Loop3


C ya,
Jody

http://www.sureword.com/sojourner
http://www.sureword.com/notetab

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#229 From: Jody <KJB1611@...>
Date: Fri Apr 2, 1999 1:15 am
Subject: [Clip] Re: Using ^$GetFileFirst
KJB1611@...
Send Email Send Email
 
Hi Norma and Anybody Reading,

This should have been as below:
>; Change any of the below for final ouput, adjust
>; ^!Append %DiskFileList%=^%Name%| above accordingly.  Next
>; line is without an ^!Array ^!^?{(T=A;H=28)==^%DiskFileList%}
>; and the clip would stop here if used.

; Change any of the below for final ouput, adjust
; ^!Append %DiskFileList%=^%Name%| above accordingly.
; Next line is without an ^!Array
; ^!^?{(T=A;H=28)==^%DiskFileList%}
; and the clip would stop here if used.

C ya,
Jody

http://www.sureword.com/sojourner
http://www.sureword.com/notetab

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#230 From: wayne@... (Wayne VanWeerthuizen)
Date: Fri Apr 2, 1999 1:30 am
Subject: [Clip] Clip Challenge
wayne@...
Send Email Send Email
 
I need a clip that sorts the document tabs by filename, path,
extension, or date.

The problem is that NoteTab does not have a command like

	 ^!MoveDocTab FromIndex ToIndex


I am asking if anyone can find a work around.  Can document
tabs be moved using the ^!KeyBoard command?  There are
several people on this list who are much more familiar
with the possible keyboard shortcuts than I am.

Can anyone find any other workable method for a clip to
rearrange the document tabs?

Oh, I just thought of a method that should work -
closing all open documents, then reopening them in the
desired sequence.  This has a bad side effect of saving
changes - even if the user is not ready to have the
changes saved.

Can anybody solve my challenge, and write a clip for
NoteTab 4.6 that reliably sorts the document tabs, and
has as few side-effects as possible ?????

And Eric, is ^!MoveDocTab on the wishlist?




------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#231 From: wayne@... (Wayne VanWeerthuizen)
Date: Fri Apr 2, 1999 1:35 am
Subject: [Clip] Re: Using ^$GetFileFirst
wayne@...
Send Email Send Email
 
wayne@... (Wayne VanWeerthuizen) wrote:

>H="File listing into an Array"

...lines skipped...

>^!Goto Loop
>:EndLoop

After this point, there really should be a ^!CloseFileFind

Bad of me to have forgotten that.



------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#232 From: Erno Mijland <p.j.j.mijland@...>
Date: Fri Apr 2, 1999 7:06 am
Subject: [Clip] New idea for news-pages
p.j.j.mijland@...
Send Email Send Email
 
Clippers,

I am thinking of another way to make an easy news-pages-generator. It has to
be an easy tool for my colleagues. So I'm thinking of a seperate textfile
with simple codes.

h
t

h
t

etc. (h=head, t=text)

In the textfile you should be able to make as many news-items as you need.
The clip should translate every item into a html-file using the forward-tag
only in the first file, the back-tag in the last and both in the rest.

The textfile should be stored for the next adjustment.

I'm going to try this myself in the weekend, but suggestions are welcome,
especially the basic codes I will need.

Bye,
Erno Mijland
-------------------------------------------------------
Erno Mijland
tekst - internet - creatieve concepten
http://www.dse.nl/~erno
(013) 514 23 90

Lees 'Je van HeT', http://www.het.nl
-------------------------------------------------------


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#233 From: Dennis Partridge <partridge@...>
Date: Fri Apr 2, 1999 8:50 am
Subject: [Clip] Re: Replace NewLines
partridge@...
Send Email Send Email
 
At 07:38 AM 4/1/99 -0800, you wrote:
>Hi all,
>
>I know this should be simple, but I am still a rookie!
>I am trying to write a clip that will replace all -newlines- in selected
>text with something else (such as a comma).
>
>Example:
>a
>b
>c
>d
>would turn into:
>a,b,c,d
>

Hi Jon,

I do this quite often. Here's the code I use:

^!Select All
^$StrReplace("^%NL%";"^%space%";"^$GetText$";True;True)$

Good luck,

Dennis

Dennis N. Partridge
partridge@...

The SurnameWeb
http://www.surnameweb.org/
Co-Founder and Team Leader


The Partridge Nest
http://www.surnameweb.org/centers/p/partridge/
Webmaster

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#234 From: "Lawrence R. Thomas" <larryt@...>
Date: Fri Apr 2, 1999 7:51 pm
Subject: [Clip] Re: Clip Challenge
larryt@...
Send Email Send Email
 
Hi Wayne

At 01:30 AM 4/2/1999 GMT, you wrote:
>
>I need a clip that sorts the document tabs by filename, path,
>extension, or date.
>
>The problem is that NoteTab does not have a command like
>
> ^!MoveDocTab FromIndex ToIndex
>
>
>I am asking if anyone can find a work around.  Can document
>tabs be moved using the ^!KeyBoard command?  There are
>several people on this list who are much more familiar
>with the possible keyboard shortcuts than I am.
>
>Can anyone find any other workable method for a clip to
>rearrange the document tabs?
>
>Oh, I just thought of a method that should work -
>closing all open documents, then reopening them in the
>desired sequence.  This has a bad side effect of saving
>changes - even if the user is not ready to have the
>changes saved.
>
>Can anybody solve my challenge, and write a clip for
>NoteTab 4.6 that reliably sorts the document tabs, and
>has as few side-effects as possible ?????

I have a tendency to get obsessive and not know when to quit sometimes when
I get involved with projects like this and I have other things that I
want/need to be doing today so I will just make some suggestions here and
you can take it from there.

First of all, I think that you are much more qualified to do the arrays and
sorting to get the document names, etc from the index positions and get
them ready to be rearranged so I am going to skip that part.

You are right on as far as I am concerned about closing and reopening
documents to rearrange them.  But there is a way to handle documents that
have been modified but not saved or documents that have been started or
created but not yet saved.

1.  You need to test to see if the file exists.  If it does not, you send
your clip to the following commands.

^!Toolbar Copy All
^!Close Discard
^!Toolbar Paste New

This will move an unsaved new document to the end of the index without
having to save it first.

2.  Then you need to test to see if the file is modified.  If it is, you
send your clip to the following commands.

^!Toolbar Copy All
^!Close Discard
^!Keyboard ALT+F R 1
^!Toolbar Clear All
^!Toolbar Paste

This will move a modified document to the end of the index list without
losing the modifications and without having to save it first.

3.  Finally, if the document exists and is not modified, you just send it
to the following commands.

^!Close
^!Keyboard ALT+F R 1

Which moves it to the end of the index list.

That should take care of the problem.

Regards,

Larry
larryt@...

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

#235 From: "Norma Armstrong" <narmstr@...>
Date: Fri Apr 2, 1999 7:56 pm
Subject: [Clip] Re: Using ^$GetFileFirst
narmstr@...
Send Email Send Email
 
Thanks for the tip I put that in.
                    Norma
>
>
> wayne@... (Wayne VanWeerthuizen) wrote:
>
> >H="File listing into an Array"
>
> ...lines skipped...
>
> >^!Goto Loop
> >:EndLoop
>
> After this point, there really should be a ^!CloseFileFind
>
> Bad of me to have forgotten that.
>
>
>


------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/ntb-clips
Free Web-based e-mail groups by eGroups.com

Messages 206 - 235 of 23891   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