Adobe 23101764 Scripting Guide - Page 22

Values

Page 22 highlights

Scripting basics 2 Values 2.5 Values Values are the data your scripts use to do their work. Most of the time, the values used in your scripts will be numbers or text. TABLE 2.1 AppleScript Values Value type: What it is: Example: boolean Logical true or false. true integer Whole numbers (no decimal 14 points). Integers can be positive or negative. real A number which may 13.9972 contain a decimal point. string A series of text characters. Strings appear inside (straight) quotation marks. "I am a string" list An ordered list of values. {10.0, 20.0, 30.0, 40.0} The values of a list may be any type. object reference A specific reference to an object. current document record An unordered list of properties, Each property is identified by its label. {name: "you", index: 1} Photoshop CS Scripting Guide 18

  • 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

Photoshop CS Scripting Guide
18
Scripting basics
Values
2
2.5 Values
Values are the data your scripts use to do their work. Most of the time, the values used in your
scripts will be numbers or text.
T
ABLE
2.1
AppleScript Values
Value type:
What it is:
Example:
boolean
Logical true or false.
true
integer
Whole numbers (no decimal
points). Integers can be
positive or negative.
14
real
A number which may
contain a decimal point.
13.9972
string
A series of text characters.
Strings appear inside
(straight) quotation marks.
"I am a string"
list
An ordered list of values.
The values of a list may be
any type.
{10.0, 20.0, 30.0, 40.0}
object reference
A speci
c reference to an
object.
current document
record
An unordered list of
properties, Each property is
identi
ed by its label.
{name: "you", index: 1}