Adobe 27510753 Scripting Guide - Page 83

Working with Documents in AppleScript, Add XMP metadata information about a file

Page 83 highlights

Adobe InDesign CS2 Scripting Guide Working with Documents in AppleScript 75 5 Working with Documents in AppleScript Most of the work that you do in InDesign revolves around documents-creating them, saving them, and populating them with page items, colors, styles, and text. Documents are also important to InDesign scripting, and almost every document-related task can be automated using scripting. This chapter shows you how to: l Do basic document management, including l Create a new document l Open a document l Close a document l Save a document l Do basic page layout, including l Set the page size and document length l Define bleed and slug areas l Specify page columns and margins l Change the pasteboard's appearance l Use guides and grids l Change measurement units and ruler origin l Define and apply document presets l Set up master pages (master spreads) l Set text-formatting defaults l Add XMP metadata (information about a file) l Create a document template l Print a document l Export a document as PDF l Export pages of a document as EPS Note: If you have not already worked through Chapter 3, "Getting Started with InDesign Scripting," you might want to do so before continuing with this chapter, which assumes that you have already read that chapter and know how to create a script.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184

Adobe InDesign CS2 Scripting Guide
Working with Documents in AppleScript
75
5
Working with Documents in AppleScript
Most of the work that you do in InDesign revolves around documents—creating them, saving them, and
populating them with page items, colors, styles, and text. Documents are also important to InDesign
scripting, and almost every document-related task can be automated using scripting.
This chapter shows you how to:
Do basic document management, including
Create a new document
Open a document
Close a document
Save a document
Do basic page layout, including
Set the page size and document length
Define bleed and slug areas
Specify page columns and margins
Change the pasteboard's appearance
Use guides and grids
Change measurement units and ruler origin
Define and apply document presets
Set up master pages (master spreads)
Set text-formatting defaults
Add XMP metadata (information about a file)
Create a document template
Print a document
Export a document as PDF
Export pages of a document as EPS
Note:
If you have not already worked through Chapter 3, “Getting Started with InDesign Scripting,” you might
want to do so before continuing with this chapter, which assumes that you have already read that chap-
ter and know how to create a script.
l
l
l
l
l
l
l
l
l
l
l
l
l
l
l
l
l
l
l
l