Re: getting rid of multiple consecutive blanks ?

John Markley <[email protected]> Thu, 05 Nov 2009 21:32:23 -0500
Newsgroups gmane.comp.handhelds.palm.peditors
Message-ID <[email protected]>
Quoting Voytek Eymont <[email protected]>:

>
> <quote who="John Markley">
>
>> Also, do you have pToolSet, and if you do is it the same version
>> number as your peditPro?
>
> no:
> peditPro 8.15
> pToolSet 8.14

   There is no peditPro v. 8.15.  The current version is 8.14, as is pToolSet.
Open pedit, do menu/options/about pedit.  It should say 8.14.
>
> (how do you lookup ptoolset version, I've used Palm's 'Info' to look it up ?)

Open pMasterTool (that is the pToolSet "list" via command stroke, and  
with the list open do menu/pMT2/Version info.  That too should say 8.14.


>> And, if you have pToolSet do you know how to use
>> pScriptButtons?
>
> ahem, you gave me a tutorial on it, though, I'm still struggling with it,
> and, can't say I've mastered it
>

OK, you need to learn that as it will simplify using your pScripts.   
Modified tutorial to address pScriptButtons at the end of this post.


>> And, if you were to have a pScript to move memo to DateBk6
>> Note, what
>> would be your sequence of actions?
>
> at a guess, select all/copy, command stroke to get pToolSet and use a tool
> from pop up menu ?

OK.  When you have pScriptButtons working we can do a pScript that  
will simplify memo to note for you.

PScriptButtons -

   This is well explained by Paul in the pToolSet Manual, and I  
suggest that you read that at some point, but here is a quick how to.

1)  Open your pScriptPad, and at the very top write

custBtnPageTotal=2

exactly like that, no spaces.  That will give you two pages of  
pScriptButtons, 20 total, 10 per page.  You can increase the number as  
you like, up to 999.

2)  On the line of the pScriptPad just above your first pScript or  
pScript chain put

custBtn.001.1

so if for example your first item is the chain that starts with  
{ColonDelete::, you would have in your pad

custBtn.001.1
{ColonDelete::
/&runtimeInit[]
/xEpro f
/xEpro T/xEpro W/xEpro R/xEpro r
:
/xEpro f
/&script$[@@CD2@@]}
{CD2::
/&ifAbort@[$&==0]
/&ifScript@[$&!=0,@@ @@]}  and so forth to the end of the chain.

Then, on the line of the pad just above the first script in your next  
chain, whatever that is ( {LFdelet:: , {SPdelete::, whatever), put

custBtn.001.2

Then above the next pScript chain put

custBtn.001.3,

  and so forth, until you have a custBtn.xxx.x label for each of your  
pScripts/chains.  I think you have less than ten.  If you get to  
custBtn001.0, the tenth button in the .001.x series, then you would go  
to custBtn.002.1, etc.

3) Now, close the pScriptPad, open pMasterTool (the command slash  
pToolSet), and tap pScriptButtons.  Voila.  If you tap the item with  
the name of the script that you want, it will run.  You will need this  
to run the upcoming memo-to-DateBk pScript.  *WARNING* - if you use  
pScriptButtons to run one of your pedit memo pScripts and you are not  
in pedit at the time, it may print some nonsense in whatever app you  
are in.  So to begin with you should only try this with a pedit memo  
open in which case it will do the same thing as you have been doing so  
far.  If you like the buttons I can easily slightly modify your pedit  
memo scripts so they will only run if you have pedit open.  My reason  
for bothering you with this seeming complication is that it opens the  
power to use pScripts while in any app for you, and gives you a  
one-stop-shopping index to activate any of your scripts without having  
to remember their names.  Furthermore, if you like it we can program  
your TX/T3 to open the buttons with a screen tap or button press  
without having to go through the command pToolSet list step.


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

Latest pedit/pToolSet/LapTopHack at http://www.osuweb.net/~pc/pca/pc_all.zip
pedit/pToolSet/LapTopHack scripting info/resources at http://www.peditors.com
Peditors Forum http://groups.yahoo.com/group/peditors
Unsubscribe by writing to peditors-unsubscribe-hHKSG33Tihh4sT85+ipIM4ckdKdSAMto@public.gmane.org! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/peditors/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/peditors/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

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