Index » PageStream Support » General » Problem creating a script
Sign in to add a comment. Pages: 1
2000-06-14 11:42:23 CT #1
Jack York
From: Unknown
Registered: 2000-05-24
Posts: 61

Hello,

I am trying to record a script and I can't get it to work. I
start Pgs 4.07, choose start recording, open a template
and choose stop recording. I check off display in menu
and click ok. Then when I play the script nothing apparent
happens. SnoopDos does show that the template file was
opened but the Pgs screen remains as it does at startup.
Should this work as I have explained or am I missing
something?

Jack


2000-06-14 09:38:40 CT #2
Geoffrey Gass
From: Unknown
Registered: 2000-05-04
Posts: 373

On 14-Jun-00, Jack York wrote:

>I am trying to record a script and I can't get it to work. I
>start Pgs 4.07, choose start recording, open a template
>and choose stop recording. I check off display in menu
>and click ok. Then when I play the script nothing apparent
>happens.

When recording a series of moves, the ordinary way of running a
script just by selecting it from the Scripts menu doesn't work.
You have to select that topmost item in the Scripts menu,
/Play External Script/. A new requester will open showing the
arexx scripts. Select /OpenTemplate.rexx/, and the action will
be properly recorded.

When your recording is finished and you've assigned a name to your
new script (and a shortcut, if desired) and flagged it for
inclusion in the menu, it should do what you want.

If not, you can hand-modify the script by opening the script
palette, finding your script, and clicking on that right-pointing
triangle in the upper right corner of the palette. This will
give you a pop-out menu including an /Edit/ selection, allowing you
to make any needed changes in the script.

--Geoff


--
ggass@teleport.com Geoffrey A. Gass Foulecourt Press
Also at this address: T. Bain Stokes Fignewton Frogberry


2000-06-15 07:56:11 CT #3
Jack York
From: Unknown
Registered: 2000-05-24
Posts: 61

Hello Geoffrey

On 14-Jun-00, Geoffrey Gass wrote:
> On 14-Jun-00, Jack York wrote:
>
>> I am trying to record a script and I can't get it to work. I
>> start Pgs 4.07, choose start recording, open a template
>> and choose stop recording. I check off display in menu
>> and click ok. Then when I play the script nothing apparent
>> happens.
>
> When recording a series of moves, the ordinary way of running a
> script just by selecting it from the Scripts menu doesn't work.
> You have to select that topmost item in the Scripts menu,
> /Play External Script/. A new requester will open showing the
> arexx scripts. Select /OpenTemplate.rexx/, and the action will
> be properly recorded.

You lost me here Geoff. Are you saying to start recording,
Select Play External Script and the Select Open template.rexx?
If so, that just brings up the requester for the built in templates. I
may have mislead by saying I was opening a template in my original
post. I am trying to open a template I had created and saved. It has
a different format than the templates that are displayed with Open
Template.rexx.

Jack


2000-06-15 10:07:22 CT #4
Geoffrey Gass
From: Unknown
Registered: 2000-05-04
Posts: 373

On 15-Jun-00, Jack York wrote:

>> When recording a series of moves, the ordinary way of running a
>> script just by selecting it from the Scripts menu doesn't work.
>> You have to select that topmost item in the Scripts menu,
>> /Play External Script/. A new requester will open showing the
>> arexx scripts. Select /OpenTemplate.rexx/, and the action will
>> be properly recorded.

>You lost me here Geoff. Are you saying to start recording,
>Select Play External Script and the Select Open template.rexx?

Nonono. To record a series of moves, you have to select
/Start Recording/. But if one of the moves is to run a script,
it can't be invoked just by clicking on it -- you have to go to
Play External Script.

But evidently you did not want to select one of the preset templates
accessible via the /Open Templates/ script, but simply open your own
template.

I recorded the opening of a clip-art catalog template, and the
resulting script looked like this:

OPEN DOCUMENT
RETAINFORMAT TRUE
FILE Documents/Templates/SuperClipArtDummy.template
FILTER IFFCTXT
STATUS
OPENWINDOW "View 1" Page 1
SETTOOLMODE MAGNIFY
DISPLAY OFFSET -0.843i -0.8821i
SCALE 87.6%

The first time I tried to run the script, it did nothing. The command
RETAINFORMAT TRUE had been repeated about a dozen times. I deleted
all but one of them, and moved some of the commands onto separate
lines (as above), and the script played OK. However, it did /not/
open the specific template called out above -- it just opened the
templates directory, and I had to make the selection manually.
Thereafter, the magnification and positioning all occurred just as
originally performed.

So under some circumstances it takes some editing to make these
automatically-created scripts work -- but at least it is possible.

--Geoff

--
ggass@teleport.com Geoffrey A. Gass Foulecourt Press


2000-06-15 14:23:07 CT #5
Jack York
From: Unknown
Registered: 2000-05-24
Posts: 61

Hello Geoffrey

On 15-Jun-00, Geoffrey Gass wrote:
>> You lost me here Geoff. Are you saying to start recording,
>> Select Play External Script and the Select Open template.rexx?

> The first time I tried to run the script, it did nothing. The command
> RETAINFORMAT TRUE had been repeated about a dozen times. I deleted
> all but one of them, and moved some of the commands onto separate
> lines (as above), and the script played OK. However, it did /not/
> open the specific template called out above -- it just opened the
> templates directory, and I had to make the selection manually.
> Thereafter, the magnification and positioning all occurred just as
> originally performed.

Great. Thanks once again for your help Geoff. By making the above
edits it worked. Actually, I would prefer it ask which template is to be
loaded so that "option" worked in my favor. Smile

Now, after the template is loaded I want it to insert some text, alter the
font type and size and change the paragraph indenting setting. When I
was recording, I selected a specific file to insert. When ran that way
it works ok. I then edited the script and removed the file name from
the FILE command in the hopes that it would bring up a requester so
that I could select which file to load. But, instead, it just skips loading
the file altogether. All of the attributes are changed though. Is there
a way to have the script halt so that I can select which file to load?

It may help to explain what I am trying to do here. I have set up several
templates for different styles of address labels. And I have also set up
a directory containing a bunch of ascii files of different addresses. I
would like to be able to run a script which will allow me to select which
template to use, which file to load into that template and then set
certain text attributes. With your help my script now does the first
and the last. Is it possible to do the middle one?

Jack


Sign in to add a comment. Pages: 1
Index » PageStream Support » General » Problem creating a script

This topic is closed due to inactivity.