16445Re: [peditors] Newbie pScript question
- Feb 1, 2002At 12:57 +0000 1/2/02, Steven Hill wrote:
>You need a script that copies the number, goes into scriptPad andReplying to my own messages again...
>finds and then pastes into the /&varSet function. Finally you need
>to launch the script that contains the /&varSet function and
>increment it the variable before printing it. Obviously you need an
>unique identifier in the script to allow you to find the /&varSet
>function, something like:
>/&varSet [$0, xxxx]/*PASTEHERE*/
>then you can find 'PASTEHERE', move the cursor back and then select
>word. Note that the starting script needs to be *after* the second
>script in scriptPad or it just finds the instruction for typing
This is a pScript that works as described above.
/&varSet [$0, xxx]/*PASTEHERE*/
/&varAdd [$0, 1]
/&varSet [$0, 0]
Select any number, and run the newIDno script. If the selection isn't
a number it is over written with some garbage so beware. If the
number has leading zeros or spaces it will work, but the result
doesn't have leading zeros or spaces...
- << Previous post in topic Next post in topic >>