Microsoft Word Suite
307
If the style named "SubText" exists in the active document, this example copies the style to
Macintosh HD:Users:Shared:MyTemplate.dot.
if exists (Word style "SubText" of active document) then
organizer copy source (name of active document) destination ¬
"Macintosh HD:Users:Shared:MyTemplate.dot" name ¬
"SubText" organizer object type organizer object styles
end if
Command: organizer delete
Deletes the specified style, AutoText entry, toolbar, or macro project item from a document or
template.
Syntax
organizer delete
source Unicode text Required. The document or template file name that contains the item you
want to delete.
name Unicode text Required. The name of the AutoText entry, toolbar, style, or macro you want
to delete.
organizer object type enumeration Required. The kind of item you want to delete. Can be one
of the following: organizer object auto text, organizer object command bars, organizer object
project items, or organizer object styles.
Example
This example deletes the toolbar named "Custom 1" from the Normal template.
if exists (command bar "Custom 1") then
organizer delete source (full name of normal template) name ¬
"Custom 1" organizer object type organizer object command bars
end if
Command: organizer rename
Renames the specified style, AutoText entry, toolbar, or macro project item in a document or
template.
Syntax
organizer rename
source Unicode text Required. The document or template file name that contains the item you
want to rename.
name Unicode text Required. The name of the AutoText entry, toolbar, style, or macro you want
to rename.
new name Unicode text Required. The new name for the item.
organizer object type enumeration Required. The kind of item you want to rename. Can be one
of the following: organizer object auto text, organizer object command bars, organizer object
project items, or organizer object styles.