home *** CD-ROM | disk | FTP | other *** search
/ Maclife 12 / MACLIFE12-No-92-1996.ISO.7z / MACLIFE12-No-92.ISO / CD-ROM MACLIFE12 / Programming / Simple Document Construction < prev    next >
Encoding:
Text File  |  1996-02-11  |  1.4 KB  |  53 lines  |  [TEXT/ToyS]

  1. tell application "QuarkXPress 3.3 Demo"
  2.     activate
  3.     make new document at beginning
  4.     
  5.     tell first document
  6.         set view scale to fit page in window
  7.         
  8.         tell page 1
  9.             make new text box at beginning
  10.             tell first text box
  11.                 set bounds to {"2 cm", "5 cm", "8 cm", "19 cm"}
  12.                 set vertical justification to bottom justified
  13.                 tell first story
  14.                     set contents of it to "Sample Text"
  15.                     set font to "Osaka"
  16.                     set size of first word to 30
  17.                     set style of first word to all caps
  18.                     set size of second word to 120
  19.                     set style of second word to italic
  20.                 end tell
  21.             end tell
  22.             
  23.             make new text box at end
  24.             tell second text box
  25.                 set bounds to {"8.5 cm", "5 cm", "28.5 cm", "18 cm"}
  26.                 set first story to (choose file with prompt "TEXTファイルを選択してください")
  27.                 tell first story
  28.                     set size to 12
  29.                     set justification to fully justified
  30.                     set font to "Osaka"
  31.                 end tell
  32.             end tell
  33.             
  34.             make new picture box at beginning
  35.             tell first picture box
  36.                 set bounds to {"10 cm", "20 cm", "20 cm", "32 cm"}
  37.                 set first image to (choose file with prompt "TIFFファイルを選択してください")
  38.                 tell first image
  39.                     set scale to {"150", "150"}
  40.                 end tell
  41.             end tell
  42.             
  43.             make new line box at end
  44.             tell first line box
  45.                 set left point to {"8.2 cm", "2 cm"}
  46.                 set right point to {"8.2 cm", "32 cm"}
  47.                 set width to 3
  48.                 set style to dotted line
  49.             end tell
  50.         end tell
  51.     end tell
  52. end tell
  53.