Script Guide
Script Guide
PageMaker 7.0 ®
Script Guide.PDF
© 2001Adobe Systems Incorporated and its licensors. All rights reserved.
PageMaker 7.0 Script Language Guide for Windows and Macintosh
This manual, as well as the software described in it, is furnished under license and may be used or copied only in accordance with the terms of such license. The content of this
manual is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Adobe Systems Incorporated. Adobe Sys-
tems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in this book.
Except as permitted by such license, no part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechan-
ical, recording, or otherwise, without the prior written permission of Adobe Systems Incorporated.
Adobe, the Adobe logo, and Adobe PageMaker are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Apple,
Macintosh, and Mac OS are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. Microsoft, Windows, and Windows NT are registered trademarks of
Microsoft Corporation in the U.S. and/or other countries. All other trademarks are the property of their respective owners.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA
3
See also:
What's in a command or query description
Documentation and language conventions
4
See also:
See also: What is the script language?
Parameter types Script language components defined
ADOBE PAGEMAKER 7.0 5
Introduction to scripting and the script language
What is the script language? If you want to write the same sort of script for a
publication that does not start on page 1, you
In the PageMaker scripting language, a command
can have the Page command calculate the publi-
is a single word that tells PageMaker what to do.
cation’s last page by using an expression in place
For example, your script may tell PageMaker to
of a single value or variable. An expression is a
open a new publication, import and place a
simple algebraic formula such as:
specific story, and style the text. Parameters are
values that control the action of the command. page (NumOfPages + Star tPage - 1)
b boolean Values are: true, on, 1 and false, off , 0. Boolean parameters represent check rulers on
boxes and options that you can turn on and off (such as the display of rul-
ers, guides, or palettes).
c choice Values are keywords or their equivalent integers as indicated in the param- linestyle thindash
eter descriptions (for example, none or 0, center or 2). Choice parameters
represent radio buttons, submenu, or pop-up selections. or
d decimal Values are decimal numbers, generally accepted to one decimal point (for size 13.5
example, 6.2). Decimal values specify point size, leading, page size, and so
forth.
ADOBE PAGEMAKER 7.0 8
Introduction to scripting and the script language
f filename Values are a filename. The filename must appear in quotation marks. For relink "MyDisk:Newslet-
best results, include the full path with the filename. Filenames are used ter:Art:Chart.eps"
with commands that refer to a file (such as, Place, Relink, or Open).
or
Note: For filenames in scripts intended for both the Macintosh and Win-
dows, avoid upper-ASCII characters (character number 128 and up). relink "c:\News-
Although the first 128 characters are identical in the character sets used by ltr\Art\Chart.eps"
Windows and the Macintosh, the upper-ASCII characters are not. This can
cause a problem if the character on one platform maps to a character that
is illegal for filenames on another.
n number Values are integers. Integers are used for page numbers, columns, new new 5
pages, and so forth.
s string Values are text. The text must be in quotation marks (for example, "Blue- font "Zapf Dingbats"
green"). String parameters are used for entering text, page-number pre-
fixes, and variable palette and submenu options, such as fonts, dictionar-
ies, export filters, master pages, styles, and colors.
Note: To include a quotation mark within the text, precede the quotation
mark with a backslash, such as "\"Scripting is fun\" said the script writer."
The quotation mark is the only character that requires special treatment.
Note for scripts intended for both the Macintosh and Windows: While
you can enclose strings in either typographer's (curly) or straight quotation
marks, we recommend that you use straight quotation marks if your script
is to be dual-platform.
x x-coordi- Values are coordinates. You can specify coordinates as either numeric loca- move lefttop, (2p5, 3p5)
nate tions (or offsets) or references to a guide, column edge, or the edge of the
y last object drawn. Coordinates identify a location on the page, an offset, or or
y-coordi- a relative position. (For details, see Coordinates.)
nate move lefttop,(rightpage col-
Note for numeric coordinates: You generally specify numeric coordi- umn 2,left,column top)
nates relative to the zero point. To ensure you know the location of the zero
point, set it with either the ZeroPoint or ZeroPointReset commands. You
specify the coordinates using the current measurement system or by
including the appropriate measurement identifier with the coordinate
(such as 3p6 for 3 picas, 6 points). See Specifying the measurement system.
See also:
Specifying the measurement system
Specifying the measurement system: Individual
parameters
ADOBE PAGEMAKER 7.0 12
Introduction to scripting and the script language
To position the zero point, use the ZeroPoint or Note: Although PageMaker lets you specify a
ZeroPointReset command. separate measurement system for the vertical ruler,
all coordinates and measurements use the
measurement system set in the Measurements In
See also:
option (or with the cMeasurement parameter of the
Coordinates MeasureUnits command). For example, even if the
Using numeric coordinates vertical ruler is set to inches, PageMaker interprets
Specifying locations by page elements any vertical coordinates or measurements using the
default measurement system (which may not be
inches). You can override the default system by
Using numeric coordinates including an abbreviation for the desired system with
Numeric coordinates represent locations in the parameter value; see Specifying the measurement
relation to the PageMaker rulers. Using numeric system.
coordinates lets you specify a precise location
for an object. See also:
Coordinate values can be either negative or Coordinates
positive numbers. Unlike standard coordinates, Setting the rulers' zero point
PageMaker uses positive numbers to express Specifying locations by page elements
vertical locations below the zero point. Vertical
locations above the zero point are expressed as
negative numbers. Horizontal locations match Specifying locations by page
standard coordinates: Locations right of the
elements
zero point are positive and left of the zero point
are negative. You can specify coordinates in relation to elements
on the page. When you specify locations by page
elements, the locations remain valid even after you
move the rulers' zero point, move an object, or
change the publication page size or orientation.
To use this method, you refer to a column guide or
object by the internal number PageMaker assigns it
The following examples specify parameters when it is first placed, typed, or drawn on the page.
using the numeric method:
• Columns are numbered from left to right on the
Precise coordinate Action specified page. You specify "leftpage" or
"rightpage" (as shown in the table below) only
move top, 6i Positions the selected object so its
top edge is 6 inches below the zero
when the publication has facing pages.
point. • Guides are numbered in the order in which they
guidevert 4.25i Creates a vertical ruler guide 4.25 were placed on the page, regardless of their
inches to the right of the zero point. positions on the page. The first guide drawn is
deletevert 4.25i Deletes the vertical guide that is number one. If you delete a guide, PageMaker
located 4.25 inches to the right of renumbers the remaining guides.
the zero point.
ADOBE PAGEMAKER 7.0 13
Introduction to scripting and the script language
• Use a unique name for a variable: it cannot be the • Parse down the values in the list by taking them
same as any command or function supported by in series using the Set command. For example: Set
the PageMaker scripting language. VariableName >> Variable1, Variable2, Variable3,
VariableName. The following script uses the
GetFontList command to see if a font is available in
Assigning variables
a computer system before using it in a script. The
You can assign a value to a variable in a number of repeat loop uses the Set command to parse
ways. The simplest way is to simply set the variable through the variable fontlist for a match with
name equal to the value, as in X = 5. Palatino. The ellipses are placeholder variables.
Another common way to assign a variable is to use getfontlist >> NumOfFonts, fontlist
it with a query command. In this way, the value or loop x = 1, NumOfFonts
values replied by the query are assigned to a list of set fontlist >> font name, ..., ..., ..., fontlist
variables in the order in which they are listed, as in if font name = "Palatino"
this example: getpagesize >> X, Y. For a letter-size s e t s e a rch > > f ou n d
page, this command would set the variable X equal endif
to 8.5, and the variable Y equal to 11. end lo op
if search = found
A variable can also store a list of values, separated
message "Palatino av ailable in cur rent system."
with commas, such as: X = 5, 7, 9. The values listed
else
are stored in the same order in which they are
m e s s a ge " Pa la t i n o n ot av a i la b le . "
assigned, so that you can retrieve them later.
endif
You can also assign a list of values to a single re tu r n
variable. For example:
g e tob j e c t l i s t > > nu m , o b j e c t s i n f o Search the list for a specific value using # or ?
(Includes) operators. The Includes operator
Num represents a value for the number of objects simplifies a process that would otherwise take
currently visible; objectsinfo represents a list of all several lines of instruction. The following script
other information returned by the query. performs the same function as the previous script,
but uses the Includes operator to write a single
expression.
Parsing variable lists
getfontlist >> NumOfFonts, fontlist -- acquire
When you want to work with a single value from a
font list
list, do one of the following:
if "Palatino" # fontlist > 0
• Follow the variable name with a number or message "Palatino av ailable in cur rent system."
expression in parentheses, with no space. The else
following example sets a list of values to the m e s s a ge " Pa la t i n o n ot av a i la b le . "
variable EvenNumbers, and then uses the fifth endif
value to go to a page: re tu r n
EvenNumbers = 2, 4, 6, 8, 10, 12, 14, 16
pageEvenNumbers(5) The Includes operator is used by first listing the
value to search for before the # mark and then the
variable to search within after. The expression’s
calculated result will be the number of the value’s
position in the value list being searched for, or
equal to zero if no occurrence is found.
ADOBE PAGEMAKER 7.0 15
Introduction to scripting and the script language
• * (multiply)
• / (divide) Using functions
The function of these four basic math operators is When you are working with commands and
obvious when being used with numeric values. expressions, you may want to use a value that may
When strings of text are involved, however, things not be in the proper form. You can use a function
get a bit more complicated. You can use paren- to coerce, or change, a value into another form. To
theses and spaces to help break up lengthy calcula- use a function, you first type the function name
tions and to modify the order of precedence for and then, directly next to it—without a space and
calculations. When multiple string values are within parentheses—the name of the variable or
expressed with an addition symbol, PageMaker value to apply to it. You can use a function with any
will concatenate them together, as in the following command or expression that uses a value; you can
example: even use a function within a function.
X = "o n e" + "two " + "three" The following rules outline the use of functions. If
PageMaker returns a syntax error or your script
Result: creates unexpected results, it could be due to an
inappropriately used function
X = " o n e t wo t h re e "
• Write each function name as a single word,
followed directly by the variable or value to be
Percent sign (Mod) operator
affected in parentheses. Don’t use any spaces.
% (percent sign)
• Use appropriate values specified in the function.
This special operator, which works only with
• You can use a function with any appropriate
number values, divides the first value by the
value, in any type of expression or command.
second and returns the remainder. For example:
• Functions only affect the single use of a variable
X = 22 % 7
value; they do not change the value itself for other
Y = 21 % 7
instances in a script.
Result:
Result
x = 1
b = " PAG E M AK E R "
Result:
Result
x = 8
b = "age"
Path() function: translates file directory paths Rand() function: returns a pseudo-random
between the Windows DOS syntax, which number between two given values. For example:
separates each level of its path with a backslash (\),
a = rand(1, 42)
and the Macintosh syntax, which uses a colon.
Used for cross-platform scripts that use path
Possible result
names. The following example will be translated to
the correct format regardless of the platform that is a = 11.1952
being used:
Sin() and Cos() functions: calculate either the sine
a = " Pro j e c t \ Pu b s \ C h a p ter 1 "
or cosine value, in degrees, for a given value of
open path(a)
angle. For example:
Abs() function: gets the absolute value of a a = sin(36)
number, resulting in a positive value whether it is a
positive or a negative. For example: Result
a = a bs(- 42) a = 0.587785
Result
a = 19
ADOBE PAGEMAKER 7.0 19
Introduction to scripting and the script language
x = 0 break x = 100
endw hile
Goto and Label: skip from one point in a script to
Switch, CaseOf, Default, Endswitch: evaluate a another. By using a value or expression with the
single variable for a series of values. The Switch Goto control, PageMaker will immediately search
control is accompanied by a variable, which is the whole script to find a Label with a matching
evaluated by each of the subsequently listed value and continue executing instructions from
CaseOf controls. If the CaseOf value matches the that point.
Switch value, then the commands that follow are
all executed to the Endswitch control (ignoring any Example
additional CaseOf or Default controls). To stop a i f " He lve t i c a " # f o n t l i s t
CaseOf from executing all the way to the f o n t " He lve t i c a "
Endswitch, you can use the Break control to exit goto done
the Switch and immediately jump to the endif
Endswitch. If none of the CaseOf values match the i f " He lve t i c a - Na r row " # f o n t l i s t
Switch value, you can use the optional Default m e s s a ge " Su b s t i t u t i n g He lve t i c a - Na r row f or
control to execute instructions instead. He lve t i c a "
f o n t " He lve t i c a - Na r row "
Example goto done
page." new
break
caseof -4 Try command: executes a command that might
message "The cur rent page is a r i g ht-hand return an error, without interrupting the execution
master page." of the rest of your script. When the command that
break follows a Try command fails, PMScript simply
default ignores it and continues on.
message "This is not a master page.
endsw itch
Example
Break: escapes from any Repeat Until, While, or t r y f o n t " He lve t i c a "
Loop controls. See above example for using Break
with the Switch control. ErrorChecking command: toggles scripts on and
off when encountering errors generated by
Example PageMaker (not PMScript). This is similar to using
x = 0 a Try command on every line of your script, except
rep e a t that if one of the commands fails, all the subse-
x = x + 1 quent commands are ignored.
ADOBE PAGEMAKER 7.0 21
Introduction to scripting and the script language
Message Command: Displays a message in a 3 Use commas to separate parameters from one
dialog box. Can also be used to display the results another. For example:
of a query. See above for other examples of the
resize r i g httop, 3.5i, 7i, 1,1
message command.
4 Use the correct syntax. Parameter values must
Example always follow the command or query in the order
getalig nment >> my var iable specified in this guide.
message "Cur rent alig nment value is: " + 5 Don't worry about case when entering
st r(myvar iable) commands, queries, and parameter keywords.
They can contain any combination of lowercase
The Message command can be combined with the and capital letters. For example:
GetYesNo command to get information from the
Ma nualKer ning Apar tFine
user while the script is running. The GetYesNo
command replaces the "OK" button in the message
or
box with a Yes and No button..
manualker ning apar tfine
Example
or
messa g e "D o yo u wa n t to Qu it? "
g et yesn o >> my va r i a bl e M A N UA L K E R N I N G Ap a r t fi n e
if my var iable = YES
goto sig noff 6 Always match the case, as well as spelling and
endif punctuation, of submenu, pop-up menu, and
palette options, such as fonts, colors, master pages,
dictionaries, and styles. These parameters appear
See also:
in quotation marks.
About PMScript
You must capitalize, spell, and punctuate an option
Parameter types
name exactly as it appears on screen.
Writing expressions
7 Precede all comments with a double hyphen (--
Using functions
) or two backslashes (\\). Comments may be either
on a line by themselves or on the same line as a
Basic scripting rules command or query. As with commands and
queries, the carriage return marks the end of a
1 Type each command or query as one word, comment.
without spaces. For example, type "lockguides,"
not "lock guides;" type "getlinkinfo," not "get link A comment is optional text within the script that
info." describes the script's actions. (PageMaker ignores
these comments when the script runs.)
ADOBE PAGEMAKER 7.0 22
Introduction to scripting and the script language
Both of the following examples are correct: You cannot undo PageMaker script commands.
The only way to reverse the result of running a
new 5 -- creates a new, 5-page publication
script is to choose Revert from the File menu or to
use the Revert command in a script and replace the
or
current publication with the last-saved version.
new 5 -- creates a new, 5-page publication
4 Use comments to document your script.
Include comments throughout a script to ensure
See also:
that you (and others) remember what the script
Parameter types does.
Documentation and language conventions
Deciphering PageMaker replies to queries See also:
Scripting tips
Specifying the measurement system
How publication defaults and preferences affect
Coordinates
scripts
Script language components defined
Basic scripting rules
Scripting tips
1 Prepare for varying conditions.
How publication defaults and
Keep in mind the conditions of the environment in
preferences affect scripts
which your script may run. For example, prefer-
ences may be set; document and application Be aware of the possible conditions, preferences,
defaults may vary; objects may be selected; or no and default settings in a publication and on the
publication may be open. Keep in mind that your computer, such as:
script may change application or document • Installed fonts, filters, and plug-ins
defaults, with undesirable results.
• Whether or not an object is selected
To make sure your script runs as planned, set as
• Whether or not a publication is open
many preferences and defaults within the script as
you need to control the running environment. Otherwise, under certain circumstances, your
(For example, set the zero point, specify script may not run correctly or may yield
measurement systems for parameter values, select undesirable results.
the necessary objects, open or close publications, The effect of a command or the values a query
and so forth.) returns depends on the state of PageMaker and the
2 Leave things as you found them. publication when PageMaker executes the
command or query. Here are the effects of
Before changing defaults or preferences, query
commands in each state:
their initial state, store the state in variables, and
then restore the defaults and preferences at the end No publication is open. If no publication is open,
of your script. many commands set PageMaker default values for
new publications, and many queries return the
3 Save the publication at the start, whenever
PageMaker default settings. The default settings in
possible.
existing publications are not affected.
ADOBE PAGEMAKER 7.0 23
Introduction to scripting and the script language
Publication is open and no object is selected. If a To write a script using the Scripts palette:
publication is open and no object is selected, many 1 If the Scripts palette is not open, choose
commands set the publication defaults and many Window > Plug-in Palettes > Show Scripts.
queries return the publication defaults.
2 Choose New Script from the Scripts palette
Publication is open and an object is selected. If a menu (click the arrow on the upper right corner of
publication is open and objects are selected with the palette to display the menu).
the Select command or pointer tool, object-
3 Name the script file, select a location in the
specific commands and queries apply to those
Scripts folder, and then click OK.
selected objects.
4 Type the script commands in the New Script
Publication is open and text is selected with the
window.
text tool. If a publication is open and text is
selected with the text tool, text-specific commands
To run a script listed in the Scripts palette:
and queries apply only to those selected sections of
the text; paragraph-specific commands and 1 If the Scripts palette is not open, choose
queries apply to all the paragraphs containing the Window > Plug-in Palettes > Show Scripts.
selected text. 2 If the script acts on selected objects in the publi-
Publication is open and the insertion point is cation, select the desired objects.
within a text object. If a publication is open and 3 Double-click the script in the Scripts palette.
the insertion point is within a text object, text-
specific commands and queries apply only to the
next characters inserted; paragraph-specific See also:
commands and queries apply to the paragraph Working with other scripting applications
containing the cursor. Basic scripting rules
Scripting tips
See also: Adding scripts to the Scripts palette
Specifying the measurement system Removing scripts from the Scripts palette
Coordinates
Basic scripting rules
Adding scripts to the Scripts
palette
Writing and running scripts You can add scripts to the Scripts palette by either
You can write scripts directly in the PageMaker using the Add Script command on the Scripts
Scripts palette or in any application that can save palette menu or by copying scripts to the Scripts
the script in the text-only format. Once written, folder.
move the script into the Scripts folder so it will
appear in the Scripts palette. The Scripts folder is To add a script using the Scripts palette:
in: 1 Choose Add Script from the Scripts palette
Windows PageMaker 7.0\RSRC\<language> menu (click the arrow on the upper right corner of
\PLUGINS\SCRIPTS the palette to display the menu).
2 In the Add a Script dialog box, select a script or
Macintosh Adobe PageMaker
7.0:RSRC:Plugins:Scripts folder, and then click Open.
ADOBE PAGEMAKER 7.0 24
Introduction to scripting and the script language
The script or folder you choose is automatically The script is now stored in the Scripts-Disabled
copied to the Scripts folder and appears in the folder in the Plug-ins folder.
Scripts palette.
To restore a script that has been removed from the
Note: In Windows, you can type a descriptive title in
Scripts palette:
the Script Title text box. The title will appear in the
palette instead of the script's filename. If you leave 1 Choose Restore Script from the Scripts palette
the Script Title blank, the palette displays the script's menu (click the arrow on the upper right corner of
filename. the palette to display the menu).
2 From the list of removed scripts, select a script
To rearrange scripts in the Scripts palette: and click Restore.
1 Open the Scripts folder, located in the following
location: See also:
Windows PageMaker 7.0\RSRC\<language>
Adding scripts to the Scripts palette
\PLUGINS\SCRIPTS
Writing and running scripts
Macintosh Adobe PageMaker
7.0:RSRC:Plugins:Scripts
2 Rearrange the order of the scripts in the folder;
Working with other scripting
that order will be reflected in the Scripts palette. applications
Because scripts written in other applications
See also: contain more than PageMaker commands and
queries, you must know the following to write a
Writing and running scripts
successful script:
Removing scripts from the Scripts palette
• The language used by the application in which
you write the script
Removing scripts from the • The method by which that application commu-
Scripts palette nicates with PageMaker
You can remove scripts from the Scripts palette. • The PageMaker script language
When you remove a script, you merely prevent it
• How to use Apple Events or Windows Dynamic
from being displayed on the palette; the script file
Data Exchange (DDE)
itself is not deleted. On the Macintosh, scripts you
remove from the palette are moved into the This guide describes only how to use Apple Events
Scripts-Disabled folder. To redisplay a script you've and DDE to communicate with PageMaker. Refer
removed from the palette, use the Restore to the documentation provided with your
command. scripting or programming application for details
on how to send Apple Events or DDE messages.
To remove a script from the Scripts palette: Note that most applications can send and receive
1 Select a script in the Scripts palette. (You can only certain Apple Events, and that PageMaker
remove only one script at a time.) recognizes only the "Do Script" and "Evaluate
2 Choose Remove Script from the Scripts palette
Script" Apple Events. Therefore, not all applica-
menu (click the arrow on the upper right corner of tions that support Apple Events can communicate
the palette to display the menu). with PageMaker. Refer to your scripting appli-
cation documentation for the necessary details.
ADOBE PAGEMAKER 7.0 25
Introduction to scripting and the script language
Message Use
See also:
Apple Events: Addressing WM_DDE_INITIATE Use this message to begin a con-
versation. PageMaker registers
Apple Events: Required constants itself as "PageMaker" and responds
Apple Events: Receiving a reply to WM_DDE_INITIATE messages for
"PageMaker" that use any topic
Using Apple Events to communicate with Page- name (including NULL).
Maker
WM_DDE_EXECUTE Use this message to send com-
mands.
Apple Events: Receiving a reply WM_DDE_REQUEST Use this message to send queries.
Queries must use the CF_TEXT for-
PageMaker uses a reply Apple Event to provide mat.
error information and query results to the appli-
WM_DDE_DATA PageMaker uses this message to
cation sending the Apple Event. Replies may transmit its reply to the application
contain one of the following: that issued the
WM_DDE_REQUEST.
• A query reply (keyAEDirectParameter)
WM_DDE_ACK Use this message to acknowledge
• An error number (keyErrorNumber) the receipt of a command or
request.
• An error string (keyErrorString), if PageMaker
generates a string for the error code WM_DDE_TERMINATE Use this message to end a conver-
sation.
Note: If an error occurs, the reply may also contain
invalid data in keyAEDirectParameter. To verify
whether the data is valid, make sure the reply Sending queries to PageMaker using DDE
contains the keyAEDirectObject parameter and does You use WM_DDE_EXECUTE to send commands
not contain the keyErrorNumber parameter. and WM_DDE_REQUEST to send queries.
You can send only one query per message. If you
See also: send more than one, PageMaker replies only to the
Apple Events: Addressing last query.
ADOBE PAGEMAKER 7.0 27
Introduction to scripting and the script language
Receiving replies from PageMaker To use this threading utility, you should have a
PageMaker uses WM_DDE_DATA to transmit the publication open in PageMaker with at least two
result of the query to the application that issued stories on the page.
the WM_DDE_REQUEST. Replies may contain Note: You must use HyperCard version 2.1 or later.
one of the following: Also, program linking must be active in the Sharing
• An error string, if PageMaker can generate a Setup control panel for this example to work.
string for that error code. Stack or project script. The following function is
• A query result, if the script contains a query. the stack or project script for the utility:
For more information about deciphering - - T h re a d i n g u t i li t y cou r te s y D av i d But le r
replies, see Deciphering PageMaker replies to function sendQuer y ToPM pmscr ipt
queries. g l obal PMAPP
-- put Pa geMa ker name into var iable PMAPP
See also: if PMAPP is empt y then
a n s we r p rog r a m " S e le c t Pa ge Ma ker f rom li s t o n
Working with other scripting applications
right:"
Sample scripts if it is empt y then exit sendQuer yToPM
put it into PMAPP
end if
Sample scripts re quest pmscr ipt from prog r am PMAPP
These simple examples illustrate how to send re tur n it
commands to PageMaker using a script written in end sendQuer yToPM
another application. For more samples of how to
use the PageMaker script language, see the script Button. The utility has one button named
samples in the Scripts folder (and listed in the Thread. The script for the button is:
Scripts palette).
on mouseUp
- - G e t co o rd i n a te s o f s e l e c te d tex t b l o c k
See also: -- Use co ordinates later to place text back on
Sample scripts: HyperCard or SuperCard page
p u t s e n d Q u e r yTo P M ( " g e to b j e c t l o c top l e f t " )
Sample scripts: Visual Basic for Applications
into TLCo ords
Sample scripts: Visual Basic
p u t s e n d Q u e r yTo P M ( " g e to b j e c t l o c b o t to m -
r i g ht") into BRCo ords
See also:
- - Pa ste text a n d rep o sitio n text b loc k s
p u t " p a s te ; s e l e c t 1 ; re s i ze b o t to m r i g h t " & & B C d Using DDE to communicate with PageMaker
& ";" after TxtSend Sample scripts: Visual Basic
put "placenext;place" && TLCo ords & ";" after
TxtSend
put "resize topleft" && TLCo ords & ";" after Sample scripts: Visual Basic
TxtSend The following Visual Basic program creates a
put "resize bottomr i g ht" && BRCo ords & ";" simple utility that threads (joins) the text of two
after TxtSend independent text blocks into one story and then
put sendQuer y ToPM( TxtSend) into reply replaces the second text block in its original
end mouseUp position. The utility form consists of a button,
which sends the commands and queries to select,
Text field. The utility has one text field that join, and replace the text, and a simple text
contains the following instructions for the user: window, where user instructions are displayed and
To t h re a d t wo tex t b l o c k s , s e l e c t t h e fi r s t tex t replies from PageMaker are sent.
bl o ck a n d sen d it to the ba ck . Th e n , s e le c t t h e To use this threading utility, you should have a
second block and click Thread. publication open in PageMaker with at least two
stories on the page.
See also: Declarations. Here are the "(general)" declara-
Using Apple Events to communicate with Page- tions for the utility:
Maker
R E M T h re a d i n g u t i li t y cou r te s y D av i d But le r
REM Su broutine to ke ep utilit y on top
Declare Sub SetWindow Pos Lib "User" (ByVal
Sample scripts: Visual Basic for hWnd As In te ger, ByVal hWndInser t After As
Applications In te ger, By Val X As In te ger, By Val Y As In te ger,
You can use Visual Basic for Applications (VBA) to ByVal cx As In te ger, ByVal cy As In te ger, ByVal
write scripts in applications such as Microsoft wFlag s As In te ger)
Word, Excel, and Access. The following example,
written with Microsoft Word 6.0 for Windows, Con s t HWN D _ TO P M O S T = - 1
shows how to initiate a DDE link with PageMaker Con s t HWN D _ N OTO P M O S T = - 2
and send commands and queries. Con s t S WP _ N OAC T I VAT E = & H1 0
ADOBE PAGEMAKER 7.0 29
Introduction to scripting and the script language
Con st S W P _ S H OW W I N D OW = & H4 0 E n d Su b
Subroutines. Here are the subroutines used by the Text field. The utility has one text field with the
utility: MultiLine property set to True. The LinkClose
procedure contains the following code:
Su b For m _ L o a d ( )
REM Make w indow stay on top of Pa geMa ker Sub Text1_LinkClose ()
S etWin d owPo s hW n d , H W N D _ TO P M O S T, 0 , 0 ,
0, 0, S W P _ N OAC TI VATE Or REM Le t Pa geMa ker finish before utilit y
S W P _ S H OW W I N D OW con t i nu e s
REM This procedure is impor tant for more
Rem Pre vent utilit y from timing out if com p l ex s c r i p t s
Pa geMa ker is not r unning D oEve n t s
Text1. L in k Timeo u t = - 1
Text1.LinkTopic = "PageMaker|DDE_LINK" E n d Su b
REM Put help message in text w indow Command button. The utility has one command
UpdateStatus button with a caption of Thread. The subroutine
for the button follows. Be careful to follow the
E n d Su b PageMaker syntax correctly (for example, inserting
a space between commands and parameters).
Su b Ru n S cr ip tCo mma n d (P M_ C m d As S t r i n g)
The sample code below sends several commands at
Text1. L in k Mo d e = 2
a time. If it becomes necessary to troubleshoot a
problem, you may want to send one command at a
REM Send either commands or quer y based on
time.
fi r s t 3 ch a r a c ter s
REM You can g roup commands, but must send Sub Command1_Click ()
quer ies one by one
REM Use Execute for commands, Re quest for REM Define a par ag r a ph (car r iage re tur n)
quer ies ch a r a c ter
Cr$ = Chr$(34) + Chr$(13) + Chr$(10) +
If Left$(LCase$(PM_Cmd), 3) = "get" Then Chr$(34)
Text1. L in k Item = P M_ C md
Text1.LinkRequest R E M G e t co o rd i n a te s o f s e l e c te d tex t b l o c k
E l se REM Use co ordinates later to place text back on
Text1.LinkExe cute PM_Cmd page
E n d If Ru n S c r i p t Co m m a n d ( " g e to b j e c t l o c top l e f t " )
TLCo ord$ = Text1.Tex t
E n d Su b Ru n S c r i p t Co m m a n d ( " g e to b j e c t l o c b o t to m -
right")
Sub UpdateStatus () BRCo ord$ = Text1.Tex t
REM Define help text to appear in text w indow
M s g $ = " To t h re a d t wo tex t b l o c k s , s e l e c t t h e REM Hi g hlig ht and cut text in second text block
first text block and send to back. " R E M T h e n s e l e c t fi r s t tex t b l o c k
M s g $ = M s g $ + " T h e n , s e l e c t t h e s e con d b l o c k RunScr iptCommand
and click Thread." ( " tex te d i t ; s e l e c t a l l ; c u t ; s e l e c t 1 ; " )
Tex t 1 . Tex t = M s g $
ADOBE PAGEMAKER 7.0 30
Introduction to scripting and the script language
REM Get bottom cor n er of first text block Testing and troubleshooting
Ru n S c r i p t Co m m a n d ( " g e to b j e c t l o c b o t to m -
The flowchart below illustrates the most successful
r i g ht")
method for testing and troubleshooting a script:
B C d $ = Text1. Text
See also:
Testing and troubleshooting
Locating errors in other scripting applications
ADOBE PAGEMAKER 7.0 31
Introduction to scripting and the script language
Locating errors in other scripting If you have moved the Scripts palette file or have
rearranged these folders, return them to their
applications
appropriate locations.
Scripts written in other applications should
perform their own error-checking routines. To get PageMaker needs the following files in order to use
error information from PageMaker, use the the Scripts palette:
GetLastErrorStr query; then display the error On the Macintosh: In Windows:
information in an alert box.
PMScript PMScript.exe
See also:
Common problems
Common problems
The following is a list of topics about common
scripting problems and some suggested solutions:
Scripts palette won't open Script not listed in palette
Script not listed in palette A script may not be listed in the Scripts palette
Script stops running before end for any of the following reasons:
Cannot stop a script • The script is not in the Scripts folder. To
Script can't select or misdraws or misplaces appear in the Scripts palette, a script must be in
Script stops when command includes filename the Scripts folder (or a folder within the Scripts
None of the scenarios match your situation folder):
Windows PageMaker 7.0\RSRC\<language>
See also: \PLUGINS\SCRIPTS
Testing and troubleshooting Macintosh Adobe PageMaker
Parameter types 7.0:RSRC:Plugins:Scripts
Basic scripting rules • The script has been removed from the Scripts
Scripting tips palette with the Remove Script option, which
prevents a script from being displayed in the
palette but leaves the script file in the Scripts
Scripts palette won't open folder.
The Scripts palette is actually a plug-in and must To view the list of removed scripts, choose
reside in the Plug-ins folder. It cannot be in Restore Script from the Scripts palette menu.
another folder within the Plug-ins folder. Double-click the name of the script you want to
PageMaker expects to find it in the following restore.
locations:
Windows PageMaker 7.0\RSRC\<language> See also:
\PLUGINS\SCRPTPAL.ADD Common problems
Macintosh Adobe PageMaker
7.0:RSRC:Plugins:Script Palette.add
ADOBE PAGEMAKER 7.0 32
Introduction to scripting and the script language
Script stops running before end • Does the command require that an object be
selected or that text be highlighted?
PageMaker stops running a script when it
encounters an error. To find the command When you're satisfied that the details of a script
causing the error, run the script command by are correct, run it again. If it still doesn't run,
command, using the Trace option. check to see if the commands are in the correct
sequence. You may have omitted a necessary
To locate an error in a script: command or used the wrong command.
1 If the Scripts palette is not open, choose
Window > Plug-in Palettes > Show Scripts. See also:
2 Select the script you want to error-check. Common problems
3 Choose Trace from the Scripts palette menu
(click the arrow on the upper right corner of the
Cannot stop a script
palette to display the menu).
You cannot interrupt a script when it's running.
PageMaker displays the script, highlighting the
However, you can use the Revert command (or
first command.
choose File > Revert) to restore the publication
4 Choose Step from the Run menu once for to its most recently saved version.
each command until PageMaker displays an
We recommend that you use Save, SaveAs, and
error message.
MiniSave as the first command statement in the
When you have located the offending command, script. That way, Revert will return the publi-
determine why it is causing a problem: cation to its original condition if no other Save or
SaveAs commands are used in the script. (See the
• Are the command and keywords spelled
Revert command description.)
correctly?
• Are the command and keywords each one
word?
See also:
Common problems
• Are all the required parameters specified?
• If a comment is on the same line, is it preceded
by two hyphens? Script can't select or misdraws or
• Does the specified location, guide, or object misplaces
exist in this publication? If your script fails to select an object or places it
• Is the path for an imported graphic or file in the wrong location, check out these possible
complete and correct? causes:
• Are filenames and other text (such as fonts, • Has the location of the object changed since
colors, and styles) enclosed in quotation marks? you wrote the script? If you used numeric
• Are parameters that represent variable menu coordinates, you'll need to edit the script for the
options (such as fonts, colors, master pages, and new location of the object.
styles) spelled and capitalized exactly as they • Is the zero point where you expect it to be? See
appear on the menu? Setting the rulers' zero point
• Is the publication in the correct view for the
command (some commands work only in the
story editor or only in layout view)?
ADOBE PAGEMAKER 7.0 33
Introduction to scripting and the script language
• Did you specify coordinates using the • If the file is not in the current folder but is on
PageMaker coordinate system? Remember that the same disk, precede the name with the hard
locations below the zero point are positive and disk and folder names, separating each with a
location above are negative. See Using numeric colon (for example, "Disk:Newsletter:Artwork:
coordinates. Chart.eps").
• Are your coordinates in the default measurement • On the PC, follow Windows rules to specify
units of the publication? See Specifying the the path and name of the file (for example,
measurement system. "C:\Artfiles\Newsletter\Charts\Chart.bmp").
• Are you using the correct drawing-order If you either transferred the script from one
number? Remember that sending an object to platform to another as a text file or wrote the
the back or front changes its drawing order. script in a DOS editor, the filename referenced
• Are you selecting a PageMaker object that does in the script may contain an upper-ASCII
not have a fill? To select an unfilled object, you character (character number 128 and up).
must specify a location on its line. See the Select Although the first 128 characters are identical in
command. the character sets used by DOS, Windows, and
the Macintosh, the upper-ASCII characters are
not identical. This can be a problem if the
See also: character on one platform maps to a character
Common problems that is illegal for filenames on another. Try one
of the following solutions:
• If the file was written in a DOS text editor,
Script stops when command import the script into PageMaker for Windows
includes filename using the Text-only filter and select the DOS
PageMaker looks for a file only in the current import option. Then, either run the script in
default folder unless you specify a path. (The PageMaker or export it to a new text file.
current folder is the last folder PageMaker used • If you transferred the script across platforms
when opening, placing, exporting, or saving (Macintosh to Windows, or vice versa), transfer
with File > Save As or with the SaveAs the script again within a PageMaker publication.
command.) PageMaker correctly maps the upper-ASCII
If the file is in the current default folder, make characters of transferred publications. Then,
sure you spelled the filename correctly and you can export the script to a text file or copy it
enclosed it within quotation marks. Do not into the Scripts palette edit box and save it from
include any spaces between the quotation marks there.
and the name (unless the spaces are part of the
filename). See also:
• On the Macintosh, if the file is in a folder Common problems
within the current folder, precede the filename
with a colon, the subfolder name, and another
colon (for example, ":Artwork:Chart.eps").
ADOBE PAGEMAKER 7.0 34
Introduction to scripting and the script language
None of the scenarios match your • Adobe Technical Support. If the "Testing and
troubleshooting" section of this guide doesn't
situation
answer your questions and you need person-to-
If that's the case, back up a step and examine the person advice, our technical support representa-
logic of your script. Make sure the context in tives can answer questions about commands and
which you're using commands and queries queries. They cannot, however, evaluate the
makes sense. For example: soundness of your scripts, nor can they trouble-
• Check the state of PageMaker. Are you sending shoot for you. If you are in the United States or
a NewStory command when no publication is Canada, technical support is available directly
open? from Adobe. Outside the United States and
Canada, call your local Adobe subsidiary or
• Make sure you're using the correct command.
distributor.
Are you trying to select a text block using
SelectAll instead of TextSelect?
• Make sure the script contains all the necessary
commands. Step through the process you're
scripting manually and compare the sequence
against your script text.
See also:
Common Problems
Commands
sPlugInName Name of plug-in, in quotation marks, sPrinterStyle Name of printer style to create, in quota-
exactly as it appears in menu (to a maxi- tion marks (maximum of 31 characters)
mum of 31 characters)
sFilename Exact name of file that contains plug-in, Commands that compose a printer style. To
in quotation marks (to a maximum of 31 create a printer style, set all the print options as
characters; required only if two plug-ins
have same menu name). Include path if
needed and save them using the AddPrinterStyle
the file is not in default PlugIns folder. command. The commands that set print options
saved in a style are:
Running plug-ins. A menu plug-in is a set of PrintColor
commands that combines PageMaker tasks into
one software component; a plug-in is installed on PrintDoc (range set to all pages)
the Plug-ins submenu. Once the plug-in is PrintFeature
executed using the Addition command, the plug-
in continues to run until it reaches the last PrintOptions or PrintOptionsPS
command. PrintPaperPS
Creating the ellipsis. For a Macintosh plug-in, PrintTo
press Option + ; to include the required ellipsis (...)
in the plug-in name. For a Windows plug-in, type Example. The following example sets various
three periods. print settings and saves them as the printer style
LJet Color Seps Letter.
Example. The following example executes the
pr intcolor 1, 0, 0, 1, 1, 0, "60 lpi / 300 dpi"
plug-in that vertically aligns the top and bottom
pr intdoc 1, 1, 0, 0, "", 0, 0, 0, 0, 0, 0
lines of text block handles in selected columns.
pr intoptionsps nor malimage, on, on, nor mal,
Addition Balance Co lumns off, off, on, off, off
pr intpaper ps " Le t ter " , " Pa p e r Tr ay " , - 2 , - 2 , - 2 , -
See also: 2, -2, 0, 0, -2, 0, 1000 0
pr intto "HP LaserJet IIISi PostScr ipt v52.3", "HP
The GetAdditions and GetAdditionsDir queries
L a s e r Je t I I I Si Pos t S c r i p t on L P T 1 "
addpr interst yle "LJet Color Seps Le tter"
See also:
The PrintColors, PrintDoc, PrinterStyle, PrintOp-
tions, PrintOptionsPS, PrintPaperPS, PrintTo, and
RemovePrinterStyle commands
ADOBE PAGEMAKER 7.0 36
Commands
Example. The following example assigns all of the Parameter Values to enter
currently selected objects to the layer named bState off or 0 (zero)
"MyLayer".
on or 1
a ssig n l ayer "", "My L ayer"
See Also:
The DeleteLayer, DeleteUnusedLayers, LayerOp-
ADOBE PAGEMAKER 7.0 38
Commands
this command only after the StyleBegin command, bOvrprntLines off or 0 (zero) to disable auto-overprint-
which marks the beginning of a style definition ing of black lines
and specifies the name of the style being defined or on or 1 to enable auto-overprinting of
edited. Use the StyleEnd command to complete the black lines
definition. dontcare or -2 to leave state unchanged
Example. The following example defines the new bOvrprntFills off or 0 (zero) to disable auto-overprint-
style "Heading 2" (or edits an existing style by that ing of black fills
name), and specifies "Heading 1" as the style on on or 1 to enable auto-overprinting of
which it is based. It then identifies the style in the black fills
paragraphs that follow "Heading 2." dontcare or -2 to leave state unchanged
s t y l e b e g i n " He a d i n g 2 "
basedon "Heading 1" Example. The following example sets a black limit
n ex t s t y l e " Pa r a " of 90%, enables auto-overprinting of black text
styleend below 18 points, and disables auto-overprinting of
lines and fills.
ADOBE PAGEMAKER 7.0 39
Commands
nexteven or 3
See also:
nNumOfPubs Number of publications in book list
The GetBook query
Example. The following example draws a box A group is considered an object and has a drawing-
with the specified top-left corner coordinates (five order number like any other object. If you bring
inches, four inches) and the bottom-right corner the group forward, the objects within the group
coordinates (seven inches, six inches). retain their stacking order in relation to each other,
b ox 5 i , 4 I , 7 i , 6 i
but their drawing-order numbers each increase by
one.
Example. The following example selects the first
See also:
object drawn and brings it forward, changing its
The Line and Oval commands drawing order to two.
select 1
BreakLinks br ing for ward
The AttachContent, DeleteContent, FrameCon- Stacking order not affected. If you selected
tentPos, FrameInset, LinkFrames, SeparateCon- multiple elements, the selected objects retain their
tent, and ToggleFrame commands stacking order in relation to each other, but the
The GetFrameContentPos, GetFrameInset, GetFr- selection is brought to the front of the page ahead
ameContentType, GetIsFrame, and GetNext- of everything else.
Frame queries
Command language compared to using pointer
tool. When you move a text block or a graphic
with the pointer tool, PageMaker automatically
BringForward brings the object to the front. However, when you
Brings the selected object forward one position, move an object with the command language, you
bumping up its drawing order by one. Multiple must use BringToFront to bring objects to the
selected objects retain their stacking order in front of the page.
relation to each other.
Layout view only. The BringToFront command
Drawing order. The first object drawn on a page works only in layout view.
(or pages for facing pages) has drawing-order
Example. The following example selects the
number 1 and is the bottom-most object. The top-
bottom-most object by its drawing order (1) and
most object is the last object drawn and has the
brings it to the top layer of the page.
highest drawing-order number.
select 1
br ingtofront
ADOBE PAGEMAKER 7.0 41
Commands
Cascades the displayed windows of either publica- No override for Caps Lock key. You cannot use the
tions in the layout view or stories in story editor. Case command to change the case of characters
The Cascade command stacks the windows on top typed when the Caps Lock key is on.
of each other, offsetting them so that each title is Example. The following example changes the
visible. currently selected text to all caps.
Stories in current publication only. The Cascade case allcaps
command rearranges story-editor windows only
for the current publication. Stories from other
publications remain unaffected. See also:
The TypeOptions command
Example. The following example switches to the
story editor and cascades the displayed story- The GetCase and GetTypeOptions queries
editor windows of the current publication.
editstor y Change sFindWhat, sChangeTo,
cascade [cSearchRange], [bWrapAround],
[bMatchCase], [bWholeWord],
See also: [bClearAttr]
The Tile command Replaces the first occurrence of the specified text,
searching the selected range, the active story, or all
stories of the current publication. Leaves the new
Case cCase text selected.
Formats text as normal, all capitals, or small Parameter Values to enter
capitals. The extent of the action depends on which
sFindWhat Text to search for, in quotation marks.
tool is active, whether any text is selected, and
whether a publication is open when the command sChangeTo Replacement text, in quotation marks.
is executed.
Changing only text attributes. To change text Example. The following example selects a story,
attributes only (e.g., all 10-point, bold text to 9- inserts the insertion point into the story, and
point, Helvetica bold), use the FindTypeAttr1, switches to story editor. It then searches the
FindTypeAttr2, ChangeTypeAttr1, and current story for the word "rumba," regardless of
ChangeTypeAttr2 commands to set the desired the capitalization or attribute settings. The search
attributes. (Be sure to clear the paragraph begins at the position of the insertion point and
attributes with the FindParaAttr and wraps to the beginning of the story, if necessary. It
ChangeParaAttr commands.) Then, using the replaces the first match it finds with the word "cha-
Change command, specify an empty string for cha" and leaves the changed text selected.
both sFindWhat and sChangeTo and set
s e le c t ( colu m n 1 le f t , colu m n top ) - - s e le c t s tor y
bClearAttr to useattributes or 0. For example, to
tex te d i t - - i n s e r t i n s e r t i on p oi n t i n to b e g i n n i ng
change all 10-point, bold text in a publication to 9-
o f s e l e c te d s to r y
point, Helvetica bold, the commands are:
editstor y--sw itch to stor y editor
findt y p eatt r2 -3, -3, "Any", -3 --to clear the change "r umba", "cha-cha", cur rentstor y, w r ap,
other t y pe att r ibutes anycase, wholeword , clear
cha n g et y p ea tt r2 - 3, - 3, "Any ", - 3 - - to c le a r t h e
other t y pe att r ibutes
See also:
findpar aatt r "Any", -3, -3 --to clear the
par ag r aph att r i butes The ChangeAll, ChangeParaAttr,
changepar aatt r "Any", -3, -3 --to clear the
ChangeTypeAttr1, ChangeTypeAttr2,
ChangeWindow, Find, FindNext, FindParaAttr,
par ag r aph att r i butes
FindTypeAttr1, FindTypeAttr2, and FindWindow
fi n d t y p e a t t r 1 " Any " , 1 0 , - 3 , b o l d s t y l e , - 3 , - 3
commands
ch a n g e t y p e a t t r 1 " He lve t i c a " , 9 , - 3 , b o l d s t y l e , - 3 ,
The GetChangeParaAttr, GetChangeTypeAttr1,
-3
GetChangeTypeAttr2, GetChangeWindow, Get-
change "", "", allstor ies, stopatend, anycase,
FindParaAttr, GetFindTypeAttr1,
allinstances, useatt r i butes
GetFindTypeAttr2, and GetFindWindow queries
and stops at that point in the script. sFindWhat Text to search for, in quotation marks.
Plug-ins and external scripts only. PageMaker sChangeTo Replacement text, in quotation marks.
returns the following codes to indicate the success
of the search:
ADOBE PAGEMAKER 7.0 44
Commands
Searching for and changing special characters. • The Font submenu or pop-up menu
You enter a special character as part of your search
• The Plug-ins submenu
or replacement text using the same key combina-
tions that you type to enter the character directly Use this command when you have changed,
into the Change dialog box. deleted, or added font metric files, fonts, or plug-
ins during this session with PageMaker.
Scripts palette. Do not use the ChangeAll
command in scripts you plan to run using the Parameter Values to enter
Scripts palette. When PageMaker finds no match cEnvChange fontmetrics or 1 to force PageMaker to
or completes the search, the Scripts palette inter- reload font-metric information
prets this as an error and stops at that point in the installedfonts or 2 to force PageMaker
script. to rebuild the font list for Font submenu
(and pop-up menu)
Plug-ins and external scripts only. PageMaker
plugins or 4 to force PageMaker to
returns the following codes to indicate the success
rebuild the Plug-ins submenu
of the search:
Example. The following example selects a story, Keyword use and order optional. You can include
inserts the insertion point into the story, and one or all of the keywords and place them in any
switches to story editor. It then replaces all order. See the example below.
instances of the word "rumba," regardless of the
Example . The following example forces
capitalization or attribute settings, with "cha-cha."
PageMaker to rebuild the font list for the Font
It searches only the currently active story.
submenu (and pop-up menu) and to rebuild the
sel ect (co l u mn 1 l eft, co l u mn top ) - - s e le c t s tor y Plug-ins submenu.
texted i t- - i n ser t in ser t io n p o in t into b e g i n n i n g
changeenv installedfonts plug ins
o f s e l e c te d s to r y
editstor y--sw itch to stor y editor
changeall "r umba", "cha-cha", cur rentstor y,
anycase, wholeword , clear
ChangeNext
Searches for the next instance of the Find What text
specified in the last Change, ChangeAll, or Find
See also:
command and replaces it with the Change To text
The Change, ChangeParaAttr, ChangeTypeAttr1, specified in the last Change or ChangeAll
ChangeTypeAttr2, ChangeWindow, Find, FindN- commands, using all the same settings. Leaves the
ext, FindParaAttr, FindTypeAttr1, FindTypeAttr2, new text selected.
and FindWindow commands
The GetChangeParaAttr, GetChangeTypeAttr1, Story editor only. The ChangeNext command
GetChangeTypeAttr2, GetChangeWindow, Get- works only in story editor.
FindParaAttr, GetFindTypeAttr1, Current publication only. The ChangeNext
GetFindTypeAttr2, and GetFindWindow queries command cannot search multiple publications. It
can search only the stories in the currently active
publication.
ChangeEnv cEnvChange
Repeat as often as needed. You can send this
Depending upon the parameters, rebuilds one or
command repeatedly until PageMaker finishes
all of the following:
searching the range specified by the previous Find,
• The font metrics information (for example, kern Change, or ChangeAll command.
pairs or track-kerning information)
ADOBE PAGEMAKER 7.0 46
Commands
Last executed Change, ChangeAll, or Find wins. Scripts palette. Do not use the ChangeNext
As in the Find and Change dialog boxes, the Find, command in scripts you plan to run using the
Change, and ChangeAll commands share the Find Scripts palette. When PageMaker finds no match
What and Change To text, as well as the settings for or completes the search, the Scripts palette inter-
the search options, range, and attributes. (Note: prets this as an error and stops at that point in the
You must know all the current settings before you script.
use the ChangeNext and FindNext commands. If
Plug-ins and external scripts only. PageMaker
you insert a Find command between the Change
returns the following codes to indicate the success
and ChangeNext commands, the Find search-text,
of the search:
options, range, and attributes become the search
text and settings used by ChangeNext, while the Example. The following example switches to story
replacement text and attributes remain active from editor. It searches the current story for the word
the last Change or ChangeNext command.) For "rumba," regardless of the capitalization or
example: attribute settings and replaces the first match it
finds with the word "cha-cha." The search begins at
fi n d t y p ea tt r1 "Any ", 10, - 3,
the position of the insertion point and wraps to the
boldstyle+underline, -3, -3
beginning of the story if necessary. The
ch a n g e t y p e a t t r 1 " He lve t i c a " , 9 , - 3 , b o l d s t y l e , - 3 ,
ChangeNext command then replaces the next
-3
instance of "rumba," using the same search criteria
change "Note", "Tip", allstor ies, 1, matchcase,
and starting the search from the end of the last
wholeword , useatt r ibutes
encountered "rumba."
changenext--changes next instance of a bold
u n d erl in ed editstor y--sw itch to stor y editor
- - " No te " to b o l d , He lve t i c a 9 - p o i n t " Ti p : " change "r umba", "cha-cha", cur rentstor y, w r ap,
find "See also", cur rentstor y, stopatend, anycase, anycase, wholeword , clear
a l l in sta n ces, cl ea r changenext
changenext--searches only from inser t ion point
to end of stor y,
See also:
--changes next instance of "See also" to "Tip",
- - reg a rd l ess o f a tt r ibu tes
The Change, ChangeAll, ChangeParaAttr,
ChangeTypeAttr1, ChangeTypeAttr2,
The first ChangeNext command searches for the
ChangeWindow, Find, FindNext, FindParaAttr,
next instance of a 10-point, bold, underlined, FindTypeAttr1, FindTypeAttr2, and FindWindow
whole-word "Note" and replaces it with a 9-point, commands
Helvetica, bold word "Tip." The search begins at The GetChangeParaAttr, GetChangeTypeAttr1,
the position of the insertion point and wraps to the GetChangeTypeAttr2, GetChangeWindow, Get-
beginning of the next story if necessary. FindParaAttr, GetFindTypeAttr1,
Because of the Find command, the second GetFindTypeAttr2, and GetFindWindow queries
ChangeNext searches for the next instance of "See
also," regardless of its capitalization or attributes.
Using the same Change To criteria, it replaces "See
also" with 9-point, Helvetica bold "Tip." The
search begins from the location of the insertion
point, but is now limited to the current story.
ADOBE PAGEMAKER 7.0 47
Commands
include with the ChangeParaAttr command "Any" (quotation marks required) for
replace all existing attribute settings. Any font (i.e., to not include font name in
search criteria; default setting)
Plug-ins and external scripts. If story editor is not
dPointSize Point size of type (from 4.0 to 650.0)
active, PageMaker returns
any or -3 for Any size (i.e., to not include
CQ_LO_INVALID_MODE and disregards the
point size in search criteria; default set-
command. ting)
ADOBE PAGEMAKER 7.0 48
Commands
command. clear
Caution: No prompt for unsaved or changed publi- CloseStory can close story editor. If the story
cation. Unlike its menu counterpart, the Close being closed is the only story open in story editor,
command does not warn you if you have not saved PageMaker switches to the previously active page
the latest changes to a publication, nor does it in layout view.
prompt you to name an unnamed publication. Use
Plug-ins and external scripts only. If story editor
the Save or SaveAs commands first if you want to
is not active, PageMaker returns
save changes to the publication or name it.
CQ_LO_INVALID_MODE and disregards the
Path okay. While not part of the name displayed command.
in the Window menu, you can include the path
Example. The following example closes the
with the name of file you want to close.
current story and activates the text icon if the story
Example. The following example saves a publi- has not already been placed.
cation as "mypub" (and copies any linked
closestor y 1
documents), and then closes the publication.
saveas "my floppy :my folder :my pub", publi-
See also:
c a t i o n , l i n ke d
close "my pub" The EditLayout, EditStory, and OpenStory com-
mand
See also:
The MiniSave, Save, and SaveAs commands Color sColorName[, nTintValue]
Applies a color to the selected text or graphics or, if
nothing is selected, to the next object drawn or
CloseStory bPlace placed.
Closes the active story in story editor.
Parameter Values to enter
Parameter Values to enter
sColorName Name of color, in quotation marks and
bPlace discard or 0 to discard story without exactly as it appears on Colors palette (to
placing it (affects unplaced stories only) a maximum of 31 characters)
place or 1 to display loaded text icon in nTintValue Percentage of color to apply to object
layout view (affects unplaced stories (from 0 to 100)
only)
dontcare or -2 to leave setting
unchanged (default)
Story editor only. The CloseStory command
works only in story editor. All palette colors are available. You can apply any
bPlace ignored for placed stories. If the story has color that appears on the Colors palette.
already been placed, PageMaker ignores the value Fill and line of PageMaker objects. Regardless of
of the bPlace parameter and simply closes the story the setting of the Fill and Line menu on the Colors
(as if you clicked the Go Away box). palette, the Color command applies a color to both
Placing story on page. If the story being closed the fill and line of objects drawn in PageMaker. If
has not been placed, PageMaker switches to the an object has a fill style of None, the Color
previously active page in layout view and displays command changes the fill style to Solid.
the loaded text gun. To place the story on the page, Example. The following example applies a 25%
use the place command. red tint to the first object drawn on the page.
select 1
color "Red", 25
ADOBE PAGEMAKER 7.0 52
Commands
leftbottom or 6
Use sBetString only with cFormat. Use the
righttop or 7
sBetString parameter only if you specify page
rightbottom or 8
numbers with the cFormat parameter.
xyLocation x or y coordinate, relative to the current
Table of contents without a title. To create a table
zero point, to which you want the speci-
of contents without a title, enter the value for sTitle fied part dragged. If cHandle is a corner
as a pair of quotation marks with nothing between (that is, lefttop, leftbottom, righttop, or
rightbottom), both the x and y coordi-
them ("").
nates are required.
Placing a new table of contents. When you create
yLocation y coordinate, relative to the current zero
a new table of contents (by entering 0 as the point, to which you want a corner
bReplace value), PageMaker does not place it on dragged
the page, but displays the loaded text icon. To place
the new table of contents, follow CreateTOC with Measurement units for scripts. If you do not
the Place command. specify a unit of measure for xyLocation (e.g., i for
inches), PageMaker uses the default unit of
Example. The following example creates a table of
measure, specified in the Preferences dialog box or
contents, titled "Contents," which replaces an
with the MeasureUnits command.
existing table of contents, does not include book
publications, and specifies that the page number Crop single images only. The Crop command can
comes after the entry. The character between the crop only one image at a time; if more than one
entry and page number is a tab, which results in a image is selected, the plug-in or script stops
right-aligned page number preceded by leader running.
dots. The table of contents includes entries from
Crop imported images only. The Crop command
hidden layers.
can crop only imported images, not graphics
c re a te to c " Co n ten t s " 1 , 0 , 2 , " ^ t " , t r u e drawn with the Box, Line, and Oval commands or
the respective drawing tools.
ADOBE PAGEMAKER 7.0 56
Commands
cHandle for transformed objects. (See illus- Story editor: no cutting from dialog boxes.
tration below.) If the selected object was skewed, Unlike Cut on the Edit menu, the Cut command
rotated, or reflected, cHandle should correspond does not cut text from the Find, Change, or Spell
to the handle before the object was transformed. dialog boxes. Instead, it cuts the text selected in the
For example, lefttop always refers to the original current story, regardless of whether one of the
left-top handle of an object, not to the handle that dialog boxes is displayed.
is currently the left-most top handle.
Example. The following example selects all
objects on the page (or all text in a story if a text
block contains the text insertion point) and cuts
them to the Clipboard.
selectall
Layout view only. The Crop command works cut
only in layout view.
Example. The following example selects the first
See also:
object drawn and drags the left-bottom handle to
the horizontal and vertical coordinates (four The Select, SelectAll, and RenderClip commands
inches and two inches, respectively).
select 1 DefaultPrintClrSpace
crop leftbottom 4i, 2i
folder "mydir" and the "mysubdir" subfolder in d1 Percentage of red if cModel equals rgb-
Windows. pct (0)
dDefaultND Default neutral density for ink (to 3 deci- dontcare or -2 if redefining an existing
mal places), from 0.000 to 10.000 master page (you cannot change this set-
ting when redefining)
dontcare or -2 to leave value unchanged
default or -1 to use current Document
Master setting
Example. The following example defines
HiFiGreen with a 45-degree screen angle, a screen xLeftOrInside Inside (or left) margin
ruling of 60, and a default neutral density of 0. -2 to leave margin unchanged (use only if
redefining an existing master page)
defineink "HiFiGre en", "45", "60", 0.000
-1 to use current Document Master set-
ting
See also: yTop Top margin
The DefineColor, InkND, and PrintInk com- -2 to leave margin unchanged (use only if
mands redefining an existing master page)
The GetColor, GetColorInfo, GetColorNames, default or -1 to use current Document
GetInkNames, and GetInkND queries Master setting
Example. The following example selects all Measurement units for scripts. If you do not
objects on the page (or all text in a story if a text specify a unit of measure (e.g., i for inches),
block contains the insertion point) and deletes PageMaker uses the default unit of measure,
them. specified in the Preferences dialog box or with the
MeasureUnits command.
selectall
dele te Determining drawing order. Remember that
drawing order is determined by the order in which
the guide was drawn on the page, not its position
See also:
on the page.
The Clear command
Layout view only. The DeleteHoriz command
works only in layout view.
DeleteContent Example. The following example deletes two
Deletes the content, whether text or a graphic, guides: the horizontal guide seven inches from the
from the selected frame. This removes the frame's current location of the rulers' zero point and the
content from the publication. To remove the third horizontal guide drawn.
content from the frame, but keep it in the publi- deletehor iz 7i
cation as an independent item, use the Separate- deletehor iz guide 3
Content command.
Layout view only. The DeleteContent command See also:
works only in layout view.
The DeleteVert command
Example. The following example deletes content
from the selected frame and from the publication.
delete content DeleteLayer sFromLayer, sToLayer
Deletes a layer and moves its objects to another
layer, or removes a layer and its objects altogether.
See Also:
The AttachContent, BreakLinks, FrameContent- Parameter Values to Enter
Pos, FrameInset, LinkFrames, SeparateContent, sFromLayer Name of the layer to be deleted
and ToggleFrame commands
sToLayer Name of layer to move objects to, or "" to
The GetFrameContentPos, GetFrameInset, GetFr- delete the objects
ameContentType, GetIsFrame, and GetNext-
Frame queries
Layout view only. The DeleteLayer command
works only in layout view.
DeleteHoriz yLocation Example . The following example removes the
Deletes the specified horizontal guide, using either layer "Notes" and all of its contents.
its location or drawing-order number. d e l e te l ayer " No te s " , " "
Example. The following example deletes the nTypeFlag Identifier you defined to distinguish
master page named TOC. between types of private data for same
cTargetClass
deletemaster page "TO C "
dontcare or -2 to delete all private data
for specified cTargetClass and associated
with specified plug-in, or if cTargetClass
See also: is dontcare or -2
The DefineMasterPage, MasterPage, RenameMas-
nCount Number of deletions
terPage, and SaveAsMasterPage commands
1 if nTypeFlag is set to dontcare or -2
The GetMasterPage, GetMasterPageInfo, and Get-
MasterPageList queries nTargetID Internal PageMaker identifier for element
(graphic, image, text block, page, master
page, or story) to which private data is
associated
DeletePrivateData sDeveloperID,
0 (zero) for publication (PageMaker
sPlugInID, cTargetClass, nTypeFlag, deletes private data in current publica-
nCount, (nTargetID)... tion only)
Deletes the private data and private strings dontcare or-2 to delete all private data
associated with the specified input criteria. Using for all elements in specified cTargetClass
and associated with a specified nType-
dontcare or -2 for parameter values, you can delete Flag, or if nTypeFlag is set to dontcare or
all private data and strings associated with any of -2
the following: your plug-in; your plug-in and a
class of objects; your plug-in, a class of objects, and Errors. PageMaker returns an error if:
a private ID; or your plug-in, a class of objects, a
• The specified element has no private data
private ID, and a specific element.
associated with the specified plug-in and
Parameter Values to enter nTypeFlag (CQ_NOPDATA).
sDeveloperID Four-character string representing your • cTargetClass and nTargetID together do not
name or your company name, in quota- specify an existing element (graphic, image, text
tion marks (e.g., ADBE for Adobe)
block, page, master page, story, or publication)
sPlugInID Four-character string representing the (CQ_INVALID_TARGET).
plug-in, in quotation marks (e.g., KYLN
for Keyline plug-in) • nTypeFlag is -1 (CQ_INVALID_CONTEXT).
ADOBE PAGEMAKER 7.0 63
Commands
Five parameters needed to identify data. Layout view only. The DeleteRulerGuides
PageMaker requires five parameters to identify command works only in layout view.
private data:
Example. The following example deletes all ruler
• sDeveloperID and sPlugInID to identify the guides on the current page.
plug-in. deleter ulerguides
• cTargetClass and nTargetID to identify the
element being assigned the data.
• nTypeFlag to distinguish between data types DeleteUnusedLayers bSkipUI
(you define this parameter). Deletes all the unused layers in a publication.
Dontcare or -2. If you set any parameter to Parameter Values to Enter
dontcare or -2, you must set all subsequent param-
bSkipUI Off or 0 prompts the user for confirma-
eters to dontcare or -2 as well, except nCount, tion before the layers are deleted
which must be set to 1. If you set cTargetClass to -
On or 1 deletes the layers without
2, then set nTypeFlag and nTargetID to -2 and set
prompting the user for confirmation
nCount to 1.
Examples. The following example deletes all Example. The following example deletes all of the
private data of all ClassObject elements that are unused layers without prompting the user for
associated with ADBE and KYLN and have a confirmation.
private ID of 15.
d e l e teu nu s e d l aye r s 1
d el etep r iv a ted a ta "A D B E ", "K Y L N" , c la s s ob je c t ,
15, 1, dontcare
See Also:
The following example deletes all private data of all
ClassObject elements that are associated with The AssignLayer, DeleteLayer, LayerOptions,
ADBE and KYLN. LockLayers, MoveLayer, NewLayer, PasteRemem-
bers, SelectLayer, ShowLayers, and TargetLayer
d el etep r iv a ted a ta "A D B E ", "K Y L N" , c la s s ob je c t , commands
dontcare, 1, dontcare The GetLayerFromID, GetLayerList, GetLayerOp-
The following example deletes all private data in tions, GetPasteRemembers, and GetTargetLayer
the publication that is associated with ADBE and queries
KYLN.
deletepr iv atedata "ADBE", "KYLN", dontcare,
dontcare, 1, dontcare
DeleteVert xLocation
Deletes the specified vertical guide, using either its
location or drawing-order number.
See also:
Parameter Values to enter
The PrivateData and PrivateString commands
The GetPrivateData, GetPrivateList, and GetPri- xLocation x coordinate of the vertical guide to be
deleted, relative to rulers' zero point
vateString queries
guide #, where # is the drawing-order
number of the guide (e.g., deletehoriz
guide 2)
DeleteRulerGuides
Deletes all ruler guides on the current page.
ADOBE PAGEMAKER 7.0 64
Commands
See also:
The SelectAll command
The GetSelectList and GetSelectInfo queries
ADOBE PAGEMAKER 7.0 65
Commands
dots or 17
ADOBE PAGEMAKER 7.0 69
Commands
FindParaAttr, FindTypeAttr1, FindTypeAttr2, and --searches only from inser t ion point to end of
FindWindow commands stor y,
The GetChangeParaAttr, GetChangeTypeAttr1, change "Note", "Tip", allstor ies, 1, anycase,
GetChangeTypeAttr2, GetChangeWindow, Get- a lli n s t a n ce s , c le a r
FindParaAttr, GetFindTypeAttr1, findnext--finds next instance of "Note",
GetFindTypeAttr2, and GetFindWindow queries - - re ga rd le s s of a t t r i b u te s , s e a rch i n g a ll s tor ies
sFontName Name of font (exactly as it appears on Story editor only. The FindTypeAttr1 command
Type menu), in quotation marks (to a works only in story editor.
maximum of 63 characters)
Plug-ins and external scripts. If story editor is not
"Any" (quotation marks required) for
Any font (i.e., to not include font name in active, PageMaker returns
search criteria; default setting) CQ_LO_INVALID_MODE and disregards the
command.
dPointSize Point size of type (from 4.0 to 650.0)
any or -3 for Any size (i.e., to not include Type styles are additive. To set the cTypeStyle
point size in search criteria; default set- parameter to multiple type styles, either separate
ting) the desired style option with the plus sign (+) or
dLeading Amount of leading, in points (from 0.0 to add the numeric equivalents for the styles. For
1300.0) example, for bold (1) and underline (4), you can
any or -3 to specify Any leading either set cTypeStyle to boldstyle+underline or to
5 (the sum of 1 and 4).
auto or -1 for automatic leading
All attributes cleared first. The settings you
cTypeStyle any or -3 for Any (i.e., to not include type
style in search criteria; default setting) include with the FindTypeAttr1 command replace
all existing attribute settings.
normalstyle or 0 for Normal
Or, any combination of the following Any for cTypeStyle, cPosition, and cCase. Unlike
styles, separated by the plus sign (+), or the Type Styles pop-up menu in the Find
the actual sum of their values: Attributes dialog box, the any or -3 setting for
boldstyle or 1 for Bold cTypeStyle pertains only to the type styles Bold,
italicstyle or 2 for Italic Italic, Underline, Strikethru, Outline, Shadow, and
Reverse. The value of cTypeStyle does not affect
underlinestyle or 4 for Underline
the cPosition and cCase parameters, which are
strikethrustyle or 8 for Strikethru
turned off and on separately.
outlinestyle or 16 for Outline (Macin-
tosh only)
GetTypeStyle values doubled. If you are using the FindTypeAttr2 dSetWidth, cTrack,
GetTypeStyle query in conjunction with sColorName, nTintValue
ChangeTypeAttr1, FindTypeAttr1,
Sets additional text attributes (horizontal scale,
GetChangeTypeAttr1, or GetFindTypeAttr1, note
tracking, color, and tint) to be used for the search
that the GetTypeStyle query returns different
text in the Find, Change, and ChangeAll
values for the type styles. With the exception of
commands.
normal, all the GetTypeStyle values are twice the
values used in the find and change commands and Parameter Values to enter
queries. For example, bold is 2 for GetTypeStyle
dSetWidth Percentage to scale the character width
and 1 for ChangeTypeAttr1, FindTypeAttr1, (from 5.0 to 250.0; normal is 100.0)
GetChangeTypeAttr1, and GetFindTypeAttr1.
any or -3 for Any set width (i.e., to not
Normal, however, is 1 in GetTypeStyle and 0 in the include set width settings in search crite-
other commands and queries. ria)
Example. The following example changes all 10- cTrack dontcare or -3 for Any tracking (i.e., to
point, bold, underlined text in the current publi- not include track settings in search crite-
ria)
cation to 9-point, Helvetica bold. Notice that it
first sets all other Find and Change attributes to notrack or 0 (zero) for No Track
Example. The following example changes all Example. The following example opens the Find
purple text in the current publication to 93% tint dialog box.
of purple. Notice that it first sets all other Find and
findw indow open
Change attributes to Any.
fi n d t y p ea tt r1 "Any ", - 3, - 3, - 3, - 3 , - 3
See also:
ch a n g e t y p e a t t r 1 " Any " , - 3 , - 3 , - 3 , - 3 , - 3
fi n d p a r a a tt r "Any ", - 3, - 3 The Change, ChangeAll, ChangeNext,
changepar aatt r "Any", -3, -3
ChangeParaAttr, ChangeTypeAttr1,
ChangeTypeAttr2, ChangeWindow, Find, FindN-
fi n d t y p ea tt r2 - 3, - 3, "Pu r p l e", - 3
ext, FindParaAttr, FindTypeAttr1, and
ch a n g e t y p e a t t r 2 - 3 , - 3 , " Pu r p l e " , 9 3
FindTypeAttr2 commands
ch a n g e a l l " " , " " , a l l s to r i e s , a nyc a s e , a l l i n s t a n ce s ,
The GetChangeParaAttr, GetChangeTypeAttr1,
useatt r i butes
GetChangeTypeAttr2, GetChangeWindow, Get-
FindParaAttr, GetFindTypeAttr1,
See also: GetFindTypeAttr2, and GetFindWindow queries
The Change, ChangeAll, ChangeNext,
ChangeParaAttr, ChangeTypeAttr1,
ChangeTypeAttr2, ChangeWindow, Find, FindN- Font sFontName
ext, FindParaAttr, FindTypeAttr1, and FindWin- Specifies the font for text. Action depends on
dow commands which tool is active, whether any text is selected,
The GetChangeParaAttr, GetChangeTypeAttr1, and whether a publication is open when the
GetChangeTypeAttr2, GetChangeWindow, Get- command is executed.
FindParaAttr, GetFindTypeAttr1,
GetFindTypeAttr2, and GetFindWindow queries Parameter Values to enter
open or 1 to open Find dialog box Specifying the font name correctly. Type the font
name exactly as it appears when you choose Font
Story editor only. The FindWindow command from the Type menu. If the system on which the
works only in story editor. plug-in or script is running includes Adobe Type
Reunion (ATR), Font Harmony, or another utility
Plug-ins and external scripts only. If story editor that alters the font list, the name must appear as it
is not active, PageMaker returns would in the menu without the utility running. To
CQ_LO_INVALID_MODE and disregards the see the appropriate name, open the Type Specifica-
command. tions dialog box and select the wanted font.
Change and Spell closed , depending on platform. Example. The following example selects the
PageMaker for the Macintosh closes the Change second text block placed on the page and specifies
dialog box before opening the Find dialog box. that the font be changed to Times Bold Italic.
PageMaker for Windows closes both the Change
select 2
and Spell dialog boxes.
font "BI Times BoldItalic"
ADOBE PAGEMAKER 7.0 77
Commands
nRight Size of the inset on the right edge of the Layout view only. The GoForward command
frame works only in layout view.
Example. The following example returns to the
Note. The selected frames must have text content or source of a hyperlink and then moves forward
no content. An inset does not work with a graphic again, assuming that there is a valid hyperlink at
frame. the location 5i, 5i.
Layout view only. The FrameInset command hy perjump 5i, 5I
works only in layout view. goba ck
Example. The following example adds a 0.25 inch gofor ward
inset to all four sides of a selected frame.
frameinset 0.25i, 0.25i, 0.25i, 0.25i See Also:
The GoBack and HyperJump commands
See Also:
The AttachContent, BreakLinks, FrameContent-
Pos, LinkFrames, SeparateContent, and Toggle-
Group
Frame commands Groups the currently selected objects.
The GetFrameContentPos, GetFrameInset, GetFr- Locked and unlocked objects. You cannot group
ameContentType, GetIsFrame, and GetNext- locked and unlocked objects together. All objects
Frame queries in a group must have the same lock status;
otherwise PageMaker returns an error
(CQ_MIXED_LOCK).
ADOBE PAGEMAKER 7.0 79
Commands
How grouping affects the drawing order. A group Measurement units for scripts. If you do not
is considered an object and has a drawing-order specify a unit of measure (e.g., i for inches),
number like any other object. When you group, the PageMaker uses the default unit of measure,
objects within the group retain their stacking order specified in the Preferences dialog box or with the
in relation to each other, but their drawing-order MeasureUnits command.
numbers always follow the group number.
Layout view only. The GuideHoriz command
works only in layout view.
Example. The following example creates a
horizontal ruler guide 5.5 inches from the current
location of the rulers' zero point.
guidehor iz 5.5i
See also:
The DeleteHoriz, DeleteRulerGuides, Guides, and
For example, on a page with four objects, suppose
GuideVert commands
you group the first and fourth objects. The objects
The GetHorizGuides query
numbered 2 and 3 each move down in the drawing
order (becoming 1 and 2); the group becomes the
new object number 3; and the two objects in the
group become numbers 4 and 5.
Guides bState
Displays margin guides, column guides, and ruler
Example. The following example selects the first-
guides (including any guides created on master
and fourth-drawn objects and creates a group of pages).
the two objects.
Parameter Values to enter
select 1
s e l e c texten d 4 bState off or 0 (zero) to hide guides
g ro u p on or 1 to display guides
Layout view only. The GuideVert command bState True displays the palette
works only in layout view. False hides the palette
Layout view only. The HyperJump command plusdictionary or 2 for Manual Plus Dic-
tionary
works only in layout view.
plusalgorithm or 3 for Manual Plus
Example . The following example follows a Algorithm
hyperlink, assuming that there is a valid hyperlink
at the location 5i, 5i.
hy perjump 5i, 5I
ADOBE PAGEMAKER 7.0 81
Commands
Note. The ImageSaveAs command has four formats: bSaveForSep True saves for separation
TIFF, JPEG, GIF, and DCS. The version of Image- False saves composite
SaveAs that is used is determined by the nFormat
parameter.
ADOBE PAGEMAKER 7.0 82
Commands
nTIFFOption If bSaveForSep is TRUE, then nTIFFOp- nResolution 0 to keep the image at its current resolu-
tion indicates the Preview mode tion
bCropped, nFormat, nQuality, nResolution, bLink True changes the link to the new file
bColorspace
False keeps the link
Parameter Values to Enter
bProfile True includes color management profile
sFilename File to save image as with image
3 for Netscape
4 for System
ADOBE PAGEMAKER 7.0 83
Commands
False saves entire image fImage Full path and name for the new color
image, in quotation marks (you must
nFormat (0 to save as TIFF) specify a new name; you cannot over-
write the existing image)
(1 to save as JPEG)
bUpdateLink 0 to leave image that is placed on page
(2 to save as GIF) linked to original file
3 to save as DCS 1 to link image that is placed on page to
the new, preseparated image
cPreview 0 for no preview
2 for Best
nCompositePS- 0 for no composite
Size nFileFormat 0 for save as a TIFF
1 for 72-dpi composite (default)
cPSEncoding 0 uses ASCII on PC / Binary on Mac bCropped true for save as a cropped image
(default) false for save as a full image
1 uses ASCII on Mac / Binary on PC
ADOBE PAGEMAKER 7.0 84
Commands
2 for maximum lossless fFilename Exact name of file you want to import, in
quotation marks, including optional
3 for maximum lossy pathname to folder and disk (to a maxi-
mum of 91 characters for each name and
nDataFormat 0 for Base TIFF
path)
1 Optimize for separation
cAsWhat independent or newstory or 0 (zero)
2 Optimize for large images
replaceentire or inlinegraphic or 1
b60SpecCompli true for strict compliance with the 6.0
inserttext or replacetext or 2
ance TIFF specification
• The selected image is a color bitmap image (not bConvert false or 0 (zero)
a monochrome or grayscale image, nor an image in true or 1 to convert quotation marks to
the PICT, EPS, or Windows metafile format). typographer's quotation marks (default)
The GetObjectIDList, GetObjectList, GetSelec- bRetainCrop false or 0 (zero) to place entire image
tIDList, and GetSelectList queries (default)
Parameter Values to enter To locate the correct name for sFltName, see the
list of installed filters displayed in the About
sFltOptions String composed of options specific to
PageMaker dialog box (select About PageMaker
the filter, in quotation marks. (Separate
each option within quotation marks by a while holding down the Control or Command
space.) key). The filter name must match the name in the
list, minus the version number.
Place new or independent stories. Using the
Word 6.0 import filter. To import an MS Word 6.0
Independent or NewStory keywords to import
file, use the table below to determine the correct
does not actually place the file on the page, but
filter name (sFltName):
displays the appropriate loaded icon. To specify the
placement of the file, use the Place command. To specify import preferences, include any of the
Immediate file placement. The ReplaceEntire,
following preference strings for sFltOptions.
InlineGraphic, InsertText, and ReplaceText Optional words are in brackets and represent the
keywords do not display a loaded icon; instead, the default setting. Enclose multiple preference strings
file is placed immediately. within the same set of quotation marks and
separate each with a space. (Refer to the Filters
cAsWhat: graphics or text. For the cAsWhat ReadMe.)
parameter, specify Independent, ReplaceEntire, or
InlineGraphic when importing graphic files. Preference string Action
Specify NewStory, ReplaceEntire, ReplaceText, or TOC [TRUE] Import TOC Entries from
InsertText when importing text files. Outline selected
nFilters, sFltName, and sFltOptions parameters. TOC FALSE Import TOC Entries from
Outline turned off
PageMaker automatically suppresses the filter-
option dialog boxes of certain filters when INDEX [TRUE] Import Index Entry Fields
importing through a plug-in. For some filters, you selected
can specify import options using the sFltName and INDEX FALSE Import Index Entry Fields
sFltOptions parameters. The options are specific to turned off
the named filter and replace those listed in that SPACING SET_WIDTH Horizontal Scale selected for
filter's dialog box. (At this writing, only two filters Import Con-
accept import options from the Import command: densed/Expanded Spacing
As
the Text-only import filter and the Kodak Photo
CD import filter.) SPACING [MAN_KERN] Kerning selected for Import
Condensed/Expanded Spac-
Note that the sFltName parameter does not dictate ing As
which filter PageMaker must use to import the file.
SPACING TRACK_KERN Tracking selected for Import
(In fact, you can list more than one set of filter and Condensed/Expanded Spac-
options.) sFltOptions indicates the options ing As
PageMaker should use only if the specified file is
PG_BRK_BEFORE [PG_BRK] As Page Break Before
the correct type for the named filter. Regardless of selected for Import Page
the filters or options you specify, PageMaker always Break Before Paragraph
imports a file using the most appropriate filter for PG_BRK_BEFORE COL_BRK As Column Break Before
that file (based on the file extension of Windows selected for Import Page
files and the file type of Macintosh files). Break Before Paragraph
Preference string Action The following table lists the measurement abbrevi-
ations you use to specify the units in the strings
TABLES [TRUE] Import Tables selected
OUTPUT_WIDTH and OUTPUT_HEIGHT:
TABLES FALSE Import Tables turned off
System Abbreviation Example
See also:
The Place command
The GetImportFilters query
ADOBE PAGEMAKER 7.0 87
Commands
sBetEntries Characters that separate secondary cAction 0 or inknddefault to reset to the calcu-
entries in a run-in format (to a maximum lated default value
of seven characters: a typical value is a
semicolon and an en space) 1 or inkndset to customize the neutral-
density value for the color
sPageRange Characters that separate start and end of
a page range, in quotation marks (to a dNDValue Neutral density for the ink (to 3 decimal
maximum of seven characters; a typical places, if necessary), from 0.000 to 10.000
value is an en dash)
sBeforeXRef Characters before a cross-reference Tints. You cannot set the neutral-density value of
entry, in quotation marks (to a maximum a tint, only of its root color. To calculate the
of seven characters; a typical value is a neutral-density value for a tint, PageMaker
period and an en space)
multiples the neutral density of the root color by
sEnd Characters at end of entry, in quotation the tint's percentage of the root color.
marks (to a maximum of seven charac-
ters; a typical value is no character)
ADOBE PAGEMAKER 7.0 89
Commands
Example. The following example sets the neutral- Master pages optional. If you do not specify a
density value of spot color "Red" to 2.15. right master page, the command applies the left
master to any right pages you insert. If you do not
i n k n d " Re d " i n k n d s e t 2 . 1 5
specify either a left or right master page, the
InsertPages command applies the Document
See also: Master to the pages.
The TrapSettings command Example. The following example inserts four
The GetTrapSettings, and GetInkND queries pages after the current page, applies Ad Layout to
left pages, and applies Editorial master to right
pages.
InsertPages nHowMany, cWhere[,
inser t pages 4, after, "Ad Layo ut", "Editor ial"
sLMOrSnglMaster[, sRMasterName]]
Specifies the number of pages to insert and where
they are to be inserted in the open publication. InvalidateRect xLeft, yTop, xRight,
Parameter Values to enter yBottom
nHowMany Number of pages to insert Instructs PageMaker to redraw the specified area of
the screen the next time PageMaker updates the
cWhere before or 0 (zero) for before current
screen.
page
sLMOrSnglMaster Name of master page, in quotation yTop y coordinate (in device coordinates) of
marks, to apply to left pages (or to sin- top-left corner
gle pages for single-sided publications)
xRight x coordinate (in device coordinates) of
"" (empty quotation marks) if inserting bottom-right corner
only a right page
yBottom y coordinate (in device coordinates) of
sRMasterName Name of master page, in quotation bottom-right corner
marks, to apply to right pages
See also:
The Cut, Delete, Select, and SelectAll commands
ADOBE PAGEMAKER 7.0 91
Commands
Red 1
Select text with TextSelect command or text tool.
To use this command, you must select the text Green 2
Dark Blue 16
LayerOptions sLayerName,
Pink 17
sNewName, bShow, bLock, nColorIndex,
nRed, nGreen, nBlue Lavender 18
sNewName The new name for the layer, "" leaves Burgundy 22
the name unchanged
ADOBE PAGEMAKER 7.0 92
Commands
nGreen Green values for custom handle color Example. The following example unlocks all of
the layers.
nBlue Blue values for custom handle color
locklayers 0
Note. On the Macintosh, the red, green, and blue
values range from 0 to 65535. On Windows, the red, See Also:
green, and blue values range from 0 to 255. For
The AssignLayer, DeleteLayer, DeleteUnusedLay-
custom colors, nColorIndex has the value custom-
ers, LayAdjOpts, LayerOptions, MoveLayer, New-
handlecolor; otherwise values range from 0 to
Layer, PasteRemembers, SelectLayer, ShowLayers,
customhandlecolor. and TargetLayer commands
Example. The following example renames a The GetLayerFromID, GetLayerList, GetLayerOp-
layer and sets options so that its objects are tions, GetPasteRemembers, and GetTargetLayer
visible, locked, and have orange handles. queries
Because one of the default colors is being used,
the values for red, green, and blue are unused
and left at 0. LayAdjOpts nSnapToZone, bResizeOK,
bIgnoreLocks, bIgnoreGuides,
layeroptions "MyLayer", "Altered", TRUE,
TRU E , 9, 0, 0, 0
bMoveGuides, bKeepGuidesAligned
Changes the preferences for layout adjustment.
The AssignLayer, DeleteLayer, DeleteUnusedLay- nSnapToZone The maximum distance over which an
ers, LockLayers, MoveLayer, NewLayer, PasteRe- object will snap to a guide
members, SelectLayer, ShowLayers, and
bResizeOK True resizes groups and imported graph-
TargetLayer commands ics to fit
The GetLayerFromID, GetLayerList, GetLayerOp- False retains current size of groups and
tions, GetPasteRemembers, and GetTargetLayer imported graphics
queries
bIgnoreLocks True moves locked objects with layout
laya djopts 0.016i, TRUE, TRUE, FALSE, TRUE, auto or -1 for automatic leading
TRU E
Automatic leading specifications. If you specify
automatic leading, PageMaker creates leading 20%
See also:
larger than the type size. For example, 10-point
The AssignLayer, DeleteLayer, DeleteUnusedLay- type is automatically assigned 12 points of leading.
ers, LockLayers, MoveLayer, NewLayer, PasteRe-
To change this percentage, choose the Paragraph
members, SelectLayer, ShowLayers, and
command from the Type menu, click the Spacing
TargetLayer commands
button, and then type a new value in the
The GetLayerFromID, GetLayerList, GetLayerOp-
Autoleading edit box. You can also use the
tions, GetPasteRemembers, and GetTargetLayer
SpaceOptions command.
queries
Leading measurements. The way leading is
measured depends on the type of leading that is
LayerPalette bState currently specified (e.g., Proportional, Top of caps,
Displays or hides the palette that contains the or Baseline). To set the leading type, use the
layers panel. SpaceOptions command.
dPoints truncated. If dPoints includes more than
Parameter Values to Enter
one decimal place, PageMaker truncates the value
bState True displays the palette to tenths of a point. For example, 12.44 becomes
False hides the palette 12.4 points.
Example. The following example specifies 16.5
Example. The following example displays the
points of leading.
palette that contains the layers panel.
leading 16.5
l ayer p a l e t te 1
See also:
See also:
The SpaceOptions command
The AssignLayer, DeleteLayer, DeleteUnusedLay-
The GetLeading query
ers, LayAdjOpts, LockLayers, MoveLayer, New-
ADOBE PAGEMAKER 7.0 94
Commands
of the next letter is called the "pen advance" x2 x-axis coordinate of the second end
distance. The dLetterDesired is measured by the point
percentage of the space band that is added to or y2 y-axis coordinate of the second end
subtracted from the pen advance. point
from the left edge of the page, two inches down thickdash or 15
from the top, and stopping eight inches from the
left edge of the page. squares or 16
dontcare or -2 to leave
LineStyle cStyle[, bReverse[, dWeight[, reverse setting unchanged
Conversely, if multiple lines with mixed reverse Layout view only. The LinkFrames command
and nonreversed styles are selected, then linestyle works only in layout view.
3, -2 will set their weights without affecting the
reverse style. See Also:
dWeight parameter overrides cStyle. Set the The AttachContent, BreakLinks, DeleteContent,
dWeight parameter to -2 unless you are defining a FrameContentPos, FrameInset, SeparateContent,
custom line. The value of dWeight overrides the and ToggleFrame commands
line weight specified in cStyle. The GetFrameContentPos, GetFrameInset, GetFr-
dWeight truncated. If dWeight includes more ameContentType, GetIsFrame, and GetNext-
Frame queries
than one decimal place, PageMaker truncates the
value to tenths of a point. For example, 12.199
becomes 12.1 points.
LinkOptions bUpdAutoText,
Text tool, story editor, or no object. If the text bAlert1stText, bStoreInPub,
tool is active, the Line Style command results in an bUpdAutoGrph, bAlert1stGrph[,
error. If either the story editor is active or no bDefault]
PageMaker objects are selected, the specified line
Sets the link options of the currently selected
style becomes the default line for the publication.
graphic or text block; if nothing is selected, deter-
Example. The following example selects the first mines how subsequently placed graphics and text
object drawn and applies a line style that is four are stored and updated.
points wide and reversed. It then selects the
Parameter Values to enter
second object drawn and applies a custom
weight of 2.5 points. The line background is bUpdAutoText false or 0 (zero)
transparent. true or 1 to automatically update publi-
cation upon opening if linked text has
select 1
been modified; if graphics are selected,
l i n est y l e fo u r p o in t, t r u e this parameter is ignored
select 2
bAlert1stText false or 0 (zero)
l i n est y l e cu sto mso l id , fa l se, 2. 5, f a ls e
true or 1 to alert user before PageMaker
automatically updates modified text (if
See also: bUpdAutoText is set to 1); if graphics are
selected, this parameter is ignored
The FillAndLine and Line commands
bStoreInPub false or 0 (zero)
The GetFillAndLine and GetLineStyle query
true or 1 to store linked graphic in publi-
cation (not necessary for text or EPS files,
which are already stored in publication);
LinkFrames nNumFrames, nObjectID1, if text is selected, this parameter is
nObjectID2, [nObjectID3 ... nObjectIDN] ignored
Parameter Values to enter nMaskObjectID. While you can mask any object
Example. The following example displays all "all" (quotation marks required) to apply
specified masters to all pages
text and graphics from the master pages on the
current page. "" (empty quotation marks) to apply
specified masters to the current page or
master items on pages (default action)
master page "None", "Document master", "5-10" cMeasurement Measurement system for the horizontal
ruler and for all coordinates (x- and y-
axis), as specified with these values:
Example. The following example applies "Ad
inches or 0 (zero)
layout" to left pages and "Editorial" master to right
pages, for the pages from 1 to 100. Ruler guides are inchesdecimal or 1
inchesdecimal or 1
The DefineMasterPage, DeleteMasterPage,
RenameMasterPage, and SaveAsMasterPage com- millimeters or 2
mands picas or 3
The GetMasterPage, GetMasterPageInfo, and Get-
ciceros or 4
MasterPageList queries
custom or 5
master pagepalette 1
ADOBE PAGEMAKER 7.0 101
Commands
top or 3
MiniSave bottom or 4
Saves a copy of changes made to the open publi- Center of object:
cation and appends those changes to the original
center or 1
file.
Corner handles:
Automatic minisave. PageMaker automatically
appends any changes to the open publication lefttop or topleft or 5
rightbottom or 8 for the end point of the line MoveColumn nColumnNum, cSide,
xLocation[, cPage]
Moves a left or right column guide to the
specified location.
Measurement units for scripts. If you do not Example. The following example:
specify a unit of measure (e.g., i for inches),
• Creates a new, five-page publication.
PageMaker uses the default unit of measure,
specified in the Preferences dialog box or with the • Specifies a standard U.S. letter page (8.5 inches
MeasureUnits command. by 11 inches).
MultiplePaste changes defaults. Each time you • Changes the publication to double-sided, facing
use the MultiplePaste command, it sets the default pages.
offsets in the Multiple Paste dialog box. Use the • Sets the margins of the Document Master to: an
MultPasteOffset command to reset the default inside margin of 1 inch; a top margin of .5 inches;
offsets either to a different value or back to their an outside margin of .75 inches; and a bottom
original value. margin of .5 inches.
Example. The following example selects and • Starts the page numbers with page 1, leaves the
copies the third object drawn. It queries for the existing number of pages unchanged, restarts page
current default offset, pastes five copies, and then numbering, specifies Arabic style, and includes a
resets the default offsets back to their previous prefix of I- before each page number.
values. new 5
select 3 pagesize 8.5i, 11i
copy pageoptions 1, 1
g e t mu l t p a s te o f f s e t - - re p l y 3 , 3 pagemarg ins 1i, .5i, .75i, .5i
mu l t i p l e p a s te 5 , 0 p 4 , 0 p 9 - - s e t s o f f s e t s to n e w pagenumbers 1, -2, t r ue, ar abic, "I-"
values
mu l t p a s te o f f s e t 3 , 3 - - re s e t s o f f s e t s b a c k to
See also:
pre v ious values
The DefineMasterPage, PageMargins, PageNum-
bers, PageOptions, and PageSize commands
See also:
The Copy, MultiplePaste, and Paste commands
The GetMultPasteOffset query NewLayer sLayerName, bShow, bLock,
nColorIndex, nRed, nGreen, nBlue
Creates a new layer at the top of the layers list.
New [nPages]
Parameter Values to Enter
Creates a new publication with the specified
number of pages. sLayerName Name for the new layer
Olive Green 20
Measurement units for scripts. If you do not
specify a unit of measure (e.g., i for inches),
Peach 21 PageMaker uses the default unit of measure,
Burgundy 22 specified in the Preferences dialog box or with the
MeasureUnits command.
Grace Green 23
Automatic text block sizing. If you click the text
Ochre 24
tool within a column, PageMaker sizes the text
Purple 25 block to fit the column, moving the left and right
Light Gray 26
handles to the column edges. The NewStory
command works in the same way. PageMaker uses
Other... customcolorindex, "customcolorindex" the x1 and y1 location as a starting point for the
nRed Red values for custom handle color text, but moves x1 to the left edge of the column if
that coordinate falls within a column.
nGreen Green values for custom handle color
Top of text block. Unlike clicking the text tool, the
nBlue Blue values for custom handle color
y1 coordinate specifies the location of the top of
the text block.
ADOBE PAGEMAKER 7.0 106
Commands
Story editor. If you use the NewStory command Insertion point. Following this command, the
while in story editor, PageMaker disregards the x insertion point is active and positioned at the top
and y coordinates. To place the story on the page of the text block.
later, use the CloseStory command followed by the
yRightBottom a placeholder. When sizing the
Place command.
new text block, PageMaker ignores the value of
Move and resize commands. You can change the yRightBottom (a text block does not have a vertical
placement of the text block using the Move and dimension until it contains text). When you enter
Resize commands. or paste text, PageMaker expands the text block
down as far as necessary to accommodate the text,
Example. The following example switches to
stopping when it reaches the bottom of the page,
layout view and goes to page 1. It then creates a
the bottom of the pasteboard (if the text block is
new story at the location six inches right on the
contained entirely on the pasteboard), or a graphic
horizontal (x) axis and four inches down the
with column-break text wrap applied.
vertical (y) axis, relative to the rulers' zero point. If
the location is within a column, the text block will Column guides and Snap To options ignored.
move to the left edge of the column. Unlike the NewStory command, NewStorySized
ignores column guides and sizes the text block to
editlayout
the specified coordinates. Also, the command is
page 1
not sensitive to the setting of the Snap to Guides
newstor y 6i, 4i
and Snap to Ruler options. PageMaker sizes the
text block to the locations you specify, regardless of
See also: any guides or rulers.
The Move and Resize commands Order of coordinates. You must enter the coordi-
nates in order, from the top-left corner to the
bottom-right corner.
NewStorySized xLeftTop, yLeftTop,
xRightBottom, yRightBottom Off pasteboard. If the coordinates are off the
pasteboard, PageMaker sizes the text block to the
Creates new empty text block and sizes it to the
pasteboard edge.
specified coordinates (same as drag-clicking the
text tool). Errors. PageMaker returns CQ_INVALID_ARGS
for any of the following conditions:
Parameter Reply values
• You did not enter coordinates in order, from the
xLeftTop x-coordinate of left edge of text block
top left to bottom right. Left coordinates must be
yLeftTop y-coordinate of top edge of text block greater than right coordinates, and top coordinates
must be greater than bottom coordinates.
xRightBottom x-coordinate of right edge of text block
(Remember: In the PageMaker coordinate system,
yRightBottom y-coordinate of bottom edge of text values increase as you move down from the zero
block (value ignored, but must be a valid
value; see notes)
point.)
• The width of the text block exceeds the
Measurement units for scripts. If you do not maximum PageMaker column width (21 inches,
specify a unit of measure (e.g., i for inches), 533.4 millimeters, or 126 picas).
PageMaker uses the default unit of measure, • The height of the text block exceeds the
specified in the Preferences dialog box or with the maximum PageMaker column depth (22.6 inches,
MeasureUnits command. 574 millimeters, or 135p7.2 picas).
ADOBE PAGEMAKER 7.0 107
Commands
Specifying style names. When typing the style on or 1 to suppress printing of selected
objects
name, follow the spelling, capitalization, and
punctuation of the style exactly as it appears in the
Styles palette list. Graphics and text blocks only. The NonPrinting
command can suppress the printing of graphics
Example. The following example defines the new (including inline graphics selected with the pointer
style "Heading 2" (or edits an existing style by that tool or Select command) and text blocks, but not a
name) and specifies "Heading 1" as the style on range of text selected (highlighted) with the text
which it is based. It then identifies the style used in tool or TextSelect command.
paragraphs that follow "Heading 2."
Element must be selected. If no elements are
s t y l e b e g i n " He a d i n g 2 " selected (or if text is highlighted), PageMaker
basedon "Heading 1" returns an error.
n ex t s t y l e " Pa r a "
styleend Suppressing the display of nonprinting objects.
To suppress the display of nonprinting objects, use
the DisplayNonPrinting command.
ADOBE PAGEMAKER 7.0 108
Commands
Layout view only. The NonPrinting command Example. The following example moves the
works only in layout view. selected object one inch to the right along the
horizontal (x) axis, and three inches up along the
NonPrinting replaces SuppressPrint. To match
vertical (y) axis, relative to the rulers' zero point.
the name on the PageMaker Element menu, the
NonPrinting command replaces the nudge 1i, -3i
SuppressPrint command.
Example. The following example selects the third See also:
object drawn, marks it to be dropped when The Move command
printed, and turns off the display of all objects with
nonprinting applied.
select 3 Open fPubname[, cHowToOpen]
nonpr inting on Opens the specified publication or template as
displaynonpr inting off--hides ALL nonpr inting either an original or a copy.
o b j e c ts
Parameter Values to enter
Moves the selected object the amount specified. Open publications become active. If the specified
publication is already open, it becomes the active
Parameter Values to enter
publication.
xAmount Amount to move the object horizontally
Example. The following example opens a copy
yAmount Amount to move the object vertically of the "mypub" publication.
Open "mydisk:my folder :my pub", copy
Measurement units for scripts. If you do not
specify a unit of measure (e.g., i for inches),
PageMaker uses the default unit of measure, OpenStory nStoryID
specified in the Preferences dialog box or with the
Opens story editor to the specified story or, if story
MeasureUnits command.
editor is already open, switches to that story.
Moving multiple objects. The Nudge command
can move more than one object at a time if Parameter Values to enter
xInside Inside margin (or left margin for single- dontcare or -2 to leave the existing start-
sided publications) ing page number unchanged
xOutside Outside margin (or right margin for sin- dontcare or -2 to leave the existing num-
gle-sided publications) ber of pages unchanged
upperroman or 1
Layout view only. Use this command only in
lowerroman or 2
layout view.
upperalpha or 3
Measurement units for scripts. If you do not
specify a unit of measure (e.g., i for inches), loweralpha or 4
PageMaker uses the default unit of measure, dontcare or -2 to leave the existing num-
specified in the Preferences dialog box or with the ber style unchanged
Caution: Pages removed automatically. If you Layout view only. Use the PageOptions command
specify fewer pages than the publication currently only in layout view.
contains, pages will be removed from the end of
Selected objects deselected. The PageOptions
the publication.
command deselects any selected objects. It does
Layout view only. Use the PageNumbers not, however, deselect highlighted text (text
command only in layout view. selected with the text tool or TextSelect
command).
Selected objects deselected. The PageNumbers
command deselects any selected objects. It does Example. The following example sets up the
not, however, deselect highlighted text (text publication with double-sided, facing pages.
selected with the text tool or TextSelect
pageoptions 1, 1
command).
Example. The following example starts the page
See also:
numbers with page 1, leaves the existing number
of pages unchanged, restarts page numbering, The DefineMasterPage, New, PageMargins, and
specifies arabic style, and includes a prefix of I-- PageSize commands
before each page number. The GetPageOptions query
on or 1 for facing pages (turn facing Measurement units for scripts. If you do not
pages on only if the double-sided option specify a unit of measure (e.g., i for inches),
is also on)
PageMaker uses the default unit of measure,
specified in the Preferences dialog box or with the
Zero point reset. When you switch to or from MeasureUnits command.
facing pages, PageMaker automatically resets the
rulers' zero point to either the upper left corner of ZeroPoint reset. When you change the size of the
the page (facing pages off) or to the center top, page, PageMaker automatically resets the rulers'
where facing pages meet. zero point to either the top left corner of the page
(facing pages off) or to the center top, where facing
pages meet.
ADOBE PAGEMAKER 7.0 112
Commands
Document Setup dialog box), the largest page size on or 1 to specify that a paragraph
is 42 inches by 42 inches. If the publication is set begins a new column
with facing pages, the largest page size is 17 by 22 dontcare or -2 to leave existing setting
inches. unchanged
Layout view only. Use the PageSize command bPageBreak off or 0 (zero)
Sets paragraph options. The extent of the action dontcare or -2 to leave existing number
unchanged
depends on which tool is active, whether any text is
selected, and whether a publication is open when
Example . Assuming a paragraph is selected and it
the command is executed.
is a heading, the example specifies the following:
Parameter Values to enter
• Heading will not split over different columns,
bKeepTog off or 0 (zero) from page to page, or over graphics that have text-
on or 1 to keep lines of a paragraph wrap attributes (useful if you have a two-line
together, rather than split between dif- heading).
ferent columns, pages, or graphics
• Heading begins a new column.
dontcare or -2 to leave existing setting
unchanged • Heading need not begin a new page.
• Heading is included in the table of contents.
ADOBE PAGEMAKER 7.0 113
Commands
• Current widow and orphan control is acceptable. Pasting with the pointer tool active. When you
par aoptions 1, 1, 0, 1 , 0, -2, -2
paste using the pointer tool, the position of the
pasted text block or graphic depends on whether
or not the place on the page from which it was cut
See also: or copied is still visible on the screen. If it is
The GetParaOptions query displayed, PageMaker pastes the text block or
graphic at a slight offset from its original position.
If the position is no longer displayed, PageMaker
ParaSpace ySpaceBefore, ySpaceAfter centers the text block or graphic on the screen.
Adds extra space between paragraphs. The extent Pasting with the text tool active. If you paste a
of the action depends on which tool is active, graphic when the text tool is active and an
whether any text is selected, and whether a publi- insertion point exists, the graphic becomes an
cation is open when the command is executed. inline graphic at the insertion point.
Parameter Values to enter You can paste text in two ways using the text tool:
ySpaceBefore Amount of space to be added before • When the insertion point is within a text block,
each paragraph (from 0 to 22 inches)
the pasted text is threaded into the text block,
ySpaceAfter Amount of space to be added after each retaining the formatting it had when it was cut or
paragraph (from 0 to 22 inches) copied, but adjusting to the line length of the
current text block
Measurement units for scripts. If you do not
• When the insertion point is outside a text block,
specify a unit of measure (e.g., i for inches),
pasting creates a new text block. The line length of
PageMaker uses the default unit of measure,
the new text block depends upon where you
specified in the Preferences dialog box or with the
position the insertion point. If the insertion point
MeasureUnits command.
is between column guides, the line length will be
ySpaceBefore value ignored for columns. The the width of the column; if the insertion point is
ySpaceBefore value is not added if the paragraph outside the column guides, the line length will be
begins a column. the width of the image area.
Example . The following example specifies an Pasting items copied outside of PageMaker (Mac-
insertion of 0.2 inches after each paragraph. intosh only). PageMaker for the Macintosh uses
an internal clipboard, not the standard Macintosh
p a r a s p a ce 0 , . 2 i
Clipboard. To paste externally copied or cut data
into PageMaker for the Macintosh, you must first
See also: render those items to the PageMaker internal
The GetParaSpace query clipboard using the RenderClip command. Specify
in or 0 for the bDirection parameter.
Story editor: graphics. When you paste a graphic
Paste or image from the Clipboard into story editor, it is
Pastes the contents of the Clipboard into the open pasted as an inline graphic at the location of the
publication. insertion point.
Story editor: no pasting in dialog boxes. Unlike Example. The following example turns PasteRe-
Paste on the Edit menu, the Paste command does members on.
not paste text into the Find, Change, or Spelling
pasteremembers TRUE
dialog boxes. Instead, it pastes text at the location
of the insertion point in the current story,
regardless of whether one of the dialog boxes is See Also:
displayed. The AssignLayer, DeleteLayer, DeleteUnusedLay-
Example. The following example pastes the
ers, LayerOptions, LockLayers, MoveLayer, New-
Layer, SelectLayer, ShowLayers, and TargetLayer
contents of the Clipboard.
commands
p a ste The GetLayerFromID, GetLayerList, GetLayerOp-
tions, GetPasteRemembers, and GetTargetLayer
queries
See also:
The MultiplePaste, PasteLink, and PasteSpecial
commands PasteSpecial cFormat
Pastes the object from the Clipboard using the
PasteLink format specified.
Pastes the OLE-linked object from the Clipboard. Parameter Values to enter
No OLE-linked objects returns error. If the cFormat text or 0 for plain text
Clipboard does not contain an OLE-linked object, rtf or 1 for Rich Text Format (RTF)
PageMaker returns an error. eps or 2 for Encapsulated PostScript
Layout view only. Use the PasteLink command external or 3 for external PageMaker for-
only in layout view. mat
Drag-placing. The Place command works like the Example . The following example selects a text
click-place technique. The coordinates indicate block by clicking the top-left corner of the first
where the loaded text icon should be clicked. If the column; clicks the top windowshade handle of the
coordinates are within a column, the text object text block; switches to page 7; and places the text
spans the column. To imitate drag-placing, use the 3.5 inches down and to the right of the zero point.
PlaceSized command (or resize the text object after select (column 1 left, co lumn top)
placing it, using the Resize command). p l a cen ex t top
Layout view only. Use the Place command only in page 7
layout view. p l a ce 3 . 5 i , 3 . 5 i
The Import, Place, Move, and Resize commands nSides Number of sides, from 3 to 255
Display PPD names. On the Macintosh, the • Control palette displays ruler increments and
Preferences dialog box does not include the guide positions.
Display PPD Names option. Instead, PageMaker
• Fast autoflow is turned on.
for the Macintosh always displays the PPD
filename, regardless of the value you send for • Printer nickname is displayed in the Print
bDisplayName in the Preferences command. dialog box.
Although the bDisplayName parameter does • The amount of RAM reserved for drawing
nothing, the GetPreferences query still returns graphic elements remains unchanged.
the setting sent in the Preferences command.
• Images larger than 1000K are linked to the
Example. The following example specifies: publication rather than included in the publi-
cation.
• Text under nine pixels displays as grayed boxes
(greeked text). • A 1-pica horizontal nudge and 1-pica vertical
nudge.
• All guides appear behind text and graphics.
• Free up 250K of printer virtual memory prior
• Non-PageMaker graphics display as low-
to downloading a graphic.
resolution screen images (to speed redrawing of
the screen). preferences 9, back, nor malres, t r ue, t r ue,
smaller, false, t r ue, false, false, dontcare, 1000,
• Lines of text that have too much or too little
1p, 1p, nor mal
letter or word spacing are highlighted.
• Orphans and widows are highlighted.
See also:
• Saving results in smaller files, rather than files
The FontDrawing, Guides, LetterSpace, Measure-
with appended mini-versions of changes.
Units, ParaOptions, Rulers, StoryEditPref, and
• Straight quotation marks, rather than typog- WordSpace commands
rapher's quotation marks, are used. The GetPreferences query
ADOBE PAGEMAKER 7.0 123
Commands
Print [nCopies, nFirstPage[, nLastPage[, Printing to disk. If you include a filename for
fPrintToDisk[, sPCPrinter]]]] fPrintToDisk, PageMaker creates a PostScript print
file, even if you did not turn on Write PostScript to
Prints the current publication using the print
File with the PrintOptionsPS command. To specify
options set by the various print dialogs and
the type of PostScript file (PostScript, .EPS, or
commands. Optionally, specifies the number of
.SEP), precede the print command with the Print-
copies, page range, and, for printing to disk, the
OptionsPS command. For example, to print
name of the print file and the name of the PC
"mypub" to disk as a PostScript file in Windows,
printer.
you specify:
Parameter Values to enter
--Windows
nCopies Number of copies to print pr intoptionsps 3 0 0 0 0 0 0 nor malpostscr ipt off
pr int -2, -2, -2, "my pub", "HPLaserJet III on
dontcare or -2 to print the number of
copies specified with the PrintDoc com- LPT1:"
mand
See also:
See also:
The Print, PrintDeviceIndpntColor, PrintColors,
The AddPrinterStyle and RemovePrinterStyle
PrintInk, PrintTo, and PrintEPSPreviews com-
commands
mands
The GetPrinterStyles query
The GetPrintColor, GetPrintInk, and GetPrintTo
queries
Parameter Value
See also:
PrintOptions cScaleType, nVal,
cDuplex, bMarks, bPageInfo, cTiling[,
The GetPrintFeature, GetPrintFeatureItems, Get-
xOverlap]
PrintFeatureTitles, and GetPrintTo queries
Specifies non-PostScript print options executed
with the Print command.
PrintInk sName, bPrintInk, sAngle, Parameter Values to enter
sRuling
cScaleType numeric or 0 (zero) to scale the publica-
Sets the attributes of an ink to be used when tion
printing.
fitonpaper or 1 to scale the publication
to fit on the selected paper size
Parameter Values to enter
thumbnails or 2 to print thumbnails
sName Name of color, in quotation marks and
exactly as it appears in the Ink list nVal Percentage for numeric scaling in tenths
of a percent, from 5% (50) to 1600%
bPrintInk off or 0 (zero) (16000), if cScaleType is numeric or 0
on or 1 to print the specified ink Number of thumbnails per page, from 1
to 100, if cScaleType is thumbnails or 2
sAngle Screen angle, in quotation marks, at
which to print the ink, from "0.0" to -2 if cScaleType is fitonpaper or 1
"360.0"
cDuplex none or 0 (zero) None (no duplexing)
"" (empty quotation marks) to leave
angle unchanged shortedge or 1 for Short Edge (duplex
printing where the paper is to be bound
sRuling Screen ruling (frequency), in quotation on its short edge)
marks, for specified ink, from "1.0" to
"500.0" longedge or 2 for Long Edge (duplex
printing where the paper is to be bound
"" (empty quotation marks) to leave rul- on its long edge)
ing unchanged
bMarks off or 0 (zero) for Printer's Marks off
Layout view only. The PrintInk command works on or 1 for Printer's Marks on (to print
crop marks, registration marks, and cali-
only in layout view.
bration bars if the page size is 0.5 or more
inches smaller than the paper size)
ADOBE PAGEMAKER 7.0 128
Commands
marks. The pages are tiled, and each tile has a 0.5 psandtt or 1 for PostScript and TrueType
inch overlap. ttonly or 2 for TrueType only
pr intoptions 0, 1000, 0, 0, 1, 1, .5i bSymbol off or 0 (zero) Use Symbol Font for Spe-
cial Characters off
eps or 2 for EPS on (to save a single page PrintPaperPS sSize, sSource, yLength,
of a publication as an Encapsulated Post- xWidth, yPaperFeed, xPaperMargin,
Script file and add the PostScript com-
ments required for an EPS-formatted bOrientation, bCenter, cTiling, xOverlap,
document) cScaleType, nVal, cDuplex
preprint or 3 for For Separations on (to Specifies paper-related print options executed
create a .sep file: a publication ready for a with the Print command (for PostScript printers
color-separation, for use with Adobe Pre-
Print Pro, TrapWise, or PressWise) (Macin- only).
tosh only)
Parameter Values to enter
bExtraBleed off or 0 (zero) for Extra Image Bleed off
(image bleed =1/8 inch) sSize Name of standard paper size, in quota-
tion marks, and exactly as it appears in
on or 1 for Extra Image Bleed on (image the Size pop-up menu
bleed =1 inch if cToDisk = eps or 2 or pre-
print or 3) "Custom" (quotation marks required) for
user-defined paper size
bComm off or 0 (zero) for 2-way Communication
off sSource Name of paper tray, in quotation marks,
and exactly as it appears in the Source
on or 1 for 2-way Communication on pop-up menu
marks, the name, and the date of the publication, bOrientation normal or 0 (zero) for normal orientation
and prints images at normal resolution. Page of custom paper
information is sent to the printer in binary format. transverse or 1 for transverse orienta-
The PostScript error handler is included. The tion of custom paper
publication is not printed to disk, so Extra Image -2 if paper size is standard (not custom)
Bleed is off. 2-way communication is turned off.
bCenter 0 for Center Page in Print Area off
pr intoptionsps nor malimage, on, on, nor mal,
1 for Center Page in Print Area on (for
off, off, on, off, off, off asymmetrical print areas)
ADOBE PAGEMAKER 7.0 130
Commands
yPaperFeed, xPaperMargin, and xOverlap (e.g., i "" (empty quotation marks) when print-
for inches), PageMaker uses the default unit of ing from a Macintosh
Note: Works only with plug-ins and scripts written sDeveloperID. To ensure that no one else uses
in other programs. your four-character developer ID, you should
Parameter Values to enter register it with the Adobe Plug-ins Support
Engineer.
sDeveloperID Four-character string representing your
name or your company name, in quota- Free memory. The plug-in or external script
tion marks (e.g., "ADBE" for Adobe) must both allocate and free a block of global
sPlugInID Four-character string representing plug- memory for the private data.
in, in quotation marks (e.g., "KYLN" for
the Keyline plug-in) Five parameters needed to identify data.
PageMaker requires five parameters to identify
cTargetClass classobject for imported graphics and
private data:
images, as well as PageMaker lines,
boxes, ovals, polygons, or text blocks
• sDeveloperID and sPlugInID to identify the
classstory for stories plug-in
classpub for publication (current publi- • cTargetClass and nTargetID to identify the
cation only)
element being assigned the data
classpage for page
• nTypeFlag to distinguish between data types
classmaster for master page
(you define this parameter)
nTypeFlag Identifier you define to distinguish nTypeFlag. You define the value of nTypeFlag.
between types of private data for same
cTargetClass (but -1 and -2 are not This identifier lets you distinguish between
allowed). If you don't need to classify different types of private data associated with a
your private data, use 0. class of objects (graphics, page, master page,
nCount Number of private-data records you are story, or publication). If you won't be assigning
adding more than one type of data, you can set this
nTargetID Internal PageMaker identifier for element
parameter to zero. Never set this ID to -1 or -2.
(graphic, image, page, master page, text bChange. If the target already has private data
block, or story) to which the private data
is associated from the same plug-in and with the same private
ID, and bChange is:
0 (zero) for publication (PageMaker asso-
ciates private data with the current pub- • True, then PageMaker overwrites the data
lication only)
• False, then existing private data remains
unchanged and PageMaker returns an error
(CQ_PDATA_ALREADY_EXISTS)
ADOBE PAGEMAKER 7.0 132
Commands
The DeletePrivateData and PrivateString com- bChange true or 1 to overwrite existing private
mands string from same plug-in
The GetPrivateData, GetPrivateList, and GetPri- false or 0 to return error (and leave pri-
vateString queries vate string unchanged) if the target
already has private string from the same
plug-in
• bChange is false, and the specified private bEnabled off or 0 (zero) to turn off redrawing of the
screen for the currently displayed view
string already exists
(layout view or story editor)
(CQ_PDATA_ALREADY_EXISTS).
on or 1 to turn on redrawing of the
• nTypeFlag is -1 or -2 screen for the currently displayed view
(CQ_INVALID_CONTEXT). (layout view or story editor)
Example. The following example turns screen Single objects only. You can reflect only one
redraw off, selects all text, changes text size to 12 object at a time.
points, deselects the text, and then turns redraw
Whole text blocks. The Reflect command reflects
back on.
whole text objects, not individual characters or
re dr aw off groups of characters within a text object. You must
selectall select a text object with the Select command or the
size 12 pointer tool, not with the TextSelect command or
deselect text tool.
re dr aw on
Reflecting lines. If the selected object is a line, the
only valid values for cHandle are:
Side handles:
left or 0
Example. The following example deletes pages 3 Paragraphs restyled as No Style. Any paragraphs
and 4 and their contents from the open publi- in the publication formatted with the deleted style
cation. retain their formatting, but the style assigned to
them is called No Style.
removepages 3, 4
Removing styles while defining or editing. Never
send a RemoveStyle command while a style is
See also:
being defined or edited with the StyleBegin and
The Cut, Clear, and DeleteMasterPage commands StyleEnd commands. If PageMaker encounters
The GetPages query RemoveStyle between a StyleBegin/StyleEnd pair,
it returns an error, and the style-definition context
remains in effect.
RemovePrinterStyle
Example. The following example deletes the style
called Heading 4.
sPrinterStyle rem ove s t y l e " He a d i n g 4 "
RemoveUnusedColors [bYesToAll]
Example. The following example queries for the
names of all the printer styles and deletes the Removes all colors and inks not being used in the
printer style Laser Legal. publication from the color palette and ink list.
The AddPrinterStyle and PrinterStyle commands true or 1 to remove all unused colors and
inks and suppress the summary report of
The GetPrinterStyles query the number of colors and inks removed
(the default)
See also:
See also: The DefineMasterPage, DeleteMasterPage, Mas-
The AddWord, Spell, and SpellWindow com- terPage, and SaveAsMasterPage commands
mands The GetMasterPage, GetMasterPageInfo, and Get-
The GetPMInfo, GetSpellResult, and GetSpell- MasterPageList queries
Window queries
ADOBE PAGEMAKER 7.0 138
Commands
bProp false or 0 (zero) for no proportional resiz- Do not resize lines. Using Resize to change the
ing, the default length of a line may cause unexpected results. If
true or 1 for proportional resizing you want a different line length, it's best to delete
the line and create a new one.
bBestSize false or 0 (zero, the default)
cHandle for transformed objects. If the selected
true or 1 for stretching a paint-type
graphic to the best size for the printer object was skewed, rotated, or reflected, cHandle
resolution should correspond to the handle before the object
was transformed. For example, lefttop always
Measurement units for scripts. If you do not refers to the original left-top handle of an object,
specify a unit of measure for xyLocation (e.g., i for not the handle that is currently the left-most top
inches), PageMaker uses the default unit of handle.
measure, specified in the Preferences dialog box or
with the MeasureUnits command.
Single objects only. The Resize command can
resize only one object at a time; if more than one
object is selected, the plug-in or script will stop Layout view only. The Resize command works
running at the Resize statement. only in layout view.
bProp and bBestSize together. The bProp and Example. The following example turns Snap to
bBestSize parameters can be used in combination, Guides and Snap to Rulers off so the location you
if desired. specify is not pulled to a guide or ruler division.
Snap to guides and rulers. Just as when resizing Next, it selects an object, resizes the object by
an object with the pointer tool, the Resize dragging the left-edge handle as close to the
command is sensitive to the setting of the Snap to specified coordinates as possible, keeps the
Guides and Snap to Ruler options. If Snap to selection proportional, and fits it to the printer
Guides or Snap to Rulers are on, the object may be resolution. Finally, it turns Snap to Guides and
resized to a guide or ruler division rather than the Snap to Rulers back on.
location you specify. To avoid this possibility, turn snapto guides off
Snap to Guides and Snap to Rulers off prior to snaptor ulers off
resizing, using the SnapToGuides and select (column 2 left, co lumn top)
SnapToRulers commands. resize left, 3.5i, t r ue, t r ue
Size of publication window. If the publication snapto guides on
window is less than one fourth the size of the snaptor ulers on
screen, you must turn off the SnapToGuides and
SnapToRulers commands prior to resizing.
ADOBE PAGEMAKER 7.0 140
Commands
dXYPercentage Percentage to resize the object horizon- Snap to guides and rulers. Just as when resizing
tally (along the x axis) or vertically (along an object with the pointer tool, the ResizePct
the y axis); or both an x and y percentage
command is sensitive to the Snap to Guides and
when cHandle is a corner (that is, lefttop,
leftbottom, righttop, or rightbottom) Snap to Ruler options. If Snap to Guides or Snap to
Rulers are on, the object may be resized to a guide
dYPercentage Percentage to resize the object vertically
(along the y axis) when cHandle is a cor-
or ruler division that is close to the percentage you
ner (that is, lefttop, leftbottom, righttop, specify. To avoid this possibility, turn Snap to
or rightbottom) Guides and Snap to Rulers off prior to resizing,
bProp false or 0 (zero) for no proportional resiz- using the SnapToGuides and SnapToRulers
ing (the default) commands.
true or 1 for proportional resizing Size of publication window. If the publication
bBestSize false or 0 (zero, the default) window is less than one fourth the size of the
screen, you must turn off the SnapToGuides and
true or 1 for stretching a paint-type
graphic to the best size for the printer SnapToRulers commands prior to resizing.
resolution
Do not resize lines. Using ResizePct to change the
length of a line may cause unexpected results. If
Single objects only. The ResizePct command can
you want to change a line length, it's best to delete
resize only one object at a time; if more than one the line and create a new one.
object is selected, the plug-in or script will stop
running at the ResizePct statement.
ADOBE PAGEMAKER 7.0 141
Commands
ReversePolyVertices
Layout view only. The ResizePCT command
Reverses the order of vertices of selected polygons.
works only in layout view.
For example, if a polygon's vertices order was P1,
Example. The following example turns Snap to P2, …, Pn-1, Pn, and you apply this command, the
Guides and Snap to Rulers off so the resized object vertices order will become Pn, Pn-1,…, P2, P1.
is not pulled to a guide or ruler division. Next, it PageMaker always draws a polygon in the order of
selects an object, drags the left handles of the vertices, and it always draws a polygon side
object to make it 80% of its current size, resizes it hanging to the right. Reversing the polygon's
proportionally, and does not stretch it to the best vertices order could result in a very different
size for the printer. Finally, it turns Snap to Guides polygon in terms of how it looks, especially when
and Snap to Rulers back on. the polygon's sides have a thick stroke. This
snapto guides off command only works on irregular polygons; it has
snaptor ulers off no effect on regular ones.
select (column 2 left, co lumn bottom) Layout view only. The ReversePolyVertices
re s i ze p c t l e f t , 8 0 , t r u e , f a l s e command works only in layout view.
snapto guides on
snaptor ulers on
See also:
The PolygonVertices, CreatePolygon, PolygonType
See also: commands
The Resize command The GetPolygonVertices, GetPolygonType queries
The GetTransform query
Revert [cKind]
RestoreColor Restores the most recently saved version of the
Removes a PageMaker-applied color from the publication or template, deleting all changes made
currently selected imported image. since the last time it was saved or minisaved.
graphic, applies the color Fuchsia to it, and then minisaved or 1 to revert to the last
removes the color. minisaved version
select 1
ADOBE PAGEMAKER 7.0 142
Commands
Side handles:
left or 0
right or 2
top or 3
bottom or 4
Center of object:
center or 1
ADOBE PAGEMAKER 7.0 143
Commands
Rotating single objects. When rotating a single Note: this behavior differs slightly from rotating
object that was previously skewed, rotated, or objects with the Control palette, which uses the same
reflected, cHandle should correspond to the handles as long as the objects remain selected.
handle before the object was transformed. For
example, lefttop always refers to the original left-
top handle of an object, not the handle that is
currently the left-most top handle.
hairline or 1
Text tool, story editor, or no box. If either the text
tool or story editor is active, or no PageMaker halfpoint or 2
boxes are selected, the specified corner shape onepoint or 3
becomes the default setting for the publication. twopoint or 4
Example. The following example draws a fourpoint or 5
rectangle with slightly curved corners. sixpoint or 6
b ox 2 i , 3 I , 7 i , 1 0 i eightpoint or 7
roundedcor n ers 1
twelvepoint or 8
thinthin or 9
See also:
thickthin or 10
The Box command
thinthick or 11
The GetRoundedCorners query
thinthickthin or 12
thindash or 13
true or 1 for opaque background behind select (column 1 left, co lumn top)
dotted, dashed, or compound lines tex te d i t
dontcare or -2 to leave transparency set- r uleabove on, custom, "Red", column, .25i, .25i,
ting unchanged 3, 0, 20
cLineStyle dontcare or -2 to leave the line style dWeight Weight of a custom line (in points)
unchanged
dontcare or -2 to leave line weight
none or 0 (zero) unchanged or for predefined line
weights (e.g., hairline)
hairline or 1
bOpaque false or 0 for transparent background
halfpoint or 2
behind dotted, dashed, or compound
onepoint or 3 lines
Rulers bState
Turns the horizontal and vertical rulers on or
off.
on or 1
See also:
The GuideHoriz, Guides, GuideVert, and Prefer-
ences commands
The GetRulers query
ADOBE PAGEMAKER 7.0 149
Commands
Use SaveAs command if publication is untitled. template or 1 (in Windows, include the
To save an untitled publication (and to name it) or extension .t65 in the filename)
to save a publication to a new name or location, 2 for PageMaker 6.5 format, so the publi-
use the SaveAs command. (If you try to use Save cation can be opened in PageMaker 6.5
(in Windows, include the extension .p65
while in an untitled publication, PageMaker won't in the filename)
execute the command and the plug-in or script will
cCopyWhat none or 0 (zero, the default) to save only
stop at that command statement.)
the publication, not the linked files
PageMaker warning for low disk space. If the remote or 1 to copy all files that are
hard disk does not have enough disk space needed to print that publication into one
available when the Save command is encountered, folder, including any linked files and spe-
cial files that contain instructions for
PageMaker displays an alert. composing the publication (such as the
track-kerning resource file)
Example. The following example saves the active
publication. linked or 2 to copy all externally located
files to the folder in which the publica-
save tion is being saved
Links not saved in cases of low disk space. If you Facing pages. If a two-page spread is currently
specify linked for the cCopyWhat parameter and displayed, SaveAsMasterPage creates a two-page
there is not enough room for both the publication master spread. If a single page is displayed, SaveAs-
and its linked files, PageMaker displays an alert MasterPage creates a single master page.
message and does not copy the linked files.
Unique name. When you copy a page to a new
Saving templates in Windows. To save a publi- master page, be sure you are not overwriting an
cation as a template in Windows, you must specify existing one. Use the GetMasterPageList to
the filename extension ".pmt." PageMaker for determine the names of all existing master pages.
Windows uses the extension to distinguish
Example. Copies the content, guides, and margins
between templates and publications.
of the current page to a new master named
Saving as 6.5 format. If you specify cKind as 2, "Chapter." If an existing master already has the
PageMaker disregards the cCopyWhat and name "Chapter," the SaveAsMasterPage overwrites
bPreview parameters. it.
Example. The following example saves "mypub" saveasmaster page "Chapter", t r ue
as a publication, copies all documents linked to
"mypub," and does not include a Fetch preview
See also:
with the publication (the default setting when the
parameter is omitted). The DefineMasterPage, DeleteMasterPage, Mas-
terPage, and RenameMasterPage commands
saveas "my floppy :my folder :my pub", publi-
The GetMasterPage, GetMasterPageInfo, and Get-
c a t i o n , l i n ke d MasterPageList queries
See also:
The Save command
SaveStatusOff
Turns off the save status of the current publication.
Use with caution! Check status first! If you turn
SaveAsMasterPage sMasterName, the save status off, PageMaker does not know the
bOverwrite true save state of the publication, which might
Copies the content, guides, and margins of the contain changes made prior to running the script
current pages to the specified master page, either or plug-in. Therefore, if you plan to turn off the
creating a new master or overwriting an existing save status, always check the save state before your
one. script or plug-in does anything to the publication.
In this way, you can save any changes in the publi-
Parameter Values to enter
cation and thus not lose work made prior to
sMasterName Name of new master page (maximum of running the script or plug-in.
31 characters)
Alerts always suppressed while running script or
bOverwrite false or 0 (zero) to leave existing master plug-in. PageMaker uses the save status to
unchanged (if one exists with same
name) determine if it should display an alert before
closing a publication, thus protecting the user
true or 1 to overwrite existing master (if
one exists with same name) from losing changes. However, when running
scripts and plug-ins, PageMaker alerts and dialog
Layout view only. The SaveAsMasterPage
boxes are suppressed, regardless of the save status.
command works only in layout view. Therefore, you do not need to use this command to
suppress the save alert.
ADOBE PAGEMAKER 7.0 151
Commands
No drawing order for inline graphics. Inline Example. The following example selects all
graphics are not assigned a drawing order and objects on the page and pasteboard.
must be selected using the location method.
selectall
Selecting text. To select (highlight) text, use the
TextSelect command.
See also:
Layout view only. The Select command works The Select, SelectExtend, and TextSelect com-
only in layout view. mands
Example . The following example selects the The GetSelectInfo and GetSelectList queries
second object drawn.
select 2
SelectExtend
The following example selects the object
positioned 1 inch to the right on the x axis and 4 nDrawOrderSelectExtend x1, y1
inches down on the y-axis. Extends the selection to include the specified
select 1i, 4i object without deselecting other selected objects.
The syntax you use for the command depends
upon whether you specify the object by its drawing
See also: order or by its coordinates.
The SelectAll, SelectExtend, and TextSelect com-
Parameter Values to enter
mands
The GetSelectInfo and GetSelectList queries DrawOrder Drawing order of object
See also:
The Cut and Paste commands
ADOBE PAGEMAKER 7.0 156
Commands
See Also:
The AssignLayer, DeleteLayer, DeleteUnusedLay-
ADOBE PAGEMAKER 7.0 158
Commands
SizeBump cHowMuch
Changes the size of the text to a standard size.
cHowMuch upone or 0 to bump the type up to the cHandle Handle to use as fixed point of skew:
next whole size
Top handles (each results in the same
downone or 1 to bump the type down to
skew):
the next whole size
top or 3
upnext or 2 to bump type up to the next
standard size on the Size submenu lefttop or topleft or 5
Normal orientation. Zero degrees is the normal, Layout view only. The Skew command works
unskewed position of an object. only in layout view.
dAngle truncated. If dAngle includes more than Example. The following example selects the third
two decimal places, PageMaker truncates the value object drawn and skews it 25 degrees, centered
to hundredths of a degree. For example, 10.119 around the lower-left corner.
becomes 10.11 degrees. select 3
baseline or 2
Parameter Values to enter • selectedtext (or 0), which confines search to the
selected text.
cRange selectedtext or 0 to spell-check only
selected text • allstories (or 2), which starts the search at the
currentstory or 1 to spell-check only the beginning of the active story and automatically
current story, starting from position of wraps to the beginning of the next story.
insertion point (default setting)
Optional parameters. PageMaker does not
allstories or 2 to spell-check all stories in require any of the Spell parameters. If you do not
current publication, starting from begin-
ning of currently active story include values for a parameter (e.g., spell or spell ,
, , false), PageMaker uses the setting from the last
default or -1 to use default or previously
defined range Spell command. (Or, if the command hasn't been
executed this session, PageMaker uses the default
dontcare or -2 to let system choose
range based on current text selection. If settings.
text is selected, Spell spell-checks only
Scripts palette. Do not use the Spell command in
selected text; if no text is selected, Spell
spell-checks only the current story, start- scripts you plan to run using the Scripts palette.
ing from position of insertion point. When PageMaker finds no match or completes the
bWrapAround stopatend or 0 to stop checking when search, the Scripts palette interprets this as an error
PageMaker reaches end of story and stops at that point in the script.
wrap or 1 to continue checking from Plug-ins and external scripts only. PageMaker
beginning of story when PageMaker
reaches end of story (default setting)
returns the following codes to indicate the success
of the search:
bAlternateSpell off or 0 (zero) not to display alternative
spellings in the Spelling dialog box Example. The following example begins spell-
on or 1 to display alternative spellings in
checking all the stories and selects the first unrec-
the Spelling dialog box ognized word.
bShowDupli- off or 0 (zero) not to highlight a duplicate s p e l l a l l s to r i e s
cate word
StoryEditPref bDisplayPara,
bDisplayStyle, dSize, sFont
Establishes the story-editor display preferences.
Style based on current style. If you do not base While in the style-definition state, the Define
the style on a specific style (using the BasedOn Styles command remains dimmed in the Type
command), PageMaker bases the style on the menu. Until PageMaker receives the StyleEnd
current style. The current style is the style of the command, all subsequent commands and queries
text containing the insertion point, or, if either the relevant to paragraph styles (such as type,
pointer tool is active or no publications are open, paragraph, hyphenation, and color commands)
the default style. apply to the style being defined.
Example. The following example defines Heading Example. The following example defines Heading
1 as point-size 24 in the font Times. 1 as point-size 24 in the font Times.
s t y l e b e g i n " He a d i n g 1 " s t y l e b e g i n " He a d i n g 1 "
size 24 s i ze 2 4
font "Times" font "Times"
styleend styleend
command.
Example. The following example displays the
Use StyleEnd command to end definition. If you
Styles palette.
do not complete a style definition with the
StyleEnd command (e.g., by omitting the StyleEnd s t yle p a le t te on
command or by not completing the definition due
to an error), PageMaker remains in the style See also:
definition state until you either send the StyleEnd
The GetStylePalette query
command or:
• Open a new or existing publication.
• Close the publication or quit PageMaker.
• Revert to the last-saved version of the publi-
cation.
• Paste information from the Clipboard.
• Import a file.
ADOBE PAGEMAKER 7.0 165
Commands
changed since the last minisave. (No minisave bState false or 0 to enable palette updating
occurs if the story has not been placed.) true or 1 to suppress updating the pal-
• Change all instances of a search item using either ette
Caution: Always re-enable palette updating. If Example. The following example suppresses the
you suppress palette updating, always re-enable it display of progress indicators.
before your plug-in or script finishes. The
suppresspi on
SuppressPalDraw command has no menu equiv-
alent; you must turn palette updating back on
using this command.
SuppressPrint obsolete command;
Flickering palette. If a palette is already set to be see NonPrinting
updated and you send the command to update it,
To match the command name on the menu, this
PageMaker redraws the palette, causing it to flicker.
command has been renamed as NonPrinting.
Example. The following example suspends the
updating of the Control Palette.
suppresspaldr aw cont rolpalette, t r ue
Tabs nCount[, cKind, xPosition,
sLeader]...
Specifies the number of tab stops and sets the kind,
See also:
the offset from the left side of the text block, and a
The ColorPalette, ControlPalette, MasterPagePal- leader characters (if any) for each. The extent of
ette, and StylePalette commands the action depends on which tool is active, whether
The GetSuppressPalDraw query any text is selected, and whether a publication is
open when the command is executed.
center or 1
Caution: Always re-enable progress indicators. If
right or 2
you suppress progress indicators, always re-enable
them before your plug-in or script finishes. The decimal or 3
SuppressPI command has no menu equivalent; xPosition Offset from left side of text block
you must turn the progress indicators back on
sLeader Leader characters, in quotation marks (to
using this command.
a maximum of 2 characters; any single
character is automatically doubled)
Measurement units for scripts. If you do not Example. The following example creates three
specify a unit of measure for xPosition (e.g., i for tabs: the first, a center tab offset 0.25 inches from
inches), PageMaker uses the default unit of the text block; the second, a left tab offset 0.5
measure, specified in the Preferences dialog box or inches from the text block; and the third, a decimal
with the MeasureUnits command. tab with leader dots, offset 3.5 inches from the text
block.
Use quotation marks for no leader characters.
You can specify the absence of leader characters by tabs 3, (center, .25i, ""), (left, .5i, ""), (decimal,
entering double quotation marks with nothing 4i, "..")
between them ("") for the sLeader parameter.
Define tabs left to right. Specify the tab positions See also:
from left to right across the page. If the tab The GetTabs query
positions are out of order, PageMaker returns an
error.
Predefined tabs. The Indents/Tabs ruler has TargetLayer sLayerName
default tab settings every 0.5 inches or 3 picas Makes the layer in sLayerName the target layer.
(marked by small triangles—see dialog box). The
Parameter Values to Enter
tab positions you specify replace any predefined
settings between the left margin and those sLayerName Name of the layer to make the target
positions. layer
In international versions of PageMaker, the metric Example. The following example makes Circles
system is the default measurement system, and the the target layer.
default tab settings are every 10mm.
targetlayer "Circles"
User-defined tabs cleared. The Tabs command
removes any existing tabs before applying the new
ones. To clear all user-defined tabs and return the See Also:
ruler to the default setting of one tab every 0.5 The AssignLayer, DeleteLayer, DeleteUnusedLay-
inches or 3 picas (10mm in international versions), ers, LayerOptions, LockLayers, MoveLayer, New-
use zero for the nCount parameter: Layer, PasteRemembers, SelectLayer, and
ShowLayers commands
ta bs 0
The GetLayerFromID, GetLayerList, GetLayerOp-
tions, GetPasteRemembers, and GetTargetLayer
Story editor or no insertion point. If you use the
queries
Tabs command when story editor is active, if there
is no insertion point in a story, or if a tool other
than the text tool is active, then PageMaker sets the
default tab locations for the publication.
ADOBE PAGEMAKER 7.0 168
Commands
TextCursor cHowMuch, nHowMany Text selected. If text is selected when you send
this command, PageMaker moves the insertion
Moves the insertion point (text cursor), by the
point from the ending point of the selection. The
specified range.
ending point can be either before the first character
Parameter Values to enter or after the last character of the selected range,
depending upon how the text was selected: by
cHowMuch +char or 0 (zero) for forward one charac-
ter dragging the insertion point, a Plug-in command
(SetTextCursor or TextSelect), or double- or triple-
-char or 1 for back one character
clicking the mouse.
+word or 2 for forward one word (or
punctuation mark), including trailing Out-of-range values. If cHowMuch or
space nHowMany exceed the limits of the story,
-word or 3 for back one word (or punctu- PageMaker moves the insertion point to the
ation mark) beginning or end of the story, according to the
+line or 4 for down one line (equivalent direction specified. For example, if you attempt to
to down arrow key) move the insertion point forward five paragraphs
-line or 5 for up one line (equivalent to (textcursor +para 5), but only three paragraphs
up arrow key) remain, PageMaker moves the insertion point to
+para or 6 for forward to beginning of the end of the story.
next paragraph
nHowMany ignored for textblocks. If cHowMuch
-para or 7 for back to beginning of para-
graph
is +textblock or -textblock (8 or 9), PageMaker
ignores the value of nHowMany and moves the
+textblock or 8 for forward to end of
text block
insertion point to the beginning or end of the
current text block.
-textblock or 9 for back to beginning of
text block Story editor: cHowMuch ignored if ±textblocks.
+story or 10 for forward to end of story While in story editor, if you set cHowMuch to
+textblock or -textblock (8 or 9), PageMaker does
-story or 11 for back to beginning of
story not move the insertion point. Text blocks have no
meaning in story editor.
+eol or 12 for forward to end of line
-eol or 13 for back to beginning of line Example. The following example moves the
insertion point (text cursor) forward by 50 words.
+sent or 14 for forward to end of sen-
tence (including trailing spaces) textcursor +word, 50
-sent or 15 for back to beginning of sen-
tence
See also:
nHowMany Number of times the value specified in
cHowMuch is to be repeated; the default The TextEnter and TextSelect commands
is 1 The GetTextCursor query
PageMaker left in layout view. Unlike EditStory, To include a quotation mark within the text you
this command leaves PageMaker in layout view. It want to enter, precede it with a single backslash (\).
is equivalent to selecting the text tool and clicking
To enter the automatic page number character
before the first character of the text block.
(Command + Option + p on the Macintosh or Ctrl
Creating a new story. To create a new story, use + Shift + 3 in Windows) use the special character
the NewStory command. ^(PgN). Otherwise, enter the hexadecimal
Layout view only. The TextEdit command works number 0x18, using the method required by the
only in layout view. scripting application or programming
environment in which you are writing your Plug-
Example. The following example selects a text in or script.
block and positions the insertion point in front of
the first character in the text block. Example . The following example enters a date
and a client's name and address at the insertion
select (column 1 left, co lumn top) point. Notice that to include a quotation mark
tex te d i t within a string you must precede it with a
backslash (Ian \"Big Guy\" Zander). The end of the
string is denoted by the double quotation mark
TextEnter sText after the zip code.
Enters text at the location of the insertion point select (column 1 left, co lumn top)
(text cursor). tex te d i t
Parameter Values to enter textenter "Januar y 1, 1992
rect or 1 to create a rectangular graphic Measurement units for scripts. If you do not
boundary around which the text will flow specify a unit of measure for the stand-offs (e.g., i
irregular or 2 only if the boundary has for inches), PageMaker uses the default unit of
already been changed with the Text- measure, specified in the Preferences dialog box or
WrapPoly command
with the MeasureUnits command.
cTextFlow columnbreak or 0 (zero) to stop text
flow at a graphic and then continue the Place graphics after using TextWrap command.
text flow at the start of the next column To wrap text around all or most of the graphics in
jumpover or 1 to stop text flow above a publication in the same way, use the TextWrap
the graphic and then to continue below command before placing any graphics.
it, leaving white space on either side
Default when no publication is open. To set text-
allsides or 2 to flow text around the
graphic on all sides wrap defaults for all graphics you create or place in
future PageMaker publications, use the TextWrap
xLeftSO Left stand-off for graphics with a rectan- command when no publication is open.
gular text wrap, from -22.75 to 22.75
inches Wrap set on master pages applies throughout pub-
0 (zero) for either irregular or no text lication. Selecting a text-wrap style for a graphic
wrap on a master page causes text to wrap around that
yTopSO Top stand-off for rectangular text wrap, graphic on any page on which it appears.
from -22.75 to 22.75 inches
Layout view only. The TextWrap command works
0 (zero) for either irregular or no text only in layout view.
wrap
Example. The following example wraps text
xRightSO Right stand-off for rectangular text wrap,
from -22.75 to 22.75 inches
around the top and bottom sides of the selected
graphic, with an offset from the graphic of 0.2
0 (zero) for either irregular or no text
wrap
inches. Only text on the same layer will wrap
around the graphic.
yBottomSO Bottom stand-off for rectangular text
wrap, from -22.75 to 22.75 inches s e le c t ( gu i d e 3 , colu m n b ot tom )
textw r ap re ct, jumpover, (0, .2i, 0, .2I), 1
0 (zero) for either irregular or no text
wrap
See also:
The TextWrapPoly command
The GetTextWrap and GetTextWrapPoly queries
ADOBE PAGEMAKER 7.0 172
Commands
The Color, ColorPalette, and DefineColor com- rectangle or 4 for rectangle tool
mands diagline or 5 for line tool
The GetColor, GetColorInfo, GetColorNames,
constrainedline or 6 for constrained line
GetColorPalette, and GetTint queries tool
PageMaker predefined tracking. For each font on xBlackWidth Width of black traps
the system, PageMaker applies predefined param- dontcare or -2 to leave black width
eters, or "tracks," to loosen or tighten the look of unchanged
When to use ManualKerning instead of the Track dTextLimit Point size above which text is trapped,
command. To adjust the spacing across a line of from 4.0 to 650.0
text (such as a heading), use the Track command. dontcare or -2 to leave text limit
Then use ManualKerning, if necessary, to adjust unchanged
the spacing between specific pairs of letters. bTrapOverImp off or 0 (zero) to disable trapping where
foreground objects overlap imported
Example. The following example kerns the
graphics
selected text tighter.
on or 1 to enable trapping over non-
t r a ck t i g ht PageMaker graphics (i.e., to trap to a
PageMaker object underneath an
imported image, not to the image itself )
See also: dontcare or -2 to leave state unchanged
The LetterSpace, ManualKerning, and SpaceOp-
ADOBE PAGEMAKER 7.0 175
Commands
black traps, a step limit of 20%, a centerline dontcare or -2 to leave current value
threshold of 70%, a text limit of 23.9 points, and unchanged
no trapping over imported graphics. dBaseline Amount to shift the baseline in points
(up to one decimal point; positive values
t r a p settin g s o n , 0p 0. 25 0p 0. 5 20. 0 7 0 . 0 2 3 . 9 of f only)
Objects that mask and are masked. If a selected nObjectID Unique ID of object to deselect
PageMaker-drawn box, oval, or polygon is both
masked by another object and used as a masking Layout view only. The Unselect command works
object, then the Unmask command has two effects: only in layout view.
it removes the mask from the selected object and
unmasks all objects masked by it.
See Also:
The DragSelectExtend, Select, SelectAll, SelectEx-
See also:
tend, SelectID, and SelectIDExtend commands
The Mask command The GetSelectIDList and GetSelectInfo queries
The GetGroupList, GetObjectIDList, GetObjec-
tIDListTop, GetSelectIDList, and GetSelectIDList-
Top queries View nPercentage, bAllPages
Sets the page view display.
Unselect nDrawOrderUnselect Parameter Values to enter
xLocation, yLocation
nPercentage Percentage of actual page size (any inte-
Deselects a single object either by drawing order or ger from 25 to 800)
by location. Other objects remain selected. fit or -3 for fit in window to display all
text, graphics, and guides on the page
Parameter Values to Enter
pasteboard or -4 to display all text
nDrawNumber The drawing-order number of the object blocks and graphics that have been
to deselect moved off the page
xLocation x coordinate of one of the handles of the bAllPages 0 change only the current page to the
object to deselect new view
yLocation y coordinate of one of the handles of the 1 change all pages to the new view
object to deselect
(bAllPages is only valid when nPercent-
age is specified as one of the preset view
Layout view only. The Unselect command works sizes.)
only in layout view.
For print size, specify 100. To display pages at the
Example. The following example deselects an
approximate size at which the publication is
object whose drawing-order number is 3.
printed, specify 100.
unselect 3
Layout view only. The View command works only
in layout view.
See Also:
Preset view sizes. Sizes 25, 50, 75, 100, 200, 400,
The DragSelectExtend, Select, SelectAll, SelectEx- fit, and pasteboard are preset sizes.
tend, SelectID, and SelectIDExtend commands
ADOBE PAGEMAKER 7.0 178
Commands
Example. The following example displays only the WordSpace dWordMin, dWordDesired,
current page of the publication at approximately dWordMax
half its actual printed size.
Sets the acceptable range of space between words
v iew 50, 0 in justified text. The extent of the action depends
on which tool is active, whether any text is selected,
See also: and whether a publication is open when the
command is executed.
The GetView query
Parameter Values to enter
on or 1 to lock the zero point Measurement units for scripts. If you do not
specify a unit of measure (e.g., i for inches),
Automatic zero-point position. When you create PageMaker uses the default unit of measure,
a new publication, PageMaker automatically specified in the Preferences dialog box or with
locates the rulers' zero point at either the top-left the MeasureUnits command.
corner of the page or, for facing pages, the middle
Know the zero-point location. All coordinates
of the top edge of the paper where pages intersect.
(except those set by the TextWrapPoly
command) are relative to the rulers' zero point.
It is important to know where the zero point is
before using commands that use x and y
coordinate parameters.
ZeroLock must be off. The ZeroPoint command
Many graphic designers prefer to reposition the returns an error when the zero point is locked.
rulers' zero point at the intersection of the top and To turn the lock off, use the ZeroLock
left margins for measuring within the image area command.
of each page. Layout view only. The ZeroPoint command
Example. This command locks the zero point works only in layout view.
where the rulers are currently located. Example. The following example moves the
zerolock on zero point one inch below the vertical axis.
zerop oi n t 0 i , 1 i
See also:
The ZeroPoint and ZeroPointReset commands See also:
The GetZeroLock query The ZeroLock and ZeroPointReset commands
The GetZeroPoint query
ZeroPointReset
Resets the rulers' zero point to the default
position.
ADOBE PAGEMAKER 7.0 180
Commands
Default ZeroPoint location. When you create a Example. The following example resets the
new publication, PageMaker automatically puts rulers' zero point at the default position, which
the rulers' zero point at the top-left corner of the depends on whether the pages are specified as
page; or, for facing pages, at the middle of the facing pages or single pages.
top edge of the paper where pages intersect.
zerop o i n t re s e t
See also:
The ZeroLock and ZeroPoint commands
The GetZeroPoint query
Queries
See also:
See also:
The Autoflow command
The Addition command
GetBasedOn
GetAdditionsDir
Gets the name of the style on which the current
Gets the path to the PlugIns folder. style is based.
Reply: sPath, sNetPath Reply: sBasedOn
Full path returned. This query returns the full Defining or editing a style. If you are defining or
path name (e.g., C:\ALDUS\USENGLSH\ editing a style using the StyleBegin command,
ADDITION). PageMaker gets the style on which that style is
based rather than the Based On style for the
selected text.
GetAlignment
Empty string. PageMaker returns an empty string
Gets the Alignment setting that is assigned to the
for sBasedOn if:
selected text or to the paragraph containing the
insertion point. • The style is not based on another style (Based On
is set to No Style).
Reply: cType
• Multiple paragraphs are selected and they have
Defining or editing a style. If you are defining or
different styles assigned to them.
editing a style using the StyleBegin command,
PageMaker gets the alignment setting for that style
rather than for the selected text. See also:
The GetNextStyle, GetStyle, and GetStyleNames
Multiple alignment types. If you select more than
queries
one paragraph and they have different alignments
assigned to them, PageMaker returns -2 for cType. The BasedOn command
Reply: dBlackLimit, bOverprintTxt, dOvrprn- No text selected. If the text contains the insertion
tTxtSz, bOvrprntLines, bOvrprntFills point but no text is selected, PageMaker returns the
case setting of the character preceding the
What is black? A Color with any black value
insertion point. If the insertion point is before the
greater than or equal to the black limit and with no
first character of the story, PageMaker returns the
cyan, magenta, or yellow, is considered black for
case setting of the first character.
the purposes of trapping and auto-overprinting.
See also:
See also:
The GetTypeOptions query
The TrapSettings and BlackAttributes commands
The Case command
The GetTrapSettings query
GetBook GetChangeParaAttr
Gets paragraph attributes (paragraph style,
Gets the Auto Renumbering setting, the number of
alignment, and leading method) to be used for the
publications in the book list, and the name
search text in the Change and ChangeAll
(complete path) of each publication listed.
commands.
Reply: cAutoRenum, nNumOfPubs[,
Reply: sParaStyle, cAlignment, cLeadingType
fPubName]...
Story editor only. The GetChangeParaAttr query
works only in story editor.
See also:
The Book command Example. The following example changes all left-
aligned text in the current publication to justified
text. (Notice that it sets all other Find and Change
GetCase attributes to Any.) It then queries for the Find and
Change paragraph attributes.
Gets the Case setting (Normal, All Caps, or Small
Caps) assigned to the selected text. findpar aatt r "Any", left, -3
changepar aatt r "Any", justify, -3
Reply: cCase
fi n d t y p e a t t r 1 " Any" , - 3 , - 3 , - 3 , - 3 , - 3
Defining or editing a style. If you are defining or ch a n g e t y p e a t t r 1 " Any " , - 3 , - 3 , - 3 , - 3 , - 3
editing a style using the StyleBegin command, fi n d t y p e a t t r 2 - 3 , - 3 , " Any" , - 3
PageMaker gets the case for that style rather than ch a n g e t y p e a t t r 2 - 3 , - 3 , " Any " , - 3
for the selected text. ch a n g e a l l " " , " " , a l l s to r i e s , a nyc a s e , a l l i n s t a n ce s ,
useatt r i butes
Multiple settings. If PageMaker finds more than
getfindpar aatt r--Reply : "Any", 0, -3
one case setting in the selected text, PageMaker
getchangepar aatt r--Reply : "Any", 3, -3
returns -2 for cCase.
No insertion point. If the text does not contain the
insertion point, PageMaker gets the default case See also:
setting. The GetChangeTypeAttr1, GetChangeTypeAttr2,
GetChangeWindow, GetFindParaAttr,
GetFindTypeAttr1, GetFindTypeAttr2, and Get-
FindWindow queries
The Change, ChangeAll, ChangeNext,
ChangeParaAttr, ChangeTypeAttr1,
ADOBE PAGEMAKER 7.0 183
Queries
ChangeTypeAttr2, ChangeWindow, Find, FindN- Example. The following example changes all 10-
ext, FindParaAttr, FindTypeAttr1, FindTypeAttr2, point, bold, underlined text in the current publi-
and FindWindow commands cation to 9-point, Helvetica bold. (Notice that it
sets all other Find and Change attributes to Any.) It
then queries for the Find and Change type
GetChangeTypeAttr1 attributes.
Gets the text attributes (font, point size, type style, fi n d t y p e a t t r 1 " Any" , 1 0 , - 3 ,
position, and case) to be used for the search text in boldstyle+underline, -3, -3
the Change and ChangeAll commands. ch a n g e t y p e a t t r 1 " He lve t i c a " , 9 , - 3 , b o l d s t y l e , - 3 ,
Reply: sFontName, dPointSize, dLeading, -3
cTypeStyle, cPosition, cCase fi n d p a r a a t t r " Any" , - 3 , - 3
changepar aatt r "Any", -3, -3
Story editor only. The GetChangeTypeAttr1
fi n d t y p e a t t r 2 - 3 , - 3 , " Any" , - 3
query works only in story editor. ch a n g e t y p e a t t r 2 - 3 , - 3 , " Any " , - 3
Type styles are additive. If the cTypeStyle ch a n g e a l l " " , " " , a l l s to r i e s , a nyc a s e , a l l i n s t a n ce s ,
parameter is set to multiple type styles, the return useatt r i butes
value is the sum of the numeric equivalents for the getfindt y p eatt r1--Reply : "Any", 10, -3, 5, -3, -3
styles. For example, if the type style is set to both g e tch a n g e t y p e a t t r 1 - - Re p l y : " He lve t i c a " , 9 , - 3 , 1 ,
bold (1) and underline (4), PageMaker returns 5 -3, -3
(the sum of 1 and 4).
Any for cTypeStyle, cPosition, and cCase. Unlike See also:
the Type Styles pop-up menu in the Change The GetChangeParaAttr, GetChangeTypeAttr2,
Attributes dialog box, the -3 setting for cTypeStyle GetChangeWindow, GetFindParaAttr,
pertains only to the type styles Bold, Italic, GetFindTypeAttr1, GetFindTypeAttr2, GetFind-
Underline, Strikethru, Outline, Shadow, and Window, and GetTypeStyle queries
Reverse. The value of cTypeStyle does not affect The Change, ChangeAll, ChangeNext,
the cPosition and cCase parameters, which are ChangeParaAttr, ChangeTypeAttr1,
turned off and on separately. ChangeTypeAttr2, ChangeWindow, Find, FindN-
ext, FindParaAttr, FindTypeAttr1, FindTypeAttr2,
GetTypeStyle values doubled. If you are using the
and FindWindow commands
GetTypeStyle query in conjunction with
ChangeTypeAttr1, FindTypeAttr1,
GetChangeTypeAttr1, or GetFindTypeAttr1, note GetChangeTypeAttr2
that the GetTypeStyle query returns different
values for the type styles. With the exception of Gets additional text attributes (set width, tracking,
normal, all the GetTypeStyle values are twice the color, and tint) to be used for the search text in the
values used in the find and change commands and Change and ChangeAll commands.
queries. For example, bold is 2 for GetTypeStyle Reply: dSetWidth, cTrack, sColorName,
and 1 for ChangeTypeAttr1, FindTypeAttr1, nTintValue
GetChangeTypeAttr1, and GetFindTypeAttr1.
Story editor only. The GetChangeTypeAttr2
Normal, however, is 1 in GetTypeStyle and 0 in the
query works only in story editor.
other commands and queries.
ADOBE PAGEMAKER 7.0 184
Queries
Example. The following example changes all GetFindTypeAttr1, GetFindTypeAttr2, and Get-
purple text in the current publication to a 93% tint FindWindow queries
of purple. (Notice that it sets all other Find and The Change, ChangeAll, ChangeNext,
Change attributes to Any.) It then queries for the ChangeParaAttr, ChangeTypeAttr1,
Find and Change type settings. ChangeTypeAttr2, Find, FindNext, FindParaAttr,
FindTypeAttr1, FindTypeAttr2, and FindWindow
fi n d p a r a a tt r "Any ", - 3, - 3
commands
changepar aatt r "Any", -3, -3
fi n d t y p ea tt r1 "Any ", - 3, - 3, - 3, - 3 , - 3
ch a n g e t y p e a t t r 1 " Any " , - 3 , - 3 , - 3 , - 3 , - 3
GetCMSOn bState
fi n d t y p ea tt r2 - 3, - 3, "Pu r p l e", - 3
Determines whether or not the Color
ch a n g e t y p e a t t r 2 - 3 , - 3 , " Pu r p l e " , 9 3
Management System is turned on.
ch a n g e a l l " " , " " , a l l s to r i e s , a nyc a s e , a l l i n s t a n ce s ,
useatt r i butes Parameter Reply Values
getfindt y p eatt r2--Reply : -3, -3, "Pur ple", -3
bState True if Color Management is enabled
getchanget y p eatt r2--Reply : -3, -3, "Pur ple", 93
False if Color Management is disabled
See also:
The GetChangeParaAttr, GetChangeTypeAttr1, See also:
GetChangeWindow, GetFindParaAttr, The PrintDeviceIndpntColor command
GetFindTypeAttr1, GetFindTypeAttr2, and Get-
FindWindow queries
The Change, ChangeAll, ChangeNext, GetColor
ChangeParaAttr, ChangeTypeAttr1,
Gets the name of the color applied to the selected
ChangeTypeAttr2, ChangeWindow, Find, FindN-
ext, FindParaAttr, FindTypeAttr1, FindTypeAttr2, object or text.
and FindWindow commands Reply: sColorName, nTintValue
Example. The following example opens the Insertion point. If the text contains the insertion
Change dialog box and then queries for its status. point but no text is selected, PageMaker returns the
color of the character preceding the insertion
changew indow open
point. If the insertion point is before the first
getchangew indow
character of the story, PageMaker returns the color
- - ex p e c te d rep l y : 1
of the first character.
Nothing selected. If no objects or text are selected
See also:
or no publication is open, PageMaker returns the
The GetChangeParaAttr, GetChangeTypeAttr1, default color.
GetChangeTypeAttr2, GetFindParaAttr,
ADOBE PAGEMAKER 7.0 185
Queries
Fill color of boxes and ovals. PageMaker returns d e fi n e color " Pe a ch " , p ro ce s s , c myk , 0 , 1 5 , 3 0 , 1 0 ,0
the color of the fill (not the line) of a box or oval getcolor info 0 "Peach "
drawn in PageMaker. To get the color of the line, - - ex p e c te d rep l y :
use the GetFillAndLine query. 85.00,65.00,75.00,0.00,1,0,0,"",4,1,1,"",0
Measurement units for scripts. PageMaker Specifying units for sMeasurement. You can
returns coordinates using the publication default specify the measurement units of sMeasurement
units, specified in the Preferences dialog box or either with the cMeasureUnits parameter or by
with the MeasureUnits command. including a unit abbreviation with the value, as
shown below:
See also: Units Abbreviation Example
The ColumnGuides command Inches i 5.625i
Millimeters m 25m
Gets the display state (on or off) of the Control Points p before p6
palette.
Picas and points p between 18p6
Reply: bState
Ciceros c after number 5c
See also:
GetConvertStr sMeasurement[,
cMeasureUnits] The GetConvertTwips query
ciceros or 4
Reply: dTwips
dontcare or -2 to use the default mea-
surement system
Reply: sMeasurement
ADOBE PAGEMAKER 7.0 187
Queries
GetExportFilters GetFillStyle
Gets the number of installed export filters and the Gets the fill style applied to the currently selected
name and version number of each. object.
Reply: nNumOfFilters[, sFilterName, sVersion]... Reply: cFillStyle
ch a n g e t y p e a t t r 1 " Any " , - 3 , - 3 , - 3 , - 3 , - 3 GetTypeStyle values doubled. If you are using the
fi n d t y p ea tt r2 - 3, - 3, "Any ", - 3 GetTypeStyle query in conjunction with
ch a n g e t y p e a t t r 2 - 3 , - 3 , " Any " , - 3 ChangeTypeAttr1, FindTypeAttr1,
ch a n g e a l l " " , " " , a l l s to r i e s , a nyc a s e , a l l i n s t a n ce s , GetChangeTypeAttr1, or GetFindTypeAttr1, note
useatt r i butes that the GetTypeStyle query returns different
getfindpar aatt r--Reply : "Any", 0, -3 values for the type styles. With the exception of
getchangepar aatt r--Reply : "Any", 3, -3 normal, all the GetTypeStyle values are twice the
values used in the find and change commands and
queries. For example, bold is 2 for GetTypeStyle
See also:
and 1 for ChangeTypeAttr1, FindTypeAttr1,
The GetChangeParaAttr, GetChangeTypeAttr1, GetChangeTypeAttr1, and GetFindTypeAttr1.
GetChangeTypeAttr2, GetChangeWindow, Normal, however, is 1 in GetTypeStyle and 0 in the
GetFindTypeAttr1, GetFindTypeAttr2, and Get-
other commands and queries.
FindWindow queries
The Change, ChangeAll, ChangeNext, Example. The following example changes all 10-
ChangeParaAttr, ChangeTypeAttr1, point, bold, underlined text in the current publi-
ChangeTypeAttr2, ChangeWindow, Find, FindN- cation to 9-point, Helvetica bold. (Notice that it
ext, FindParaAttr, FindTypeAttr1, FindTypeAttr2, sets all other Find and Change attributes to Any.) It
and FindWindow commands then queries for the Find and Change type
attributes.
fi n d t y p e a t t r 1 " Any" , 1 0 , - 3 ,
GetFindTypeAttr1
boldstyle+underline, -3, -3
Gets the text attributes (font, point size, type style, changetypeattr1 "Helvetica", 9, -3, boldstyle, -3, -3
position, and case) to be used for the search text in fi n d p a r a a t t r " Any" , - 3 , - 3
the Find, Change, and ChangeAll commands. changepar aatt r "Any", -3, -3
Reply: sFontName, dPointSize, dLeading, fi n d t y p e a t t r 2 - 3 , - 3 , " Any" , - 3
cTypeStyle, cPosition, cCase ch a n g e t y p e a t t r 2 - 3 , - 3 , " Any " , - 3
ch a n g e a l l " " , " " , a l l s to r i e s , a nyc a s e , a l l i n s t a n ce s ,
Story editor only. The GetFindTypeAttr1 query
useatt r i butes
works only in story editor. getfindt y p eatt r1--Reply : "Any", 10, -3, 5, -3, -3
Type styles are additive. If the cTypeStyle g e tch a n g e t y p e a t t r 1 - - Re p l y : " He lve t i c a " , 9 , - 3 , 1 ,
parameter is set to multiple type styles, the return -3, -3
value is the sum of the numeric equivalents for the
styles. For example, if the type style is set to both
See also:
bold (1) and underline (4), PageMaker returns 5
(the sum of 1 and 4). The GetChangeParaAttr, GetChangeTypeAttr1,
GetChangeTypeAttr2, GetChangeWindow, Get-
Any for cTypeStyle, cPosition, and cCase. Unlike FindParaAttr, GetFindTypeAttr2, GetFindWin-
the Type Styles pop-up menu in the Find dow, and GetTypeStyle queries
Attributes dialog box, the -3 setting for cTypeStyle The Change, ChangeAll, ChangeNext,
pertains only to the type styles Bold, Italic, ChangeParaAttr, ChangeTypeAttr1,
Underline, Strikethru, Outline, Shadow, and ChangeTypeAttr2, ChangeWindow, Find, FindN-
Reverse. The value of cTypeStyle does not affect ext, FindParaAttr, FindTypeAttr1, FindTypeAttr2,
the cPosition and cCase parameters, which are and FindWindow commands
turned off and on separately.
ADOBE PAGEMAKER 7.0 191
Queries
Gets the TrueType line-spacing or character-shape Fonts in EPS files not listed. PageMaker does not
preference. list fonts used in EPS files (unless the font is already
on the Font submenu or used elsewhere in the
Reply: bIgnore, cPresrvShape
publication).
bIgnore replaces bUseATM. The bIgnore
parameter replaces the bUseATM parameter found See also:
in earlier versions of the PageMaker command
The Font command
language. Because this version of PageMaker uses
ATM whenever it is present, the bUseATM
parameter is invalid. The bIgnore parameter acts
as a placeholder to maintain compatibility with
GetFrameContentPos
plug-ins or scripts created using earlier versions of Returns the Content Position settings for the
the command language. currently selected frame(s).
Reply: nVertAlign, nHorzAlign, nScale Type,
See also: nKeep, AspectRatio
The FontDrawing command Layout view only. The GetFrameContentPos
query works only in layout view.
Example. The following example creates a new ToRulers, and GetZeroLock queries
publication, draws and styles two boxes (of The Guides command
different sizes), and skews the second box. It selects
both boxes, groups them, and then queries for
information about the group. Notice that although GetHorizGuides
the two objects are different sizes and shapes, their
Gets the number of horizontal ruler guides and the
left-top and right-bottom handles overlap,
position of each guide.
resulting in the same return values. To get more
detailed information about transformed objects, Reply: nNumber[, yPosition]...
use the GetTransform query. To get more detailed Measurement units for scripts. PageMaker
information about linked objects, use the returns coordinates using the publication default
GetLinkInfo and GetLinks query. Notice also the units, specified in the Preferences dialog box or
nDrawNumber for this group is 1 and the with the MeasureUnits command.
nDrawNumber for the boxes are 2 and 3 respec-
tively. Order guides returned. PageMaker returns
horizontal guides in the reverse order in which
new
they were created.
b ox 0 , 0 , 3 , 1
l i n est y l e o n ep o i n t
fi l l s t y l e n o n e See also:
b ox 0 , 0 , 2 , 1 The GetGuides, GetVertGuides, GetLockGuides,
linestyle none GetRulers, GetSnapToGuides, GetSnapToRulers,
fi l l s t y l e s o l i d and GetZeroLock queries
skew lefttop, -45 The GuideHoriz command
selectall
g ro u p
g e t g ro u p l i s t 3 GetHyperLinkPalette
- - ex p e c te d rep l y : Gets the state (on or off) of the Hyperlinks panel.
2, 1, 3, 2, 4, 0, 0, 0, 0, 3, 1, 0, 0, 1, 2, 2, 3, 3, 4 , 1 , 0 , 0 , 0 , 3 , 1 , 2
, 0, 1, 1 Reply: bState
GetImportFilters
Gets the number of installed import filters and the
name and version number for each.
ADOBE PAGEMAKER 7.0 196
Queries
See Also:
GetLayAdjOpts The GetLayerOptions, GetLayerFromID, GetPas-
teRemembers, and GetTargetLayer queries
Gets the settings from the Layout Adjustment
Preferences dialog box. The AssignLayer, DeleteLayer, DeleteUnusedLay-
ers, LayerOptions, LockLayers, MoveLayer, New-
Reply: nSnapToZone, bResizeOK, bIgnoreLocks, Layer, PasteRemembers, SelectLayer, ShowLayers,
bIgnoreGuides, bMoveGuides, bKeepGuide- and TargetLayer commands
sAligned
Multiple settings. If multiple paragraphs are Layout view only. The GetLineBreak query works
selected and they have different letter-spacing only in layout view.
attributes, PageMaker returns -2 for the param-
Example. The following example gets the number
eters with conflicting settings. Because PageMaker
of line breaks in the highlighted text, the type of
also returns -2 when the letter spacing is set to -2,
break, and character count since last break.
this reply may be ambiguous in such cases.
getlinebreak
Pointer tool active. If the pointer tool is active,
PageMaker gets the default letter-spacing
attributes.
See also:
The GetWordSpace query
See also:
The LetterSpace command
The GetLineBreakLoc and GetTextRun queries
GetLineBreak GetLineBreakLoc
Gets the number of line breaks in the highlighted
Gets the number of line breaks in the highlighted
text and gets the type (e.g., text wrap, end of line,
text and gets the type (e.g., text wrap, end of line,
tab, soft return, or hard return) and character
tab, soft return, or hard return), height (line
count since the last line break for each.
depth), line width, and character count since the
Reply: nLineCount[, nCharCount, nLine- last line break for each.
BreakType]...
Reply: nLineCount[, nCharCount, cLine-
Several lines selected. Be careful not to select too BreakType, nLineHeight, nComposeWidth]...
much text; this query can return a large amount of
Several lines selected. Be careful not to select too
data, especially if the text contains numerous tabs.
much text; this query can return a large amount of
nCharCount includes line breaks, not end of selec- data, especially if the text contains numerous tabs.
tion. If more than one type of line break occurs at If your plug-in, rather than PageMaker, allocates
the same point, PageMaker returns an nChar- the reply buffer but doesn't make it large enough,
Count/nLineBreakType pair for each line break. the query will fail.
However, the end of the selection is not a character
nCharCount includes line breaks. If more than
and is not included in nCharCount.
one type of line break occurs at the same point,
Extra space between paragraphs. PageMaker PageMaker returns an nCharCount/nLine-
returns a separate nCharCount/cLineBreakType BreakType pair for each line break.
pair for extra space between paragraphs, setting
Extra space between paragraphs. PageMaker
nCharCount to 0 (zero) and cLineBreakType to 2.
returns a separate nCharCount/cLineBreakType
Extra space includes space added by the:
pair for extra space between paragraphs, setting
• Space Before and Space After paragraph options. nCharCount to 0 (zero) and cLineBreakType to 2.
• Align to Grid option. Extra space includes space added by the:
• Top and bottom text-wrap boundary of a • Space Before and Space After paragraph options.
graphic. • Align to Grid option.
ADOBE PAGEMAKER 7.0 200
Queries
Example. The following example selects and Defining or editing a style. If you are defining or
copies the third object drawn. It queries for the editing a style using the StyleBegin command,
current default offset, pastes five copies, and then PageMaker gets the Next Style for that style rather
resets the default offsets back to their previous than for the selected text.
values.
Empty string. PageMaker returns an empty string
select 3 for sNextStyle:
copy
• If the Next Style is set to Same Style.
g e t mu l t p a s te o f f s e t - - ex p e c te d rep l y 3 , 3
mu l t i p l e p a s te 5 , 0 p 4 , 0 p 9 • If multiple paragraphs are selected and they have
mu l t p a s te o f f s e t 3 , 3 different styles assigned to them.
Pointer tool active. If the pointer tool is active,
See also: PageMaker gets the Next style for the default style.
See Also:
The GetFrameContentPos, GetFrameInset, GetFr- GetNonPrinting
ameContentType, and GetIsFrame queries
Gets the print state (printing or nonprinting) of
The AttachContent, BreakLinks, DeleteContent, the selected objects.
FrameContentPos, FrameInset, LinkFrames, Sep-
arateContent, and ToggleFrame commands Reply: bState
See also:
The GetObjectLoc, GetSelectIDList, GetTrans-
form, and GetLineStyle queries
See also:
The GetObjectLoc, GetTransform, and GetLine-
Style queries
Where the weight of a line lies in relation to the end
points depends upon the type of line and whether
the user has flipped the weight of the line with the GetObjectLoc cHandle
pointer tool to the other side of the line (horizontal Returns the location of the specified handle of the
and vertical lines only). The default locations are: selected object, taking any transformations applied
Horizontal lines hang down from the end points; to the object into account.
vertical lines hang to the right of the end points;
Parameter Values to enter
diagonal lines are centered.
cHandle Handle you want to locate:
This query does not return fields that specify:
Side handles:
• The type of line (horizontal, vertical, or
left or 0
diagonal). Instead, use the GetTransform query.
right or 2
• The width of a diagonal line. Instead, use the
GetLineStyle query. top or 3
bottom or 4
• The location of the weight of horizontal or
vertical lines. Currently, no query returns this Center of object:
information. center or 1
Example. This example creates a new publication,
Corner handles:
draws and styles two boxes (of different sizes), and
lefttop or topleft or 5
skews the second box. It queries for the drawing
number, type, and coordinates of the objects on leftbottom or bottomleft or 6
the page. Notice that although these two objects righttop or topright or 7
are different sizes and shapes, their left-top and rightbottom or bottomright or 8
right-bottom handles overlap, resulting in the
same return values. To get more detailed infor-
Reply: xValue, yValue
mation about transformed objects, use the
GetTransform query. Select only one object. The query returns the
location of a single object. If multiple objects are
new
selected, PageMaker returns an error.
b ox 0 , 0 , 3 , 1
l i n est y l e o n ep o i n t
ADOBE PAGEMAKER 7.0 209
Queries
center or 1 for the midpoint of the line Page ID stays with page. While the number of a
page may change (if you insert or delete a page), its
lefttop or 5 for the starting point of the line
ID remains the same: A page is independent of its
rightbottom or 8 for the end point of the line page number (see example below).
If you assign private data to a page and the page is
subsequently renumbered, you can still access the
private data using the page ID.
Example. The following example returns the ID
Example. This example creates a box and queries currently associated with page 15.
for the location of the left-top and right-bottom new 20
handles. It then rotates the box and queries for the g e t p a g e i d 1 5 - - ex p e c te d rep l y 1 7
new locations of the same handles. (Remember: y rem ovep a ge s 1 3 , 1 4 - - p a ge 1 5 b e com e s p a ge 1 3
coordinates in PageMaker are positive when g e t p a g e i d 1 5 - - ex p e c te d rep l y 1 9
moving down from the zero point and negative g e t p a g e i d 1 3 - - ex p e c te d rep l y 1 7
moving up from the zero point.)
See also:
The GetPageNumber, GetPageNumberByID, and
GetPageNumbers queries
new
b ox 1 , 1 , - 1 , - 1
g e tob j e c t l o c l e f t to p
- - ex p e c te d rep l y : - 1 , - 1
g e tob j e c t l o c r i g ht b o t to m
- - ex p e c te d rep l y : 1 , 1
rotate center 45
g e tob j e c t l o c l e f t to p
ADOBE PAGEMAKER 7.0 210
Queries
cViewPercentage. Only PageMaker for the Layout view only. Use this query only in layout
Macintosh uses the cViewPercentage parameter. view.
Although PageMaker for Windows disregards the
value of the parameter, the parameter is required.
(See "hDC" below.)
ADOBE PAGEMAKER 7.0 211
Queries
GetPageOptions GetPageRect
Gets the settings (on or off) of the Double-Sided Gets the coordinates of the current page (or of
and Facing Pages options in the Document the two-page spread if facing pages are
Setup dialog box. displayed).
Reply: bDoubleSided, bFacingPages Reply: xLeft, yTop, xRight, yBottom
Parameter Value
See also:
nItem -1 to query number of items in history The PageSize command
0 to query current location within history
See also:
The PageSize command
ADOBE PAGEMAKER 7.0 214
Queries
GetParaSpace GetPickers
Gets the settings of the Space Before and Space Gets a list of color pickers currently available to
After paragraph options for the selected text or for PageMaker and their associated libraries.
the paragraph containing the insertion point.
Reply: nCount[, sPicker, sLibrary]...
Reply: nSpaceBefore, nSpaceAfter
Multiple libraries. Some color pickers may use
Measurement units for scripts. PageMaker several libraries; a separate picker and library pair
returns coordinates using the publication default is returned for each library available to the picker.
units, specified in the Preferences dialog box or
with the MeasureUnits command.
See also:
Defining or editing a style. If you are defining or The GetColorInfo query
editing a style using the StyleBegin command,
The DefineColor command
PageMaker gets the Space Before and Space After
settings for that style rather than for the selected
text. GetPMInfo
Multiple settings. If multiple paragraphs are Gets the version of PageMaker and its associated
selected and they have different Space Before and libraries and dictionaries.
Space After settings, PageMaker returns -2 for
nSpaceBefore and nSpaceAfter. Reply: sPageMakerVer, sFileSystemVer, sVMVer,
sImageLibVer, nCount(, sLanguage,
Pointer tool. If the pointer tool is active, sDictionary)...
PageMaker gets the default settings.
Three spaces after name. Three spaces separate
the language name of each dictionary and its
See also: version number in the sLanguage parameter.
The ParaSpace command
Full version name. PageMaker 7.0 returns the
full product and version for the sPageMakerVer
parameter in both Windows and on the
GetPasteRemembers Macintosh (for example, "Adobe PageMaker
Returns the setting for the Paste Remembers Layers 7.0").
setting in the Layers menu.
Reply: bRemembers See also:
The GetDictionary and GetPMLanguage queries.
See Also:
The AssignLayer, DeleteLayer, DeleteUnusedLay-
ers, LayerOptions, LockLayers, MoveLayer, New- GetPMLanguage
Layer, PasteRemembers, SelectLayer, ShowLayers, Gets the language version (used in menus and
and TargetLayer commands dialog boxes) of the current copy of PageMaker.
The GetLayerList, GetLayerFromID, GetLayerOp-
Reply: sLanguage
tions, and GetTargetLayer queries
ADOBE PAGEMAKER 7.0 215
Queries
See also:
The GetDictionary and GetPMInfo queries. GetPolygonType
Gets the type of the selected polygon.
Reply: nType
GetPMState
Layout view only. The GetPolygonType query
Gets the current PageMaker state.
works only in layout view.
Reply : cState
See Also:
GetPolygonAttribs The GetPolygonMiterLimit, and GetPolygonVerti-
ces queries
Gets the polygon attributes of the currently
The CreatePolygon, PolygonMiterLimit, Polygon-
selected polygons, or the default attributes if no
Type, and PolygonVertices commands
polygons are selected.
Reply: nSides, nStarInset
Returns the number of inks listed in the Print The PrintOptions command
Color dialog box, and the name, whether it is
selected for printing, the screen angle, and the
screen ruling for each ink listed.
GetPrintOptionsPS
Returns the settings in the PostScript Print
Reply: nCount(, sName, bPrintInk, sAngle,
Options dialog box.
sRuling)...
Reply: cGraphics, bMarks, bPageInfo,
Ink names returned. PageMaker returns inks in
bSendData, bDownload, bSymbol,
the order in which they appear in the Print Color
bErrHandler, cToDisk, bExtraBleed, bComm
dialog box: the four process colors first, then high-
fidelity inks (if any), followed by any remaining bSymbol and bComm are Macintosh-only.
inks, in alphabetic order. As in the scroll list, bSymbol and bComm only apply to the
PageMaker does not include tints or the colors Macintosh. These options do not appear in the
Black, Paper, and Registration. Print Options dialog box in PageMaker for
Windows, and PageMaker always returns a -2 for
Values returned. PageMaker returns values of
this parameter.
sName, bPrintInk, sAngle, and sRuling for each
ink.
See also:
See also: The GetPaperSizes, GetPaperSources, GetPrint-
Caps, GetPrintColor, GetPrintDoc, GetPrintInk,
The GetPaperSizes, GetPaperSources, GetPrint- GetPrintOptions, GetPrintPaperPS, GetPrintP-
Caps, GetPrintColor, GetPrintDoc, GetPrintOp- PDs, GetPrintPS, GetPrintScreens, and Get-
tions, GetPrintOptionsPS, GetPrintPaperPS, PrintTo queries
GetPrintPPDs, GetPrintPS, GetPrintScreens, and
GetPrintTo queries The PrintOptionsPS command
The PrintInk command
GetPrintPaperPS
GetPrintOptions Returns paper-related print options executed with
the Print command (for PostScript printers only).
Returns the settings in the Print Options dialog
box for a non-PostScript printer. Reply: sSize, sSource, yLength, xWidth,
yPaperFeed, xPaperMargin, bOrientation,
Reply: cScaleType, nVal, cDuplex, bMarks,
bCenter, cTiling, nOverlap, cScaleType, nVal,
bPageInfo, cTiling, xOverlap
cDuplex
Measurement units for scripts. PageMaker
Measurement units for scripts. PageMaker
returns coordinates using the publication default
returns coordinates using the publication default
units, specified in the Preferences dialog box or
units, specified in the Preferences dialog box or
with the MeasureUnits command.
with the MeasureUnits command.
See also:
The GetPaperSizes, GetPaperSources, GetPrint-
Caps, GetPrintColor, GetPrintDoc, GetPrintInk,
GetPrintOptionsPS, GetPrintPaperPS, GetPrintP-
PDs, GetPrintPS, GetPrintScreens, and Get-
ADOBE PAGEMAKER 7.0 220
Queries
See also:
GetPrintEPSPreviews
Gets the state for printing EPS previews instead of
The GetPaperSizes, GetPaperSources, GetPrint-
Caps, GetPrintColor, GetPrintDoc, GetPrintInk, a gray box when printing to a non-PostScript
GetPrintOptions, GetPrintOptionsPS, GetPrint- printer.
PaperPS, GetPrintPS, GetPrintScreens, and Get- Reply: bState
PrintTo queries
Layout and Story Editor views only. The
The PrintTo command
GetPrintEPSPreviews query works only in layout
and story editor views.
ADOBE PAGEMAKER 7.0 221
Queries
Layout and Story Editor views only. The sDeveloperID Four-character string representing your
name or company name, in quotation
GetPrintScreenRGBs query works only in layout
marks (e.g., ADBE for Adobe)
and story editor views.
sPlugInID Four-character string representing plug-
in, in quotation marks (e.g., KYLN for Key-
See also: line plug-in)
The Print, PrintColors, PrintInk, PrintDeviceInd- cTargetClass classobject for imported graphics and
pntColor, PrintScreenRGBs, PrintEPSPreviews, images, and for PageMaker-drawn lines,
and PrintTo commands boxes, ovals, polygons, or text blocks
(you define this parameter). dontcare or -2 to list all private data in pub-
lication associated with specified sDevelo-
Free memory. PageMaker allocates a block of perID, or if sDeveloperID is set to dontcare
global memory for the private data. The plug-in or or -2
external script must free the block. cTargetClass classobject for imported graphics and
images, and for PageMaker-drawn lines,
Example. The following example retrieves the
boxes, ovals, polygons, or text blocks
private data associated with the developer ADBE,
classstory for stories
the plug-in KYLN, and the private ID 0, for the
object with ID 15. classpub for publication (current publica-
tion only)
g e t p r iv a te d a t a " A D B E " , " K Y L N " , c l a s s o b j e c t , 0 ,
classpage for page
15
classmaster for master page
Gets the settings in the Paragraph Rule Options Alerts always suppressed while running script or
dialog box that are applied to the selected text or to plug-in. PageMaker uses the save status to
the paragraph containing the insertion point. determine if it should display an alert before
closing a publication, thus protecting the user
Reply: nTopOffset, nBottomOffset, bAlign-
from losing changes. However, when running
ToGrid, nGridSize scripts and plug-ins, PageMaker alerts and dialog
Measurement units for scripts. PageMaker boxes are suppressed, regardless of the save status.
returns coordinates using the publication default
units, specified in the Preferences dialog box or See also:
with the MeasureUnits command.
The SaveStatusOff command
Defining or editing a style. If you are defining or
editing a style using the StyleBegin command,
PageMaker gets the offsets and leading grid for that GetScrollbars
style rather than for the selected text.
Gets the setting (on or off) of the Scrollbars.
Multiple settings. If multiple paragraphs are
Reply: bState
selected and they have different attributes applied
to them, PageMaker returns -2 for the parameters
with conflicting settings. See also:
Pointer tool active. If the pointer tool is active, The Scrollbars command
PageMaker gets the default settings.
GetSelectIDList
See also:
Gets the number of objects currently selected and
The GetRuleAbove, GetRuleBelow, and Get- lists each object ID, group ID, drawing number,
ParaOptions queries type, coordinates, and whether the object is linked
The RuleOptions command and transformed. (This query does not return
information about groups; use GetSelectIDListTop
instead.)
GetRulers
Reply: nNumofObj[, nObjectID, nMaskID,
Gets the current state (on or off) of the rulers. nGroupID, nDrawNumber, cTypeOfObject,
Reply: bState bTransformed, bLinked, xLeftOrStart,
yTopOrStart, xRightOrEnd, yBottomOrEnd,
xRightOrStart, yTopOrStart2, xLeftOrEnd,
See also:
yBotOrEnd2]...
The GetGuides, GetHorizGuides, GetLock-
Guides, GetSnapToGuides, GetSnapToRulers, Measurement units for scripts. PageMaker
GetVertGuides, and GetZeroLock queries returns coordinates using the publication default
The Rulers command units, specified in the Preferences dialog box or
with the MeasureUnits command.
GetSaveStatus
Gets the save status of the current publication.
ADOBE PAGEMAKER 7.0 227
Queries
Coordinates for transformed objects. If the • The location of the weight of horizontal or
selected object was skewed, rotated, or reflected, vertical lines. Currently, no query returns this
the coordinate pairs (xLeftOrStart, yTopOrStart), information.
(xRightOrStart, yTopOrStart2), (xLeftOrEnd, Layout view only. The GetSelectIDList command
yBotOrEnd2), and (xRightOrEnd, yBotto- works only in layout view.
mOrEnd) correspond to the original left-top,
right-top, left-bottom, and right-bottom handles, Example. The following example creates a new
correspond to the original left-top and right- publication, draws and styles two boxes (of
bottom handles, but indicate their new locations. different sizes), skews the second box, and selects
all objects on the page. It queries for the number of
objects currently selected and each object ID,
drawing number, type, and coordinates. Notice
that although these two objects are a different size
and shape, the left-top and right-bottom handles
Coordinates for lines. PageMaker returns the overlap, resulting in the same return values. To get
corners of the bounding box for most objects, but more detailed information about transformed
returns the starting and end points for lines. The objects, use the GetTransform query.
first coordinate pair (xLeftOrStart, yTopOrStart)
corresponds to the starting point of the line. The new
Where the weight of a line lies in relation to the end See also:
points depends upon the type of line and whether The GetObjectIDList, GetObjectList, GetObject-
the user has flipped the weight of the line with the Loc, GetTransform, and GetLineStyle queries
pointer tool to the other side of the line (horizontal
and vertical lines only). The illustration above
shows the default locations: Horizontal lines hang GetSelectIDListTop
down from the end points; vertical lines hang to
Gets the number of top-level selected objects
the right of the end points; diagonal lines are
(groups and ungrouped objects only) on the
centered.
currently displayed pages and gets the object ID,
This query does not return fields that specify: group ID, drawing number, type, and coordinates
for each object and whether the object is linked
• The type of line (horizontal, vertical, or
and transformed. The query does not return infor-
diagonal). Instead, use the GetTransform query.
mation about objects within a selected group.
• The width of a diagonal line. Instead, use the
GetLineStyle query.
ADOBE PAGEMAKER 7.0 228
Queries
Reply: nNumObjects[, nObjectID, nMaskID, Coordinates for lines. PageMaker returns the
nGroupID, nDrawNumber, cTypeOfObject, corners of the bounding box for most objects, but
bTransformed, bLinked, xLeftorStart, returns the starting and end points for lines. The
yTopOrStart, xRightOrEnd, yBottomOrEnd, first coordinate pair (xLeftOrStart, yTopOrStart)
xRightOrStart, yTopOrStart2, xLeftOrEnd, corresponds to the starting point of the line. The
yBotOrEnd2]... second coordinate pair (xRightOrEnd, yBotto-
mOrEnd) corresponds to the end point of the line.
Facing pages. In double-sided, facing-pages
The third and fourth coordinate pairs are irrel-
mode, PageMaker returns the object list for both
evant because they duplicate the values of the first
pages.
two coordinate pairs.
Measurement units for scripts. PageMaker
returns coordinates using the publication default
units, specified in the Preferences dialog box or
with the MeasureUnits command.
Coordinates for transformed objects. If the object
was skewed, rotated, or reflected, the coordinate
pairs (xLeftOrStart, yTopOrStart), (xRight-
OrStart, yTopOrStart2), (xLeftOrEnd, Where the weight of a line lies in relation to the end
yBotOrEnd2), and (xRightOrEnd, yBotto- points depends upon the type of line and whether
mOrEnd) correspond to the original left-top, the user has flipped the weight of the line with the
right-top, left-bottom, and right-bottom handles, pointer tool to the other side of the line (horizontal
but indicate their new locations. and vertical lines only). The illustration above
shows the default locations: Horizontal lines hang
down from the end points; vertical lines hang to
the right of the end points; diagonal lines are
centered.
Coordinates for transformed Group. If the group Example. The following example creates a new
was skewed, rotated, or reflected, the coordinate publication, draws and styles two boxes (of
pairs (xLeftOrStart, yTopOrStart), (xRight- different sizes), and skews the second box. It then
OrStart, yTopOrStart2), (xLeftOrEnd, selects both boxes and groups them. It queries for
yBotOrEnd2), and (xRightOrEnd, yBotto- the top-level object. In this case, only the group
mOrEnd) correspond to the group's current left- object is returned. The two boxes are not included
top, right-top, left-bottom, and right-bottom since they are part of the group.
handles. new
b ox 0 , 0 , 3 , 1
li n e s t yle on e p oi n t
fi l l s t y l e n o n e
b ox 0 , 0 , 2 , 1
linestyle none
fi l l s t y l e s o l i d
skew lefttop, -45
selectall
g rou p
g e t s e l e c t i d l i s t to p
- - ex p e c te d rep l y : 1 , 3 , 0 , 1 , 1 4 , 0 , 0 , 0 , 0 , 3 , 1 , 3 , 0 , 0 , 1
ADOBE PAGEMAKER 7.0 229
Queries
See also:
The GetObjectList, GetObjectLoc, GetTransform,
and GetSelectList queries
ADOBE PAGEMAKER 7.0 230
Queries
Where the weight of a line lies in relation to the end See also:
points depends upon the type of line and whether The ShowErrorAlert command
the user has flipped the weight of the line with the
pointer tool to the other side of the line (horizontal
and vertical lines only). The illustration above GetSize
shows the default locations: Horizontal lines hang
Gets the point size applied to the selected text.
down from the end points; vertical lines hang to
the right of the end points; diagonal lines are Reply: dPointSize
centered.
Defining or editing a style. If you are defining or
This query does not return fields that specify: editing a style using the StyleBegin command,
PageMaker gets the point size for that style rather
• The type of line (horizontal, vertical, or
than for the selected text.
diagonal). Instead, use the GetTransform query.
No insertion point. If the text does not contain the
• The width of a diagonal line. Instead, use the
insertion point, PageMaker gets the default point
GetLineStyle query.
size.
• The location of the weight of horizontal or
No text selected. If the text contains the insertion
vertical lines. Currently, no query returns this
point but no text is selected, PageMaker returns the
information.
point size of the character preceding the insertion
point. If the insertion point is before the first
See also: character of the story, PageMaker returns the point
The GetObjectList, GetObjectIDList, GetObject- size of the first character.
Loc, GetSelectIDList, GetTransform, and GetLine-
Style queries
See also:
The Size command
GetShowErrorAlert
Gets the display state of error alerts, which are
GetSnapToGuides
normally suppressed when a plug-in or script is
running. Gets the current setting (on or off) of the Snap to
Guides command.
Reply: bState
Reply: bState
Caution: Always turn off error alerts. If you
enable the display of error alerts, always turn them
off before your plug-in or script finishes. See also:
Otherwise, PageMaker could display them while The GetGuides, GetHorizGuides, GetLock-
another plug-in or script is running. The ShowEr- Guides, GetRulers, GetSnapToRulers, GetVert-
rorAlert command has no menu equivalent; you Guides, and GetZeroLock queries
must turn off the error alerts using this command. The SnapToGuides command
Example. The following command line turns off
error alerts so they don't display when a plug-in or
script is running.
GetSnapToRulers
Gets the current setting (on or off) for the Snap to
shower ror aler t false
Rulers command.
Reply: bState
ADOBE PAGEMAKER 7.0 231
Queries
See also:
GetStoryList
The GetStoryIDList, GetStoryList, GetStoryText
and GetTextRun queries Gets the number of stories in the publication and,
for each story:
• The full filename if it is linked
GetStoryIDList
• The number of characters in the story (both
Returns the number of stories in the publication
printing and nonprinting)
and, for each story:
• The number of text blocks that comprise the
• The story's unique PageMaker identifier story
ADOBE PAGEMAKER 7.0 233
Queries
getindents GetSuppressAutosave
styleend
Gets the status (suppressed or activated) of the
automatic mini-save feature.
As shown, you must close the style definition
with the StyleEnd command (even though you Reply : bSuppress
are not actually defining or editing the style). When mini-saves occur. PageMaker performs a
The queries required to obtain all the attributes of mini-save if you have changed your publication
a style are: and you:
GetAlignmentGetRuleAbove • Print.
See also:
The GetStyle and GetStyleNames queries
The StylePalette command
ADOBE PAGEMAKER 7.0 236
Queries
GetTextCursor
Returns the PageMaker internal ID for the story
containing the insertion point, and gets the
Reply: nObjectID, xAnchorBottom, yAnchor-
starting and ending position of the selected text (or
Bottom, xAnchorTop, yAnchorTop, xRightTop,
the location of the insertion point if no text is
yRightTop, xRightBottom, yRightBottom,
selected).
xRangeEndTop, yRangeEndTop, xRangeEnd-
Reply: nStoryID, nBegin, nEnd Bottom, yRangeEndBottom, xLeftBottom, yLeft-
No text selected. If no text is selected (but the text Bottom, xLeftTop, yLeftTop
contains an insertion point), then nBegin and Parameter Reply values
nEnd are the same. However, if the story is empty,
nObjectID Object ID of text block containing
nStoryID, nBegin, and nEnd are null. PageMaker highlighted text
does not recognize a story unless it contains at least
one character. xAnchorBottom x coordinate of AnchorBottom (see
illustration above)
Selection direction is irrelevant. The direction in
yAnchorBottom y coordinate of AnchorBottom (see
which the cursor was dragged to select text is irrel- illustration above)
evant. The value of nBegin is always smaller than
xAnchorTop x coordinate of AnchorTop (see illus-
or equal to nEnd.
tration above)
nonprinting characters included. The values for
yAnchorTop y coordinate of AnchorTop (see illus-
nBegin and nEnd include inline graphics and tration above)
nonprinting characters (such as index markers,
xRightTop x coordinate of right top edge of
tabs, and returns). selection
to o l ov a l
gettool--reply : 3 GetTransform
Returns transformation information on a selected
See also: object.
The Tool command
ADOBE PAGEMAKER 7.0 241
Queries
Reply: dRotateAngle, dSkewAngle, bReflect, Defining and editing a style. If you are defining or
xLeftTopOrig, yLeftTopOrig, xRightBotOrig, editing a style using the StyleBegin command,
yRightBotOrig, xLeftTop, yLeftTop, xRightTop, PageMaker gets the settings for the style, not the
yRightTop, xRightBottom, yRightBottom, xLeft- selected text.
Bottom, yLeftBottom
Multiple settings. If multiple characters are
Lines. PageMaker returns the angle of a line selected and they have different settings,
relative to the x axis, not to its original angle. For PageMaker returns -2 for parameters with
example, if you draw a 45-degree line and rotate it conflicting settings.
to 90 degrees, PageMaker returns 90 for
No insertion point. If the text does not contain the
dSkewAngle.
insertion point, PageMaker gets the default type
Measurement units for scripts. PageMaker options.
returns coordinates using the publication default
No text selected. If the text contains the insertion
units, specified in the Preferences dialog box or
point but no text is selected, PageMaker returns the
with the MeasureUnits command.
type options of the character preceding the
insertion point. If the insertion point is before the
See also: first character of the story, PageMaker returns the
The Reflect, Rotate, and Skew commands type options of the first character.
See also:
GetTrapSettings The GetTypePosition query
Gets the main settings that determine how The TypeOptions command
PageMaker traps overlapping elements in a publi-
cation (from the Trapping Preferences dialog box).
Reply: bEnable, xDefWidth, xBlackWidth, GetTypePosition
dStepLimit, dCentThresh, dTextLimit, Gets the text position (normal, superscript, or
bTrapOverImp subscript) applied to the selected text.
Measurement units for scripts. PageMaker Reply: cPosition
returns coordinates using the publication default
Defining or editing a style. If you are defining or
units, specified in the Preferences dialog box or
editing a style using the StyleBegin command,
with the MeasureUnits command.
PageMaker gets the position settings for that style
rather than for the selected text.
See also:
No insertion point. If the text does not contain the
The GetBlackAttributes query insertion point, PageMaker gets the default type
The BlackAttributes and TrapSettings commands position.
No text selected. If the text contains the insertion
GetTypeOptions point but no text is selected, PageMaker returns the
type position of the character preceding the
Gets the settings in the Type Preferences dialog box insertion point. If the insertion point is before the
for the selected text. first character of the story, PageMaker returns the
Reply: nSmallCapSize, nSuperSubSize, type position of the first character.
nSuperPos, nSubPos, dBaseline, bDirection
ADOBE PAGEMAKER 7.0 242
Queries
Multiple settings. If multiple characters are Defining and editing a style. If you are defining or
selected and they have different settings, editing a style using the StyleBegin command,
PageMaker returns -2 for cPosition. PageMaker gets the type style for that style
definition rather than for the selected text.
See also: No insertion point. If the text does not contain the
The GetTypeOptions query insertion point, PageMaker gets the default type
style.
The Position command
No text selected. If the text contains the insertion
point but no text is selected, PageMaker returns the
GetTypeStyle type style of the character preceding the insertion
Gets the type style of the highlighted text. point. If the insertion point is before the first
character of the story, PageMaker returns the type
Reply: nMask, nApplied style of the first character.
nMask and nApplied. The text within a Finding and changing type styles. If you are
highlighted range often has a number of different using the GetTypeStyle query in conjunction with
type styles applied to it. This query returns a ChangeTypeAttr1, FindTypeAttr1,
mask/applied pair to indicate which type styles it GetChangeTypeAttr1, or GetFindTypeAttr1, note
can provide information about (those applied or that the GetTypeStyle query returns different
not applied uniformly across the selection) and values for the type styles. With the exception of
which of those styles are actually applied to the normal, all the GetTypeStyle values are twice the
text. The type styles not included in nMask are values used in the find and change commands and
styles that are applied to some, but not all, the queries. For example, bold is 2 for GetTypeStyle
characters. and 1 for ChangeTypeAttr1, FindTypeAttr1,
For example, if all of the selected text has the same GetChangeTypeAttr1, and GetFindTypeAttr1.
type styles applied to it (something other than Normal, however, is 1 in GetTypeStyle and 0 in the
Normal), nMask equals 254 (the total of all the other commands and queries.
settings except Normal). nApplied would indicate
which type styles were actually applied to the text. See also:
Using another example, if nMask equals 14 (the The GetChangeTypeAttr1 and GetFindTypeAttr1
sum of the Bold, Italic, and Underline values), then queries
the only styles PageMaker can provide information The ChangeTypeAttr1, FindTypeAttr1, and Type-
about are Bold, Italic, and Underline. Since the Style commands
mask values of Strikethru, Outline, Shadow, and
Reverse are not included in the sum, some of the
text may have these attributes applied to it, and GetVertGuides
some may not. Gets the number of vertical ruler guides and their
If nApplied for this same text equals 6 (the sum of positions.
the Bold and Italic values), all of the selected text Reply: nNumber[, xPosition]...
has Bold and Italic applied to it and none of the
text has Underline applied. Measurement units for scripts. PageMaker
returns coordinates using the publication default
units, specified in the Preferences dialog box or
with the MeasureUnits command.
ADOBE PAGEMAKER 7.0 243
Queries
Center of the pasteboard. The position of the Measurement units for scripts. PageMaker
zero point is specified relative to the center of returns coordinates using the publication
the pasteboard, which is: default units, specified in the Preferences dialog
box or with the MeasureUnits command.
• For single-page spreads, the center of the
pasteboard will be on the left edge (for odd
pages) or the right edge (for even pages) of the See also:
page. The GetZeroLock query
• For facing pages, the vertical center will be The ZeroPoint and ZeroPointReset command
halfway down the page at the location where the
two pages meet.
Coordinates for the zero point are relative to the center of the
pasteboard.
INDEX 245
Index
A Case 41 Coordinates, numeric 12
Abs function 16
Case control 19 Copy 53
Addition 35
Change 41 Cos function 16
AddPrinterStyle 35
ChangeAll 43 CreateIndex 53
AddWord 36
ChangeEnv 45 CreatePolygon 54
Adobe home page 34
ChangeNext 45 CreateTOC 54
Alerts 9
ChangeParaAttr 47 Crop 55
Alignment 36
ChangeTypeAttr1 47 Cut 56
America Online 34
ChangeTypeAttr2 49
AppendVertices 36 D
ChangeWindow 50
Apple events 24, 25 DDE 24, 26
Clear 50
Apple events, addressing 25 DefaultDir 57
Close 50
Apple events, commands and queries DefaultPrintClrSpace 56
CloseStory 51
26 Defaults 22
Color 51
Apple events, constants 25 Defaults, measurement 10, 11
ColorPalette 52
Apple events, replies 26 DefineColor 57
ColumnGuides 52
Arctan function 16 DefineInk 59
Command 6, 22
AssignLayer 37 DefineMasterPage 59
Commands, cancelling 9
AttachContent 37 Delete 60
Commands, modified 4
Autoflow 37 DeleteContent 61
Commands, new 4
DeleteHoriz 61
B Commands, syntax 7
DeleteLayer 61
BasedOn 38 Compuserve 34
DeleteMasterPage 62
BlackAttributes 38 Control 6
DeletePrivateData 62
Book 39 ControlPalette 53
DeleteRulerGuides 63
Box 39 Controls 19
DeleteUnusedLayers 63
Break control 19 Conventions, for scripting 21
DeleteVert 63
BreakLinks 40 Conventions, script language 4
Deselect 64
BringForward 40 ConvertEnhMetafile 53
Dialog boxes 9
BringToFront 40 Coordinates 11
Dictionary 64
Coordinates, by page elements 12
C DisplayNonPrinting 64
Coordinates, measurements 10
Cascade 41 DisplaySpecial 65
INDEX 246
Z
Zero point 11
ZeroLock 179
ZeroPoint 179
ZeroPointReset 179
Zstrip function 16