Adobe 65010248 Scripting Guide - Page 13

for example, Support for JIS90 and JIS04 glyph encoding/forms was added

Page 13 highlights

CHAPTER 1: Introduction Changes since CS3 13 ➤ A new AutoKernType, MetricsRomanOnly, specifies metrics-Roman-only kerning. ➣ AppleScript - character: MetricsRomanOnly, character style: MetricsRomanOnly, line: MetricsRomanOnly, paragraph: MetricsRomanOnly, paragraph style: MetricsRomanOnly, word: MetricsRomanOnly ➣ JavaScript - AutoKernType.METRICSROMANONLY ➣ VBScript - AiAutoKernType.aiMetricsRomanOnly ➤ A new FlashExportStyle, ArtBoardsToFiles, enables each artboard in a document to be exported to a separate SWF file. ➣ AppleScript - export style: Artboards to Files ➣ JavaScript - FlashExportStyle.ARTBOARDSTOFILES ➣ VBScript - AiFlashExportStyle.aiArtboardsToFiles ➤ The CropBounds PrintingBounds constant has become obsolete, with the modification of artboards to support the new, multiple-artboard feature. ➤ Support for JIS90 and JIS04 glyph encoding/forms was added to AlternateGlyphsForm; for example: ➣ AppleScript - alternate glyphs: jis90 ➣ JavaScript - AlternateGlyphsForm.JIS90 ➣ VBScript - AiAlternateGlyphsForm.aiJIS90Form ➤ New properties were added to the Application class: build number and locale; for example: ➣ AppleScript - build number of application ➣ JavaScript - app.buildNumber ➣ VBScript - App.BuildNumber ➤ A new property in the Document class, RasterEffectSettings, contains a document's raster effect settings. ➣ AppleScript - raster effect settings of document 1 ➣ JavaScript - app.activeDocument.rasterEffectSettings ➣ VBScript - App.ActiveDocument.RasterEffectSettings ➤ A new method was added to the Application class, ConvertSampleColors, which converts a color from one color space to another. ➣ AppleScript - Set cmykColor to convert sample color source color space RGB source color rgbColor destination color space CMYK color conversion purpose default purpose ➣ JavaScript - var cmykColor = app.convertSampleColor(ImageColorSpace.RGB, new Array(93, 32, 10), ImageColorSpace.CMYK, ColorConvertPurpose.defaultpurpose); ➣ VBScript - cmykColor = appRef.ConvertSampleColor(2, Array(93, 32, 10), 3, 0)

  • 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

C
HAPTER
1: Introduction
Changes since CS3
13
A new
AutoKernType
,
MetricsRomanOnly
, specifies metrics-Roman-only kerning.
AppleScript —
character:
MetricsRomanOnly
,
character
style:
MetricsRomanOnly
,
line:MetricsRomanOnly
,
paragraph:
MetricsRomanOnly
,
paragraphstyle:MetricsRomanOnly
,
word:
MetricsRomanOnly
JavaScript —
AutoKernType.METRICSROMANONLY
VBScript —
AiAutoKernType.aiMetricsRomanOnly
A new
FlashExportStyle
,
ArtBoardsToFiles
, enables each artboard in a document to be exported
to a separate SWF file.
AppleScript —
export
style:
Artboards
to
Files
JavaScript —
FlashExportStyle.ARTBOARDSTOFILES
VBScript —
AiFlashExportStyle.aiArtboardsToFiles
The
CropBounds
PrintingBounds
constant has become obsolete, with the modification of artboards
to support the new, multiple-artboard feature.
Support for JIS90 and JIS04 glyph encoding/forms was added to
AlternateGlyphsForm
; for example:
AppleScript —
alternate glyphs:
jis90
JavaScript —
AlternateGlyphsForm.JIS90
VBScript —
AiAlternateGlyphsForm.aiJIS90Form
New properties were added to the
Application
class: build number and locale; for example:
AppleScript —
build
number
of
application
JavaScript —
app.buildNumber
VBScript —
App.BuildNumber
A new property in the
Document
class,
RasterEffectSettings
, contains a document’s raster effect
settings.
AppleScript —
raster
effect
settings
of
document
1
JavaScript —
app.activeDocument.rasterEffectSettings
VBScript —
App.ActiveDocument.RasterEffectSettings
A new method was added to the
Application
class,
ConvertSampleColors
, which converts a color
from one color space to another.
AppleScript —
Set
cmykColor
to
convert
sample
color
source
color
space
RGB
source
color
rgbColor
destination
color
space
CMYK
color
conversion
purpose
default
purpose
JavaScript —
var
cmykColor
=
app.convertSampleColor(ImageColorSpace.RGB,
newArray(93,
32,
10),
ImageColorSpace.CMYK,
ColorConvertPurpose.defaultpurpose);
VBScript —
cmykColor
=
appRef.ConvertSampleColor(2,
Array(93,
32,
10),
3,
0)