ChemDraw AppleScript Dictionary

Standard Suite

: Common terms supported by ChemDraw

close: Close a document
 close  reference  -- the document to close
  [saving  yes/no/ask]  -- specifies whether or not changes should be saved before closing
  [saving in  alias]  -- the file in which to save the document

count: Return the number of elements of a particular class within an object
 count  reference  -- the object whose elements are to be counted
  each  type class  -- the class of the elements to be counted
 Result:   integer  -- the number of elements

get: Get the data for an object
 get  reference  -- the object whose data is to be returned
  [as  type class]  -- the desired types for the data, in order of preference
 Result:   anything  -- the data from the object

make: Create a new element
 make
  new  type class  -- the class of the new element
  [at  location reference]  -- the location at which to insert the element
  [with data  anything]  -- the initial data for the element
  [with properties  record]  -- the initial data for the properties of the element
 Result:   reference  -- to the new object(s)

open: Open object(s)
 open  reference  -- list of documents to open
  [as  string]  -- the file type used to interpret the file -- see the popup menu in the Open dialog for a list of permissible types

print: Print object(s)
 print  reference  -- list of documents to print

quit: Quit ChemDraw
 quit
  [saving  yes/no/ask]  -- specifies whether or not to save currently open documents

save: Save a document
 save  reference  -- the document to save
  [in  alias]  -- the file where the object should be stored
  [as  string]  -- the file type of the document in which to save the data -- see the popup menu in the Save As dialog for a list of permissible types

set: Set an object’s data
 set  reference  -- the object to change
  to  anything  -- the new value

Class application: the application
Plural form:
 applications
Elements:
 document by numeric index, by name, by ID
 window by numeric index, by name, by ID
 menu by numeric index, by name, by ID
 menu item by name, by ID
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 ChemDraw Folder  alias  [r/o]  -- the ChemDraw Folder
 class  type class  [r/o]  -- the class
 clipboard  a list of anything  [r/o]  -- the clipboard
 default type  type class  [r/o]  -- the default descriptor type
 frontmost  boolean  [r/o]  -- Is this the frontmost application?
 name  international text  [r/o]  -- the name
 selection  selection-object  -- the selection visible to the user
 tolerance  small integer  -- the Tolerance preference
 version  version  [r/o]  -- the version number of the application
 show attachment ranks  boolean  -- Are the ranks of attachment points shown?
 show reaction map  boolean  -- Are the reaction maps shown and printed?
 automatic reaction maps  boolean  -- Are the reaction maps automatically determined when a new map is drawn?
 TIFF color model  Monochrome/RGB Index/CMYK Separated/CMYK Interleaved  -- color model for TIFF files
 TIFF compression  None/Packbits/CCITT Group 3/CCITT Group 4/Deflate  -- compression method for TIFF files
 TIFF resolution  small integer  -- resolution for TIFF files

Class document: A document
Plural form:
 documents
Elements:
 window by numeric index
 file by numeric index
 imported picture by numeric index, by ID
 atom by numeric index, by ID
 bond by numeric index, by ID
 arrow by numeric index, by ID
 curve by numeric index, by ID
 caption by numeric index, by ID
 object by numeric index, by ID
 molecule by numeric index, by ID
Properties:
 autosave  boolean  -- Does the document save without asking?
 background color  RGB color  -- the Background Color setting
 best type  type class  [r/o]  -- the best descriptor type
 bold width  small integer  -- the bold width setting (1440ths of an inch)
 bond spacing  small integer  -- the bond spacing setting (percent)
 caption font  string  -- the default font for captions
 caption size  small integer  -- the default font size for captions (points)
 caption style  text style info  -- the default font styles for captions
 chain angle  small integer  -- the chain angle setting (degrees)
 class  type class  [r/o]  -- the class
 crosshair visible  boolean  -- Is the crosshair visible?
 current template  small integer  -- the template currently being edited
 default type  type class  [r/o]  -- the default descriptor type
 fixed length  small integer  -- the fixed length setting (1440ths of an inch)
 foreground color  RGB color  -- the Foreground Color setting
 fractional widths  boolean  -- the fractional widths setting
 hash spacing  small integer  -- the hash spacing setting (1440ths of an inch)
 ID  integer  [r/o]  -- Document ID
 is templates  boolean  [r/o]  -- Is the document a templates document?
 label font  string  -- the default font for atom labels
 label size  small integer  -- the default font size for atom labels (points)
 label style  text style info  -- the default font styles for atom labels
 line width  small integer  -- the line width setting (1440ths of an inch)
 margin width  small integer  -- the margin width setting (1440ths of an inch)
 modified  boolean  [r/o]  -- Has the document been modified since the last save?
 name  international text  -- the name of the document
 number of templates  small integer  [r/o]  -- the number of templates in the document
 rulers visible  boolean  -- Are the rulers visible?
 selection  selection-object  -- the current selection or insertion point

Class file: A file
Plural form:
 files
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 name  international text  -- the name of the file
 stationery  boolean  [r/o]  -- Is the file a Stationery Pad?

Class selection-object: the selection visible to the user
Elements:
 imported picture by numeric index, by ID
 atom by numeric index, by ID
 bond by numeric index, by ID
 arrow by numeric index, by ID
 curve by numeric index, by ID
 caption by numeric index, by ID
 object by numeric index, by ID
 molecule by numeric index, by ID
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 bounds  bounding rectangle  -- the boundary rectangle for the selection
 class  type class  [r/o]  -- the class
 contents  type class  [r/o]  -- the contents of the selection
 default type  type class  [r/o]  -- the default descriptor type
 picture  picture  -- a picture of the selection
 SMILES  string  [r/o]  -- the SMILES string representing the selected structure(s)
 text  international text  -- the text of the caption(s) in the selection

Class insertion point: An insertion location between two objects
Plural form:
 insertion points
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class
 default type  type class  [r/o]  -- the default descriptor type

Class window: A window
Plural form:
 windows
Elements:
 document by numeric index
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 bounds  bounding rectangle  -- the boundary rectangle for the window
 class  type class  [r/o]  -- the class
 closeable  boolean  [r/o]  -- Does the window have a close box?
 default type  type class  [r/o]  -- the default descriptor type
 floating  boolean  [r/o]  -- Does the window float?
 index  integer  -- the number of the window
 modal  boolean  [r/o]  -- Is the window modal?
 name  international text  -- the title of the window
 resizable  boolean  [r/o]  -- Is the window resizable?
 selection  selection-object  [r/o]  -- the selection visible to the user
 titled  boolean  [r/o]  -- Does the window have a title bar?
 visible  boolean  [r/o]  -- Is the window visible?
 zoomable  boolean  [r/o]  -- Is the window zoomable?
 zoomed  boolean  [r/o]  -- Is the window zoomed?

ChemDraw Suite: Other events and objects supported by CS ChemDraw™

clean: Clean up the specified molecule, selection, or document
 clean  reference

image structure: Convert a 2D structure into a picture
 image structure  structure
 Result:   picture

begin transaction: Begin a transaction
 begin transaction
 Result:   integer

end transaction: End a transaction
 end transaction

do: do the specified menu item
 do  reference

Class imported picture: An imported picture
Plural form:
 imported pictures
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 picture  picture  -- the image of the picture
 ID  integer  [r/o]  -- Picture identifier
 Is Subscriber  boolean  [r/o]  -- Is Subscriber?
 bounds  bounding rectangle  -- the bounding box of the picture

Class atom: An atom
Plural form:
 atoms
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 ID  integer  [r/o]  -- Picture identifier
 bounds  bounding rectangle  -- the bounding box of the picture

Class bond: A bond
Plural form:
 bonds
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 ID  integer  [r/o]  -- Picture identifier
 bounds  bounding rectangle  -- the bounding box of the picture

Class arrow: An arrow, orbital, arc, reaction symbol, or other drawing element
Plural form:
 arrows
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 ID  integer  [r/o]  -- Picture identifier
 bounds  bounding rectangle  -- the bounding box of the picture

Class curve: A curve
Plural form:
 curves
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 ID  integer  [r/o]  -- Picture identifier
 bounds  bounding rectangle  -- the bounding box of the picture

Class caption: A caption
Plural form:
 captions
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 ID  integer  [r/o]  -- Picture identifier
 bounds  bounding rectangle  -- the bounding box of the picture

Class object: An object
Plural form:
 objects
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 ID  integer  [r/o]  -- Picture identifier
 bounds  bounding rectangle  -- the bounding box of the picture

Class molecule: A molecule
Plural form:
 molecules
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  --the default descriptor type
 ID  integer  [r/o]  -- Picture identifier
 bounds  bounding rectangle  -- the bounding box of the picture

Class text style info: On and Off styles of text run
Properties:
 on styles  a list of plain/bold/italic/outline/shadow/underline/superscript/subscript/formula  [r/o]  -- the styles that are on for the text
 off styles  a list of plain/bold/italic/outline/shadow/underline/superscript/subscript/formula  [r/o]  -- the styles that are off for all the text

Class structure: A ChemDraw clipboard object
Plural form:
 structures

Class picture: A Macintosh picture
Plural form:
 pictures

Class spectrum: A spectrum
Plural form:
 spectra

Class menu: A menu
Plural form:
 menus
Elements:
 menu item by numeric index, by name
 menu by numeric index, by name
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 name  international text  [r/o]  -- The name of the menu
 menuID  small integer  [r/o]  -- The menu ID for the menu

Class menu item: A menu item
Plural form:
 menu items
Properties:
 best type  type class  [r/o]  -- the best descriptor type
 class  type class  [r/o]  -- the class ID
 default type  type class  [r/o]  -- the default descriptor type
 name  international text  [r/o]  -- the name of the menu item
 item number  small integer  [r/o]  -- Menu item number
 enabled  boolean  [r/o]  -- Specifies whether the menu item is enabled
 parent  reference  [r/o]  -- A reference to the parent menu
 submenu  reference  [r/o]  -- A reference to the submenu if there is one

Class ISIS Sketch: An ISIS clipboard object
Plural form:
 ISIS Sketches

Class SMILES: A SMILES string
 
 



2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA