Document Body Page Navigation Panel Document Outline

Document Outline

Pages 1--3193 from Revolution Reference v2.1.2


Page 1 2
Revolution Reference
Revolution version 2. 1. 2
Engine version 2.5.1

Table of Contents Language Dictionary
How to… Why…?
Menu Reference Glossary
Shortcuts Reference Vocabulary Listings

Original PDF presentation dated 26 th March 2004
By www. FlexibleLearning. com

This presentation dated April 2004
By www. howsoft. com

1
 
1 Page 2 3

Page 2
Table of Contents Revolution Reference 1 Table of Contents 2



2 Page 3 4


LANGUAGE DICTIONARY 16



$............................................... 16
&& ............................................ 18
 ().............................................. 19
*............................................... 20
+.............................................. 21
, ............................................... 22
-............................................... 23
--.............................................. 24
/ ............................................... 25
/**/ .......................................... 26
; ............................................... 27
<.............................................. 28
<=............................................ 29
<>............................................ 30
=.............................................. 31
>.............................................. 32
>=............................................ 33
@.............................................. 34
[] .............................................. 35
^.............................................. 37
abbreviated................................ 38
abs ........................................... 39
acceleratorKey............................ 40
acceleratorModifiers .................... 41
acceleratorText ........................... 42
accentColor ................................ 43
accept ....................................... 44
acceptDrop................................. 45
acos .......................................... 46
activatePalettes .......................... 47
add ........................................... 48
addMax...................................... 49
addOver..................................... 50
addPin ....................................... 51
address ..................................... 52
adMin ........................................ 53
after.......................................... 54
aliasReference ............................ 55
allowFieldRedraw ........................ 56
allowInlineInput .......................... 57
allowInterrupts ........................... 58
allowKeyInField........................... 59
alphaData .................................. 60
alternateLanguages..................... 61
altID ......................................... 62
altKey........................................ 63
alwaysBuffer .............................. 64
and ........................................... 66
angle......................................... 67
annuity ...................................... 68
answer ...................................... 69
answer color............................... 71
answer effect.............................. 72
answer file ................................. 73
answer folder ............................. 75
answer printer ............................ 76
answer record ............................ 77
any ........................................... 78
appleEvent ................................. 79
arcAngle .................................... 80
armBorder ................................. 81
armed ....................................... 82
armedIcon ................................. 83
armFill ....................................... 84
arrow ........................................ 85
arrowKey ................................... 86
arrowSize................................... 87
as ............................................. 88
ascending .................................. 89
asin........................................... 90
ask............................................ 91
ask file ...................................... 92
ask password ............................. 94
at ............................................. 95
atan.......................................... 96
atan2 ........................................ 97
audioClip ................................... 98
autoArm.................................... 99
autoHilite................................. 100
autoTab................................... 101
average................................... 102
back........................................ 103
backdrop ................................. 104
backgroundBehavior ................. 106
backgroundColor ...................... 107
backgroundIDs ......................... 109
backgroundNames .................... 110
backgroundPattern.................... 111
backgroundPixel ....................... 113
backScripts .............................. 114
backSize.................................. 115
backslash ................................ 116
backspaceKey .......................... 117
base64Decode..........................
118
base64Encode ..........................
119
baseConvert.............................
120
beep ....................................... 122
beepDuration ........................... 123
beepLoudness .......................... 124
beepPitch ................................ 125
before ..................................... 126
binaryDecode ........................... 127
binaryEncode ........................... 129
binfile...................................... 131
bitAnd ..................................... 132
bitNot...................................... 133
bitOr ....................................... 134
bitXor...................................... 135
black....................................... 136
blend ...................................... 137
blendLevel ............................... 138
blindTyping.............................. 139
blinkRate ................................. 140
bold ........................................ 141
borderColor.............................. 142
borderPattern........................... 144
borderPixel .............................. 146
borderWidth............................. 147
bottom.................................... 148
bottomColor............................. 149
bottomLeft............................... 151
bottomMargin........................... 152
bottomPattern.......................... 153
bottomPixel.............................. 155
bottomRight............................. 156
boundingBox............................ 157
boundingRect ........................... 158
box ......................................... 159
break ...................................... 160
break ...................................... 161
breakpoint ............................... 162
browse .................................... 163
brush ...................................... 164
brush ...................................... 165
brushColor ............................... 166
brushPattern ............................ 167
bucket..................................... 168
bufferHiddenImages.................. 169
bufferMode .............................. 170
buildNumber ............................ 171
busy ....................................... 172
button ..................................... 173
button ..................................... 174
by........................................... 175
cachedURLs ............................. 176
call ......................................... 177
callbacks ................................. 178
cancel ..................................... 179
cantAbort ................................ 180
cantDelete............................... 181
cantModify............................... 182
cantSelect ............................... 183
capsLockKey............................ 184
card........................................ 185
card........................................ 186
cardIDs ................................... 187
cardNames .............................. 188
cascade................................... 189
case ....................................... 190
caseSensitive........................... 191
catch ...................................... 192
centered ................................. 193
centuryCutoff........................... 194
character................................. 195
characters ............................... 196
charSet ................................... 197
charToNum.............................. 198
checkmark............................... 199
choose .................................... 200
clear ....................................... 202
click........................................ 203
clickChar ................................. 204
clickCharChunk ........................ 205
clickChunk............................... 206
clickField ................................. 207
clickH...................................... 208
clickLine.................................. 209
clickLoc ................................... 210
clickStack................................ 211
clickText ................................. 212
clickV...................................... 213
clipboard ................................. 214
clipboardData .......................... 215
clone ...................................... 216
close....................................... 217
close driver.............................. 218
close file.................................. 219
close printing........................... 220
close process ........................... 221
close socket............................. 222
closeBackground ...................... 223
closeBox ................................. 224
closeCard ................................ 225
closeField ................................ 226
closeStack ............................... 227
closeStackRequest.................... 228
colon ...................................... 229
colorMap ................................. 230
colorNames ............................. 231
colorPalette ............................. 232
colors ..................................... 233
colorWorld............................... 234
columnDelimiter .......................
235
COM1: ....................................
236
COM2: ....................................
237
COM3: ....................................
238
COM4: ....................................
239
COM5: ....................................
240
COM6: .................................... 241
COM7: .................................... 242
COM8: .................................... 243
COM9: .................................... 244
combine .................................. 245
comboBox ............................... 246
comma ................................... 247
commandChar ......................... 248
commandKey........................... 249
commandKeyDown ................... 250
commandNames ...................... 251
compact .................................. 252
compound ............................... 253
compress ................................. 254
condensed ............................... 255
constant .................................. 256
constantMask ........................... 257
constantNames......................... 258
constraints ............................... 259
contains................................... 260
control ..................................... 261
controlKey ............................... 262
controlKeyDown........................ 263
convert .................................... 264
convertOctals ........................... 266
copy........................................ 267
copyKey................................... 268
copyResource ........................... 269
cos.......................................... 270
create...................................... 271
create alias .............................. 273
create card............................... 274
create folder............................. 275
create stack ............................. 276
CRLF ....................................... 277
crop ........................................ 278
cross ....................................... 279
currentFrame ........................... 280
currentNode ............................. 281
currentPage.............................. 282
currentTime ............................. 283
currentTimeChanged ................. 284
cursor...................................... 285
curve....................................... 287
customKeys.............................. 288
customProperties ...................... 289
customPropertySet.................... 290
customPropertySets .................. 291
cut .......................................... 292
cutKey..................................... 293
dashes..................................... 294
date ........................................ 295
dateFormat .............................. 297
dateItems ................................ 298
dateTime ................................. 299
debugDo .................................. 300
decompress.............................. 301
decorations .............................. 302
default..................................... 304
default..................................... 305
defaultButton ........................... 306
defaultCursor ...........................
307
defaultFolder ............................
308
defaultMenubar.........................
309
defaultStack ............................. 310
define...................................... 311
delete...................................... 312
delete chunk ............................ 313
delete file................................. 314
delete folder ............................. 315
delete stack.............................. 316
delete URL ............................... 317
delete variable.......................... 319
deleteBackground ..................... 320
deleteButton ............................ 321
deleteCard ............................... 322
deleteEPS ................................ 323
deleteField ............................... 324
deleteGraphic ........................... 325
deleteGroup ............................. 326
deleteImage............................. 327
deleteKey................................. 328
deletePlayer ............................. 329
deleteRegistry .......................... 330
deleteResource ......................... 331
deleteScrollbar ......................... 332
deleteStack .............................. 333
descending............................... 334
destroyStack ............................ 335
destroyWindow......................... 336
dialogData ............................... 337
disable..................................... 338
disable menu............................ 339
disabled................................... 340
disabledIcon ............................ 341
diskSpace ................................ 342
div ..........................................
343
divide......................................
344
DNSServers .............................
345
do...........................................
346
doMenu ...................................
347
done ....................................... 348
dontDither ............................... 349
dontRefresh ............................. 350
dontResize............................... 351
dontSearch .............................. 352
dontUseNS............................... 353
dontUseQT............................... 354
dontUseQTEffects ..................... 355
dontWrap ................................ 356
doubleClickDelta ....................... 357
doubleClickInterval ................... 358
down....................................... 359
drag........................................ 360
dragData ................................. 361
dragDestination........................ 362
dragDrop ................................. 363
dragEnd .................................. 364
dragEnter ................................ 365
draggable ................................ 366
dragLeave................................ 367
dragMove ................................ 368
dragSource .............................. 369
dragSpeed ............................... 370
dragStart................................. 371
drawer .................................... 372
driverNames ............................ 374
dropChunk............................... 375
dropper ................................... 376
duration .................................. 377
dynamicPaths........................... 378
each ....................................... 379
edit ......................................... 380
editBackground ........................ 381
editMenus................................ 382
editScript................................. 383
editScripts ............................... 384
effective .................................. 385
effectRate ................................ 387
eight ....................................... 388
eighth ..................................... 389
element................................... 390
else ........................................ 391
emacsKeyBindings .................... 392
empty ..................................... 393
enable..................................... 394
enable menu ............................ 395
enabled ................................... 396
enabledTracks .......................... 397
end......................................... 398
end if ...................................... 399
end repeat ............................... 400
end switch ............................... 401
end try .................................... 402
endArrow................................. 403
endFrame ................................ 404
endTime .................................. 405
endValue ................................. 406
english .................................... 407
enterInField ............................. 408
enterKey ................................. 409
environment ............................ 410
EOF ........................................ 411
EPS.........................................
412
eraser .....................................
413
eraser .....................................
414
errorDialog .............................. 415
errorObject .............................. 416
escapeKey ............................... 417
executionError.......................... 418
exists ...................................... 419
exit ......................................... 420
exit repeat ............................... 421
exit to top ............................... 422
exitField .................................. 423
exp......................................... 424
exp1....................................... 425
exp10 ..................................... 426
exp2....................................... 427
expanded ................................ 428
explicitVariables ....................... 429
export..................................... 430
export snapshot ....................... 431
extendKey ............................... 433
extents ................................... 434
externalCommands................... 435
externalFunctions ..................... 436
externalPackages ..................... 437
externals................................. 438
false ....................................... 439
family ..................................... 440
field........................................ 441
field........................................ 442
fifth ........................................ 443
file.......................................... 444
filename.................................. 445
filename of stack...................... 447
files ........................................ 448
fileType................................... 450
filled ....................................... 451
filter ....................................... 452
finally ..................................... 453
find ........................................ 454
first ........................................ 456
firstIndent ............................... 457
five......................................... 458
fixedLineHeight ........................ 459
flip ......................................... 460
flushEvents.............................. 461
focus ...................................... 462
focusColor ............................... 463
focusedObject .......................... 465
focusIn ................................... 466
focusOut ................................. 467
focusPattern ............................ 468
focusPixel ................................ 470
folders .................................... 471
fontLanguage...........................
473
fontNames...............................
474
fontSizes .................................
475
fontStyles................................ 476
for .......................................... 477
foregroundColor ....................... 478
foregroundPattern .................... 480
foregroundPixel ........................ 482
forever.................................... 483
format .................................... 484
formatForPrinting ..................... 485
formattedHeight ....................... 487
formattedLeft........................... 488
formattedRect .......................... 489
formattedText .......................... 490
formattedTop........................... 491
formattedWidth........................ 492
formfeed ................................. 493
foundChunk............................. 494
foundField ............................... 495
foundLine ................................ 496
foundLoc ................................. 497
foundText................................ 498
four ........................................ 499
fourth ..................................... 500
frameCount ............................. 501
frameRate ............................... 502
freeSize .................................. 503
from....................................... 504
front ....................................... 505
frontScripts ............................. 506
ftp.......................................... 507
ftpProxy .................................. 509
function .................................. 510
functionKey ............................. 512
functionNames ......................... 513
get .......................................... 514
getProp.................................... 515
getResource ............................. 517
getResources............................ 518
global ...................................... 520
globalLoc ................................. 521
globalNames ............................ 522
go ........................................... 523
grab ........................................ 525
graphic .................................... 526
graphic .................................... 527
gray ........................................ 528
gRevAppIcon ............................ 529
gRevProfileReadOnly ................. 530
gRevSmallAppIcon .................... 531
grid ......................................... 532
gridSize ................................... 533
group ...................................... 534
group ...................................... 535
groupIDs ................................. 536
groupNames............................. 537
hand ....................................... 538
hasMemory .............................. 539
HCAddressing ........................... 540
HCImportStat ........................... 541
HCStack................................... 542
heapSpace ............................... 543
height...................................... 544
help ........................................ 545
help ........................................ 546
hGrid....................................... 547
hide ........................................ 548
hide groups .............................. 549
hide menubar ........................... 550
hide taskbar ............................. 551
hideConsoleWindows ................. 552
hidePalettes ............................. 553
hilite........................................ 554
hilite........................................ 555
hiliteBorder .............................. 556
hiliteColor ................................ 557
hilitedButton............................. 559
hilitedButtonID ......................... 560
hilitedButtonName .................... 561
hilitedIcon................................ 562
hilitedLine ................................ 563
hiliteFill.................................... 564
hilitePattern ............................. 565
hilitePixel ................................. 567
home....................................... 568
hostAddress ............................. 569
hostAddressToName.................. 570
hostName ................................ 571
hostNameToAddress.................. 572
hotSpot ................................... 573
hotspotClicked.......................... 574
hotspots .................................. 575
hScroll ..................................... 576
hScrollbar ................................ 577
HTMLText................................. 578
http......................................... 582
httpHeaders ............................. 585
HTTPProxy ............................... 586
iBeam...................................... 587
icon......................................... 588
iconic ...................................... 589
iconifyStack.............................. 590
ID ........................................... 591
IDChanged............................... 593
idle ......................................... 594
idleRate ................................... 595
idleTicks .................................. 596
if............................................. 597
image...................................... 599
image...................................... 600
imageData ............................... 601
imagePixmapID ........................ 603
imageSource ............................ 604
import ..................................... 605
import snapshot........................ 606
in ........................................... 607
ink.......................................... 608
insert script ............................. 610
int1......................................... 611
int2......................................... 612
int4......................................... 613
integer .................................... 614
internet ................................... 615
interrupt.................................. 616
intersect .................................. 617
intersect .................................. 618
intersect .................................. 619
into......................................... 620
inverse .................................... 621
invisible................................... 622
is a ......................................... 623
is among ................................. 624
is in ........................................ 625
is not a.................................... 626
is not among............................ 627
is not in................................... 628
is not within ............................. 629
is within .................................. 630
isNumber................................. 631
ISOToMac................................ 632
it ............................................ 633
italic........................................ 634
item........................................ 635
itemDelimiter ........................... 636
itemOffset ............................... 637
items ...................................... 638
JPEGQuality ............................. 639
keyDown ................................. 640
keys........................................ 641
keysDown................................ 642
keyUp ..................................... 643
kill .......................................... 644
label ....................................... 645
last ......................................... 646
launch..................................... 647
layer ....................................... 648
left.......................................... 650
left.......................................... 651
leftMargin ................................ 652
length ..................................... 653
libraryStack ............................. 654
libURLDownloadToFile ............... 655
libURLErrorData........................ 656
libURLftpCommand ................... 657
libURLftpUpload........................ 659
libURLftpUploadFile ................... 661
libURLLastHTTPHeaders ............. 662
libURLLastRHHeaders ................ 663
libURLSetCustomHTTPHeaders ... 664
libURLSetFTPListCommand......... 666
libURLSetFTPMode .................... 667
libURLSetFTPStopTime .............. 668
libURLSetLogField ..................... 669
libURLSetStatusCallback ............ 670
libURLVersion........................... 672
licensed................................... 673
line ......................................... 674
lineDelimiter ............................ 675
lineIncrement........................... 676
lineOffset................................. 677
lines........................................ 678
lineSize ................................... 679
link ......................................... 680
linkClicked ............................... 681
linkColor .................................. 682
linkHiliteColor........................... 683
linkText ................................... 684
linkVisitedColor ........................ 685
listBehavior.............................. 686
liveResizing.............................. 687
ln ........................................... 688
ln1.......................................... 689
load ........................................ 690
local........................................ 692
localLoc ................................... 693
localNames.............................. 694
location................................... 695
lock colorMap........................... 696
lock cursor .............................. 697
lock error dialogs ..................... 698
lock menus.............................. 699
lock messages ......................... 700
lock moves .............................. 701
lock recent .............................. 702
lock screen .............................. 703
lockColorMap ........................... 704
lockCursor ............................... 705
lockErrorDialogs ....................... 706
lockLocation ............................ 707
lockMenus ............................... 708
lockMessages........................... 709
lockMoves ............................... 710
lockRecent............................... 711
lockScreen............................... 712
lockText .................................. 714
log10 ...................................... 715
log2........................................ 716
long........................................ 717
longFilePath............................. 718
longWindowTitles ..................... 719
lookAndFeel ............................. 720
looping.................................... 721
lowResolutionTimers ................. 722
LPT1:...................................... 723
LZWKey .................................. 724
machine .................................. 725
macToISO ............................... 726
magnifier ................................ 727
magnify .................................. 728
mainStack ............................... 729
mainStackChanged................... 730
mainStacks.............................. 731
margins .................................. 732
mark ...................................... 733
mark ...................................... 734
markChar ................................ 735
marked ................................... 736
markerDrawn........................... 737
markerFilled ............................ 738
markerLineSize ........................ 739
markerPoints ........................... 740
maskData................................ 741
maskPixmapID......................... 742
matchChunk ............................ 743
matchText ............................... 744
matrixMultiply.......................... 746
max........................................ 747
maxHeight............................... 748
maximize ................................ 749
maxWidth................................ 750
mcEncrypt ............................... 751
MCISendString......................... 752
mcLicense ............................... 753
md5Digest............................... 754
me ......................................... 755
median ................................... 756
mediaTypes ............................. 757
menu...................................... 758
menubar ................................. 759
menuButton ............................ 760
menuHistory ............................ 761
menuItem ............................... 762
menuLines............................... 763
menuMessage .......................... 764
menuMode .............................. 765
menuMouseButton.................... 767
menuName.............................. 768
menuPick ................................ 769
menus .................................... 770
merge..................................... 771
message box ........................... 772
metaKey ................................. 773
metal ...................................... 774
middle .................................... 775
milliseconds............................. 776
milliseconds ............................. 777
mimeText ................................ 778
min ......................................... 779
minHeight ................................ 780
minimize.................................. 781
minimizeBox............................. 782
minWidth ................................. 783
mnemonic ................................ 784
mod ........................................ 785
modal ...................................... 786
mode....................................... 787
modeless ................................. 789
modem:................................... 790
monthNames............................ 791
mouse ..................................... 792
mouseChar............................... 793
mouseCharChunk...................... 794
mouseChunk ............................ 795
mouseClick............................... 796
mouseColor.............................. 797
mouseControl ........................... 798
mouseDoubleDown ................... 799
mouseDoubleUp........................ 800
mouseDown ............................. 801
mouseDownInBackdrop ............. 802
mouseEnter.............................. 803
mouseH ................................... 804
mouseLeave ............................. 805
mouseLine ............................... 806
mouseLoc ................................ 807
mouseMove.............................. 808
mouseRelease .......................... 809
mouseStack ............................. 810
mouseStillDown ........................ 811
mouseText ............................... 812
mouseUp ................................. 813
mouseUpInBackdrop ................. 815
mouseV ................................... 816
mouseWithin ............................ 817
move....................................... 818
moveControl............................. 820
moveSpeed .............................. 821
moveStack ............................... 822
moveStopped ........................... 823
movie...................................... 824
movieControllerID..................... 825
movingControls ........................ 826
multiEffect ............................... 827
multiple ................................... 828
multipleLines ............................ 829
multiply ................................... 830
multiSpace ............................... 831
name....................................... 832
nameChanged .......................... 834
navigationArrows ...................... 835
newBackground ........................ 836
newButton ............................... 837
newCard .................................. 838
newEPS ................................... 839
newField .................................. 840
newGraphic .............................. 841
newGroup ................................ 842
newImage................................ 843
newPlayer ................................ 844
newScrollbar ............................ 845
newStack ................................. 846
newTool ................................... 847
next ........................................ 848
next repeat .............................. 849
nine ........................................ 850
ninth ....................................... 851
nodeChanged ........................... 852
nodes ...................................... 853
noncontiguousHilites ................. 854
noOp ....................................... 855
normal..................................... 856
not .......................................... 857
notSrcAnd................................ 858
notSrcAndReverse..................... 859
notSrcBic ................................. 860
notSrcCopy .............................. 861
notSrcOr.................................. 862
notSrcOrReverse ...................... 863
notSrcXOr................................ 864
null ......................................... 865
number ................................... 866
number ................................... 867
numberFormat ......................... 868
numeric................................... 870
numToChar.............................. 871
of ........................................... 872
offset ...................................... 873
on........................................... 874
one......................................... 875
onto........................................ 876
opaque.................................... 877
opaque.................................... 878
open driver .............................. 879
open file .................................. 881
open printing ........................... 883
open process............................ 884
open socket ............................. 885
openBackground....................... 887
openCard................................. 888
openField................................. 889
openFiles ................................. 890
openProcesses.......................... 891
openProcessIDs ........................ 892
openSockets ............................ 893
openStack ............................... 894
openStacks .............................. 895
option ..................................... 896
option ..................................... 897
optionKey ................................ 898
optionKeyDown ........................ 899
or ........................................... 900
orientation ............................... 901
oval ........................................ 902
owner ..................................... 903
pageCount ............................... 904
pageHeights............................. 905
pageIncrement ......................... 906
paint ....................................... 907
paintCompression ..................... 908
palette .................................... 909
palindromeFrames .................... 910
pan......................................... 911
param..................................... 912
paramCount ............................. 913
params.................................... 914
pass........................................ 916
passKey .................................. 918
password................................. 919
paste ...................................... 920
pasteKey ................................. 921
patterns .................................. 922
paused .................................... 923
peerAddress............................. 924
penBack .................................. 925
pencil ...................................... 926
penColor.................................. 927
pendingMessages ..................... 928
penPattern............................... 929
pi............................................ 930
pixels ...................................... 931
pixmapID ................................ 932
place....................................... 933
plain ....................................... 934
platform .................................. 935
play ........................................ 936
playDestination ........................ 938
player ..................................... 939
player ..................................... 940
playLoudness ........................... 941
playPaused .............................. 942
playRate .................................. 943
playSelection ........................... 944
playStopped............................. 945
plus ........................................ 946
point ....................................... 947
pointer .................................... 948
pointerFocus ............................ 949
points ..................................... 950
polygon................................... 951
polySides ................................ 952
pop......................................... 953
popup ..................................... 954
popup ..................................... 956
post........................................ 957
postScript................................ 959
powerKeys .............................. 960
preOpenBackground ................. 961
preOpenCard ........................... 962
preOpenStack .......................... 963
prepare................................... 964
previous.................................. 965
print ....................................... 966
printCardBorders...................... 968
printColors .............................. 969
printCommand ......................... 970
printer: ................................... 971
printFontTable ......................... 972
printGutters............................. 973
printMargins ............................ 974
printPaperSize ......................... 975
printRotated ............................ 976
printRowsFirst.......................... 977
printScale................................ 978
printTextAlign .......................... 979
printTextFont ........................... 980
printTextHeight ........................ 981
printTextSize ........................... 982
printTextStyle .......................... 983
privateColors ........................... 984
processID................................ 985
processor ................................ 986
prolog ..................................... 987
properties................................ 988
propertyNames ........................ 990
proportionalThumbs.................. 991
pulldown ................................. 992
pulldown ................................. 993
push ....................................... 994
put ......................................... 995
QTDebugStr............................. 997
QTEffects ................................ 998
QTVersion ............................... 999
queryRegistry ......................... 1000
quit ....................................... 1001
quote..................................... 1002
radioBehavior ......................... 1003
raiseMenus ............................. 1004
raisePalettes ........................... 1005
random.................................. 1006
randomSeed ........................... 1007
rawKeyDown .......................... 1008
rawKeyUp............................... 1009
read from driver ...................... 1010
read from file.......................... 1012
read from process ................... 1014
read from socket ..................... 1016
real4...................................... 1018
real8...................................... 1019
recent .................................... 1020
recentCards ............................ 1021
recentNames .......................... 1022
record sound .......................... 1023
recordChannels ....................... 1024
recordCompression.................. 1025
recordCompressionTypes.......... 1026
recordFormat .......................... 1027
recordFormats ........................ 1028
recording................................ 1029
recordInput ............................ 1030
recordLoudness....................... 1031
recordRate ............................. 1032
recordSampleSize.................... 1033
rectangle................................ 1034
rectangle................................ 1035
recursionLimit ......................... 1037
redo ...................................... 1038
regular .................................. 1039
relative .................................. 1040
relativePoints ......................... 1041
relayerGroupedControls ........... 1042
releaseStack........................... 1043
reloadStack ............................ 1044
remapColor ............................ 1045
remove.................................. 1046
remove script ......................... 1047
rename.................................. 1048
repeat ................................... 1049
repeatCount ........................... 1052
repeatDelay ........................... 1053
repeatRate ............................. 1054
replace .................................. 1055
replaceText ............................ 1056
reply ..................................... 1057
request .................................. 1058
request appleEvent ................. 1059
reset ..................................... 1060
reset cursors .......................... 1061
reset paint ............................. 1062
resetAll .................................. 1063
resfile.................................... 1064
resizable ................................ 1065
resizeControl .......................... 1066
resizeStack ............................ 1067
result .................................... 1068
resume .................................. 1069
resumeStack .......................... 1070
retainImage ........................... 1071
retainPostScript ...................... 1072
return.................................... 1073
return.................................... 1074
returnInField .......................... 1075
returnKey .............................. 1076
revAddXMLNode...................... 1077
revAppendXML........................ 1078
revAppVersion ........................ 1079
revCacheGeometry.................. 1080
revChangeWindowSize............. 1081
revCloseCursor ....................... 1083
revCloseDatabase ................... 1084
revCloseVideoGrabber ............. 1085
revCommitDatabase................ 1086
revCopyFile ............................ 1087
revCopyFolder ........................ 1088
revCreateXMLTree................... 1089
revCreateXMLTreeFromFile....... 1090
revCurrentRecord.................... 1091
revCurrentRecordIsFirst ........... 1092
revCurrentRecordIsLast ........... 1093
revDatabaseColumnCount ........ 1094
revDatabaseColumnIsNull ........ 1095
revDatabaseColumnLengths ..... 1096
revDatabaseColumnNamed ...... 1097
revDatabaseColumnNames....... 1098
revDatabaseColumnNumbered.. 1099
revDatabaseColumnTypes ........ 1100
revDatabaseConnectResult ....... 1102
revDatabaseCursors ................ 1103
revDatabaseID ....................... 1104
revDatabaseType .................... 1105
revDataFromQuery.................. 1106
revdb_ closecursor ................... 1108
revdb_ commit ........................ 1109
revdb_ disconnect .................... 1110
revdb_ execute........................ 1111
revdb_ movefirst ..................... 1112
revdb_ movelast ...................... 1113
revdb_ movenext ..................... 1114
revdb_ moveprev..................... 1115
revdb_ rollback........................ 1116
revDeleteAllXMLTrees .............. 1117
revDeleteFolder ...................... 1118
revDeleteXMLNode .................. 1119
revDeleteXMLTree................... 1120
revEndXMLNode...................... 1121
revEndXMLTree....................... 1122
reverse.................................. 1123
revert.................................... 1124
revExecuteSQL....................... 1125
revGoToFramePaused.............. 1127
revGoURL .............................. 1128
revInitializeVideoGrabber......... 1130
revIsSpeaking ........................ 1131
revLicenseType....................... 1132
revLoadedStacks .................... 1133
revMacFromUnixPath .............. 1135
revMail .................................. 1137
revMoveFolder........................ 1139
revMoveToFirstRecord ............. 1140
revMoveToLastRecord ............. 1141
revMoveToNextRecord............. 1142
revMoveToPreviousRecord ....... 1143
revNumberOfRecords .............. 1144
revOpenDatabase ................... 1145
revOpenDatabases.................. 1147
revPlayAnimation.................... 1148
revPreviewVideo ..................... 1149
revPrintField........................... 1150
revPrintReport........................ 1152
revPrintText ........................... 1153
revProfile............................... 1155
revPutIntoXMLNode ................ 1156
revQueryDatabase .................. 1157
revQueryDatabaseBLOB .......... 1159
revQueryResult ...................... 1161
revRecordVideo ...................... 1162
revRollBackDatabase............... 1163
revRotatePoly......................... 1164
revSetCardProfile.................... 1165
revSetDatabaseDriverPath ....... 1166
revSetSpeechPitch .................. 1167
revSetSpeechSpeed ................ 1168
revSetSpeechVoice ................. 1169
revSetStackFileProfile.............. 1170
revSetStackProfile .................. 1171
revSetVideoGrabberRect.......... 1172
revSetVideoGrabSettings ......... 1173
revSetXMLAttribute................. 1174
revShowPrintDialog................. 1175
revSpeak ............................... 1177
revSpeechVoices .................... 1178
revStartXMLData .................... 1179
revStartXMLNode.................... 1180
revStartXMLTree..................... 1181
revStopAnimation ................... 1182
revStopPreviewingVideo .......... 1183
revStopRecordingVideo ........... 1184
revStopSpeech ....................... 1185
revUnixFromMacPath .............. 1186
revUnloadSpeech.................... 1188
revUpdateGeometry................ 1189
revVideoFrameImage .............. 1190
revVideoGrabDialog ................ 1191
revVideoGrabIdle.................... 1192
revVideoGrabSettings.............. 1193
revXMLAddDTD ...................... 1194
revXMLAttribute ..................... 1195
revXMLAttributes .................... 1196
revXMLAttributeValues ............ 1197
revXMLChildContents .............. 1198
revXMLChildNames ................. 1199
revXMLFirstChild..................... 1200
revXMLMatchingNode .............. 1201
revXMLNextSibling.................. 1202
revXMLNodeContents .............. 1203
revXMLNumberOfChildren........ 1204
revXMLParent......................... 1205
revXMLPreviousSibling............. 1206
revXMLRootNode .................... 1207
revXMLText............................ 1208
revXMLTree............................ 1209
revXMLTrees .......................... 1210
revXMLValidateDTD ................ 1211
right ..................................... 1212
right ..................................... 1213
rightMargin ............................ 1214
rotate .................................... 1215
round..................................... 1216
roundEnds.............................. 1217
roundRadius ........................... 1218
roundRect .............................. 1219
RTFText ................................. 1220
save ...................................... 1220
saveCompressed ..................... 1222
saveStackRequest ................... 1223
scale...................................... 1224
scaleIndependently.................. 1225
screenColors ........................... 1226
screenDepth ........................... 1227
screenGamma......................... 1228
screenLoc............................... 1229
screenMouseLoc ...................... 1230
screenName ........................... 1231
screenNoPixmaps .................... 1232
screenRect ............................. 1233
screenSharedMemory .............. 1234
screenType............................. 1235
screenVendor.......................... 1236
script ..................................... 1237
scriptError .............................. 1238
scriptLimits............................. 1239
scriptParsingError.................... 1240
scriptTextFont ......................... 1241
scriptTextSize ......................... 1242
scrollbar................................. 1243
scrollbar................................. 1244
scrollbarBeginning ................... 1245
scrollbarDrag .......................... 1246
scrollbarEnd............................ 1247
scrollbarFactor ........................ 1248
scrollbarLineDec...................... 1249
scrollbarLineInc....................... 1250
scrollbarPageDec..................... 1251
scrollbarPageInc...................... 1252
scrollbarWidth......................... 1253
seconds ................................. 1254
seconds ................................. 1255
secureMode ............................ 1256
seek ...................................... 1257
select..................................... 1258
select..................................... 1259
selected ................................. 1260
selectedButton ........................ 1261
selectedChunk ........................ 1262
selectedColor .......................... 1263
selectedField........................... 1264
selectedImage ........................ 1265
selectedLine ........................... 1266
selectedLoc............................. 1267
selectedObject ........................ 1268
selectedObjectChanged............ 1269
selectedText ........................... 1270
selectGroupedControls ............. 1271
selection ................................ 1272
selectionChanged .................... 1273
selectionHandleColor ............... 1274
selectionMode ......................... 1275
send ...................................... 1276
send to program ..................... 1278
serialControlString................... 1279
set ........................................ 1280
set ........................................ 1281
setProp .................................. 1282
setRegistry ............................. 1284
setResource............................ 1285
seven..................................... 1287
seventh.................................. 1288
shadow .................................. 1289
shadow .................................. 1290
shadowColor ........................... 1291
shadowOffset .......................... 1293
shadowPattern ........................ 1294
shadowPixel............................ 1296
sharedHilite ............................ 1297
sharedText ............................. 1298
sheet ..................................... 1299
shell ...................................... 1300
shellCommand........................ 1301
shiftKey ................................. 1302
short ..................................... 1303
shortFilePath .......................... 1304
show ..................................... 1305
show cards............................. 1306
show groups........................... 1307
show menubar........................ 1308
show taskbar.......................... 1309
showBadge ............................ 1310
showBorder ............................ 1311
showController ....................... 1312
showFocusBorder .................... 1313
showHilite .............................. 1314
showIcon ............................... 1315
showInvisibles ........................ 1316
showLines .............................. 1317
showName ............................. 1318
showPict ................................ 1319
showSelection ........................ 1320
showValue ............................. 1321
shutdown............................... 1322
shutdownRequest.................... 1323
signal .................................... 1324
sin ........................................ 1325
six ........................................ 1326
sixth...................................... 1327
size ....................................... 1328
slash ..................................... 1329
slices..................................... 1330
socketClosed .......................... 1331
socketError ............................ 1332
socketTimeout ........................ 1333
socketTimeoutInterval ............. 1334
sort ....................................... 1335
sort container ......................... 1336
sound .................................... 1338
soundChannel......................... 1339
space .................................... 1340
specialFolderPath .................... 1341
split....................................... 1343
spray..................................... 1345
spray can............................... 1346
sqrt ....................................... 1347
srcAnd................................... 1348
srcAndReverse........................ 1349
srcBic .................................... 1350
srcCopy ................................. 1351
srcOr ..................................... 1352
srcOrReverse.......................... 1353
srcXOr ................................... 1354
stack ..................................... 1355
stackFiles............................... 1356
stackFileType.......................... 1358
stacks.................................... 1359
stacksInUse............................ 1360
stackSpace............................. 1361
standard ................................ 1362
standardDeviation ................... 1363
start ...................................... 1364
start editing ........................... 1365
start using ............................. 1366
startAngle .............................. 1367
startArrow.............................. 1368
startFrame ............................. 1369
startTime ............................... 1370
startup .................................. 1371
startUpIconic.......................... 1372
startValue .............................. 1373
statRound .............................. 1374
stderr .................................... 1375
stdin...................................... 1376
stdout.................................... 1377
stop ...................................... 1378
stop editing............................ 1379
stop moving ........................... 1380
stop recording ........................ 1381
stop using .............................. 1382
strikeout ................................ 1383
string .................................... 1384
style ..................................... 1385
subOver ................................ 1387
subPin................................... 1388
substacks .............................. 1389
subtract................................. 1390
sum...................................... 1391
surround ............................... 1392
suspend ................................ 1393
suspendStack......................... 1394
switch ................................... 1395
syncRate ............................... 1397
sysError ................................ 1398
system.................................. 1399
systemColorSelector ............... 1400
systemFileSelector .................. 1401
systemVersion........................ 1402
systemWindow....................... 1403
tab........................................ 1404
tabbed .................................. 1405
tabGroupBehavior................... 1406
tabKey .................................. 1407
tabStops................................ 1408
tan ....................................... 1409
target.................................... 1410
target.................................... 1411
templateAudioClip................... 1412
templateButton ...................... 1413
templateCard ......................... 1414
templateEPS .......................... 1415
templateField ......................... 1416
templateGraphic ..................... 1417
templateGroup ....................... 1418
templateImage....................... 1419
templatePlayer ....................... 1420
templateScrollbar ................... 1421
templateStack ........................ 1422
templateVideoClip................... 1423
tempName............................. 1424
ten ....................................... 1425
tenth..................................... 1426
text....................................... 1427
text....................................... 1428
textAlign................................ 1429
textArrows ............................. 1430
textFont ................................ 1431
textHeight ............................. 1433
textHeightSum....................... 1434
textShift ................................ 1435
textSize................................. 1436
textStyle ............................... 1437
the ....................................... 1438
then...................................... 1439
there is a ............................... 1440
there is no ............................. 1441
third ..................................... 1442
this ....................................... 1443
three..................................... 1444
threeD................................... 1445
threeDBox ............................. 1446
threeDHilite ........................... 1447
throw .................................... 1448
thumbPosition ........................ 1449
thumbSize ............................. 1450
ticks...................................... 1451
ticks...................................... 1452
tilt ........................................ 1453
time...................................... 1454
timeScale .............................. 1455
title....................................... 1456
titleWidth............................... 1457
to ......................................... 1458
toggleHilites........................... 1459
token .................................... 1460
toLower ................................. 1461
tool ....................................... 1462
tool ....................................... 1463
toolTip................................... 1464
toolTipDelay........................... 1465
top ....................................... 1466
top ........................................ 1467
topColor ................................. 1468
topLeft ................................... 1470
topLevel ................................. 1471
topMargin............................... 1472
topPattern .............................. 1473
topPixel.................................. 1475
topRight ................................. 1476
topStack ................................ 1477
toUpper.................................. 1478
traceDelay.............................. 1479
traceReturn ............................ 1480
traceStack .............................. 1481
trackCount ............................. 1482
tracks .................................... 1483
transparent ............................ 1484
transpose ............................... 1485
traversalOn ............................ 1486
true ....................................... 1487
trunc ..................................... 1488
try......................................... 1489
twelveHourTime ...................... 1491
two........................................ 1492
type....................................... 1493
typingRate.............................. 1494
uInt1 ..................................... 1495
uInt2 ..................................... 1496
uInt4 ..................................... 1497
umask ................................... 1498
undefine................................. 1499
underline................................ 1500
underlineLinks ........................ 1501
undo...................................... 1502
undoChanged ......................... 1503
undoKey................................. 1504
ungroup ................................. 1505
unhilite .................................. 1506
unicodeText ............................ 1507
unIconifyStack ........................ 1508
uniDecode .............................. 1509
uniEncode .............................. 1511
union ..................................... 1513
unload ................................... 1514
unlock colorMap ...................... 1515
unlock cursor .......................... 1516
unlock error dialogs ................. 1517
unlock menus ......................... 1518
unlock messages ..................... 1519
unlock moves.......................... 1520
unlock recent .......................... 1521
unlock screen ......................... 1522
unmark .................................. 1523
until....................................... 1524
up ......................................... 1525
URL ....................................... 1526
URLDecode............................. 1527
URLEncode ............................. 1528
URLStatus .............................. 1529
userLevel ............................... 1531
userModify ............................. 1532
useSystemDate....................... 1533
useUnicode............................. 1534
using ..................................... 1535
value ..................................... 1536
variableNames ........................ 1537
version................................... 1538
vGrid ..................................... 1539
videoClip ................................ 1540
videoClipPlayer ....................... 1541
visible .................................... 1542
visited.................................... 1543
visitedIcon.............................. 1544
visual effect ............................ 1545
volumes ................................. 1547
vScroll ................................... 1548
vScrollbar............................... 1549
wait ....................................... 1550
waitDepth .............................. 1551
watch .................................... 1552
weekdayNames ....................... 1553
while ..................................... 1554
white..................................... 1555
whole .................................... 1556
wholeMatches......................... 1557
wideMargins ........................... 1558
width..................................... 1559
windowBoundingRect............... 1560
windowID............................... 1561
windowManagerPlace............... 1562
windowShape ......................... 1563
with ...................................... 1564
within .................................... 1565
without .................................. 1566
word ..................................... 1567
wordOffset ............................. 1568
words .................................... 1569
write to driver ........................ 1570
write to file ............................ 1571
write to process ...................... 1573
write to socket........................ 1574
xExtent.................................. 1575
xHot...................................... 1576
xOffset .................................. 1577
xScale ................................... 1578
yExtent.................................. 1579
yHot...................................... 1580
yOffset .................................. 1581
yScale ................................... 1582
zero ...................................... 1583
zoom..................................... 1584
zoomBox................................ 1585



3
 
3 Page 4 5

HOW TO… 1586


How to access a value in an array variable................................. 1586
How to access the Internet from behind a firewall ..................... 1587
How to add a pattern to the Image Chooser .................................1588
How to add an object to a group................1589
How to add custom utilities to the development environment........ 1590
How to allow copying text from a locked field............................. 1591
How to allow editing of individual cells in a table field .................1592
How to allow multiple users to access a stack on a server..................1593
How to animate a sprite........... 1594
How to append data to the end of a file........................................ 1595
How to assign a custom creator signature to a standalone......... 1596
How to assign a keyboard equivalent to a button .............................1597
How to assign a keyboard equivalent to a menu item....................... 1598
How to assign an icon to a Mac OS standalone application ............. 1599
How to assign an icon to a Windows standalone application ............. 1600
How to assign an icon to an OS X standalone application ............. 1601
How to assign creator and type signatures to a new file............ 1602
How to assign help text to anobject............................................ 1603
How to associate files with a Mac OS standalone application ............. 1604
How to associate files with a Windows standalone application 1605
How to associate files with an OS X standalone application ............. 1606
How to attach data to an object 1607
How to automatically adjust objects when a window is resized......... 1608
How to automatically color-code a script.....................................1609
How to automatically include groups on a new card......................... 1610
How to beep........................... 1611
How to block or change the action of arrow keys.............................1612
How to break a line in a script .. 1613
How to bring a control to the front............................................1614
How to bring a window to the front............................................1615
How to call a custom function that's not in the message path .......... 1616
How to cancel a file transfer in progress ................................ 1617
How to cancel a pending message............................................1618
How to capture video from a video camera.................................. 1619
How to center a window on the screen................................... 1620
How to change a menu's contents when it is opened ................... 1621
How to change a script at run time............................................1622
How to change a window's title. 1623
How to change an element in an array variable......................... 1624
How to change an object's color 1625
How to change an object's property profile ...................................1626
How to change behavior depending on the platform ...................... 1627
How to change default settings for new objects ........................... 1628
How to change every chunk in a container ............................... 1629
How to change the alignment of text............................................ 1630
How to change the background color of text ...................................1631
How to change the color of text 1632
How to change the current folder used for file operations............ 1633
How to change the cursor ........ 1634
How to change the file type of an existing file ............................1635
How to change the font of text . 1636
How to change the highlight state of a checkbox or button .............. 1637
How to change the menu items in a button menu .......................... 1638
How to change the order of cards in a stack ..................................1639
How to change the pen color .... 1640
How to change the profile for all the objects in a stack or card......... 1641
How to change the selected button in a radio button cluster .............. 1642
How to change the selected item in an option menu or combo box.. 1643
How to change the size and position of a window ...........................1644
How to change the size and position of an object ...........................1645
How to change the size and position of the video grabber window .... 1646
How to change the size of text . 1647
How to change the style of text 1648
How to change the tab order of controls on a card ................... 1649
How to change tools................ 1650
How to change video grabber settings ................................. 1651
How to check whether AppleScript is installed ................................1652
How to clear the clipboard ....... 1653
How to close a modal dialog box1654
How to close a window ............ 1655
How to close the connection to a database ............................... 1656
How to compare the contents of two containers..............................1657
How to convert a MetaCard stack to Revolution ..............................1658
How to convert a SuperCard project to Revolution ..........................1659
How to convert an image to a different format....................... 1660
How to convert between Unicode (UTF-16) and UTF-8 text .......... 1661
How to convert between Unicode and ASCII text ..............................1662
How to convert line endings when transferring a file .................... 1663
How to copy a card.................. 1664
How to copy a resource fork ..... 1665
How to copy an image to the clipboard ................................ 1666
How to copy dragged and dropped text .......................................1667
How to copy styled text between fields .....................................1668
How to copy text between fields 1669
How to create a card template for a stack .....................................1670
How to create a code library ..... 1671
How to create a control ............ 1672
How to create a custom dialog box.............................................1673
How to create a custom printed report .................................... 1674
How to create a custom propertyset............................................. 1675
How to create a custom property.............................................1676
How to create a directory on an FTP server ....................................1677
How to create a file ................. 1678
How to create a hypertext link .. 1679
How to create a new card......... 1680
How to create a palette ............ 1681
How to create a radio buttoncluster............................................. 1682
How to create a record set in a SQL database ................................1683
How to create a report layout card.............................................1684
How to create a screenshot of a stack .....................................1685
How to create a scrolling window.............................................1686
How to create a separator line in a menu.....................................1687
How to create a spreadsheet-style table......................................1688
How to create a stack .............. 1689
How to create a standalone application.............................. 1690
How to create a synonym for a command or function ............... 1691
How to create a window the same size as the screen.................... 1692
How to create an array variable 1693
How to create and store report printing settings for later use .... 1694
How to create and use a numbered set of variables ....................... 1695
How to declare a variable ......... 1696
How to delay an action............. 1697
How to delete a custom propertyset............................................. 1698
How to delete a custom property.............................................1699
How to delete a file.................. 1700
How to delete a file's resourcefork............................................. 1701
How to delete a line from acontainer............................................. 1702
How to delete a variable........... 1703
How to delete all an object's custom properties...............................1704
How to delete an element from an array variable ......................... 1705
How to delete an object ........... 1706
How to dereference a variable .. 1707
How to deselect all the entries in a list field................................. 1708
How to deselect the selected text............................................1709
How to detect the highlight state of a control................................... 1710
How to determine the current selection in a menu ................. 1711
How to determine the dimensions of an image ...............................1712
How to determine the size of a file ............................................1713
How to determine what kind of object triggered a message ...... 1714
How to determine whether a file exists ....................................1715
How to determine whether a file path is relative or absolute ..............1716
How to determine which line of a list field is selected.......................1717
How to determine which pending messages have been scheduled 1718
How to disable a tab in a tabbed button ...................................1719
How to disable tool tips............ 1720
How to display a dialog box...... 1721
How to display a picture from a web server....................................1722
How to display a single record from an automatic database query ... 1723
How to display a splash screen . 1724
How to display a TIFF file ......... 1725
How to display a web page in afield............................................ 1726
How to display an icon or picture in a button................................... 1727
How to display an object's property inspector................................1728
How to display another stack in the current window....................... 1729
How to display objects on more than one card ................................1730
How to display records from an automatic database query as atable.................. 1731
How to display text on a card ... 1732
How to display the contents of a field in a printed report...................1733
How to display the contents of a text file ........................................1734
How to display the paint tools... 1735
How to display the print settings dialog box ..............................1736
How to display the same text on multiple cards......................... 1737
How to distribute a stack to users on other platforms.......................1738
How to do a task when starting up the application........................ 1739
How to download a binary file... 1740
How to download a file from an FTP server....................................1741
How to draw a shape............... 1742
How to duplicate a custom property set ........................................1743
How to duplicate an object ....... 1744
How to edit a palette or dialog box............................................1745
How to edit an object's script.... 1746
How to edit objects in a stack window.................................. 1747
How to enable or disable a control............................................1748
How to enable or disable a menu item...................................... 1749
How to enter or display Unicode text in a field................................ 1750
How to enter the debugger ...... 1751
How to establish a default value for a parameter .............................1752
How to estimate how much memory your application will need ........ 1753
How to evaluate an expression . 1754
How to execute a command ..... 1755
How to execute a handler one line at a time ...................................1756
How to execute a script statement dynamically ........................... 1757
How to execute a SQL statement on a database............................. 1758
How to execute Transcript code in afile........................................ 1759
How to export data to a file...... 1760
How to export text from a field in RTF format ............................ 1761
How to fetch data from the Internet............................................1762
How to find out the actual color of an object................................... 1763
How to find out the highlight state of a checkbox or button .............. 1764
How to find out the location of the current stack's file ..................1765
How to find out the number of elements in an array ............... 1766
How to find out the object type of an object................................... 1767
How to find out what text the user clicked...................................1768
How to find out where the insertion point is ..................................1769
How to find out where the mouse pointer is ...............................1770
How to find out where the user clicked................................... 1771
How to find out whether a command or function is defined .............. 1772
How to find out whether a command succeeded ............................. 1773
How to find out whether a container is an array .............................1774
How to find out whether a custom property exists ....................... 1775
How to find out whether a global variable exists ........................ 1776
How to find out whether a window is open .....................................1777
How to find out whether an image has anything in it.................... 1778
How to find out whether an image is a referenced image ................. 1779
How to find out whether OS X is running ................................. 1780
How to find out whether QuickTime is available ............................1781
How to find out whether text in a field is Unicode....................... 1782
How to find out which card is the current card ........................... 1783
How to find out which databases are open .....................................1784
How to find out which object the userclicked................................... 1785
How to find out which record sets are open in a database ................. 1786
How to find the Preferences folder............................................1787
How to format numbers in a table field ......................................1788
How to get a striped background in OS X .....................................1789
How to get command-line parameters ............................ 1790
How to get information about items on the screen ......................... 1791
How to get the contents of a database field ......................... 1792
How to get the contents of records in a SQL database.......................1793
How to get the location of the user's home directory .......................1794
How to give a border to a radio button cluster ......................... 1795
How to give a checkbox a different state on each card................... 1796
How to go to another card........ 1797
How to hide other applications' windows................................. 1798
How to hide the Toolbar ........... 1799
How to import a HyperCard stack .............................................1800
How to import a picture file into an existing image object............... 1801
How to import a text file into afield............................................. 1802
How to import a Unicode text file.............................................1803
How to import an RTF file ......... 1804
How to import and export styled text............................................. 1805
How to import data from a file .. 1806
How to import Shift-JIS Japanese text .......................................1807
How to include a comma in a parameter .............................. 1808
How to include a field on each page of a printed report ...................1809
How to include a group on a card.............................................1810
How to include a quote in an expression.............................. 1811
How to include a slash in a filepath............................................. 1812
How to include an image in a text field.......................................1813
How to include an object in the message path of every object ... 1814
How to include comments and notes in a script ...............................1815
How to install a plugin.............. 1816
How to intercept a message...... 1817
How to investigate code in the development environment'swindows................... 1818
How to investigate the Revolution custom libraries ...................... 1819
How to keep a window on top of other windows ........................ 1820
How to leave room on the screen for operating system elements....... 1821
How to let an object delete itself1822
How to list all open windows ..... 1823
How to list an object's custom properties............................... 1824
How to list the audio clips and video clips in a stack ........................1825
How to list the cards in a stack .1826
How to list the contents of afolder............................................. 1827
How to list the files in an FTP directory ................................ 1828
How to list the objects on a card...............1829
How to load a stack into memory.............................................1830
How to make a system call ....... 1831
How to make a throbbing button.............................................1832
How to make an alias, symbolic link, or shortcut to a file..................1833
How to make an object the same color as its owner .................... 1834
How to make changes to a SQL database ................................ 1835
How to make subscripts and superscripts............................ 1836
How to make the computer speak out loud................................. 1837
How to make the Return or Enter key activate a button..................... 1838
How to minimize a window with a custom shape ......................... 1839
How to monitor messages as they're sent ......................................1840
How to monitor the value of variables while debugging ........ 1841
How to move a card between stacks............................................1842
How to move a card within a stack............................................1843
How to move a referenced image into a stack ............................ 1844
How to move a stack to another file............................................1845
How to move cards from one stack to another..................................1846
How to move one control in front of another..................................1847
How to move through the records in a record set (database cursor).. 1848
How to navigate among records from an automatic database query ... 1849
How to open a stack automatically when starting Revolution ......... 1850
How to open a stack................ 1851
How to open a URL in a browser 1852
How to open and close a drawer 1853
How to peek at invisible objects in a stack..................................... 1854
How to pin an object to a window edge during window resizing .... 1855
How to place the insertion point in a field...................................... 1856
How to play a streaming QuickTime file ........................................1857
How to pretty print a script ...... 1858
How to prevent a handler from executing............................... 1859
How to prevent changing a checkbox's state by clicking it... 1860
How to prevent changing a field's text .......................................1861
How to prevent changing a stack............................................1862
How to prevent displaying intermediate changes on a card 1863
How to prevent dragging and dropping to a field................... 1864
How to prevent entering certain characters in a field................. 1865
How to prevent interrupting a handler .................................. 1866
How to prevent the debugger from appearing .............................. 1867
How to prevent the user from moving a window.................... 1868
How to prevent the user from resizing a window ................... 1869
How to preview a printed report 1870
How to preview how a stack will look on other platforms .................. 1871
How to print a card ................. 1872
How to print a report ............... 1873
How to print all the cards in astack............................................ 1874
How to print in landscape mode 1875
How to print selected cards as a single print job ....................... 1876
How to print the contents of a field............................................1877
How to put different-sized cards in the same stack ....................... 1878
How to put styled text on the clipboard................................ 1879
How to put text into a field....... 1880
How to quickly display the Transcript Dictionary ..............................1881
How to quit the application ...... 1882
How to refer to a control on another card...................................... 1883
How to refer to a custom property in a non-active set .....................1884
How to remove a file from an FTP server ...................................1885
How to remove a single style from text.......................................1886
How to remove a window's close box............................................1887
How to remove a window's title bar............................................1888
How to remove all styles from text............................................1889
How to remove subscripting and superscripting ........................ 1890
How to remove the box around found text.......................................1891
How to remove the text from a field............................................1892
How to remove the underline from linked text ............................. 1893
How to rename a custom property set ........................................1894
How to rename a custom property............................................1895
How to rename a file............... 1896
How to report a bug or request a feature ..................................1897
How to request technical support............................................1898
How to respond to a change in field contents ................................1899
How to respond to a Control-click or right-click ..............................1900
How to respond to a drag and drop............................................1901
How to respond to a keystroke . 1902
How to respond to a menu choice............................................1903
How to respond to a mouse click............................................1904
How to respond to changing the current setting in a combo box . 1905
How to respond to closing a window............................................1906
How to respond to double-clicking a file for Mac OS or OS X............ 1907
How to respond to double-clicking a file for Windows...................... 1908
How to respond to mouse wheel actions .................................. 1909
How to respond to moving a window............................................1910
How to respond to quitting an OS X application .............................1911
How to respond to resizing a window............................................1912
How to respond to the user clicking a tab in a tabbed window ........... 1913
How to respond when a card is visited................................... 1914
How to respond when a stack opens............................................1915
How to restore the default colors of an object ...............................1916
How to retrieve headers from an HTTP request ......................... 1917
How to return an array from a function................................. 1918
How to return an error message from a handler ...............................1919
How to return multiple values from a handler .................................1920
How to save a stack................ 1921
How to save and re-use Distribution Builder configurations.............. 1922
How to save changes to a SQL database ................................ 1923
How to save changes to records from an automatic database query.... 1924
How to scan the cards in a stack1925
How to schedule a future message.............................................1926
How to scroll a field ................. 1927
How to search a container ........ 1928
How to search a stack.............. 1929
How to search global variables .. 1930
How to see and change an object's properties...............................1931
How to select a card ................ 1932
How to select a control that's part of a group.................................. 1933
How to select a group .............. 1934
How to select an entry in a listfield............................................. 1935
How to select text in a field ...... 1936
How to send mouse messages to an unlocked field ......................... 1937
How to set fonts for all the objects in a card or stack........................1938
How to set text in a field to the field's default font ................... 1939
How to set the font, style, and size of text to the default................1940
How to set up an automatic database query.....................................1941
How to show more than one object's properties at a time ................. 1942
How to show or hide a window.. 1943
How to show or hide the menu bar .............................................1944
How to show or hide the task bar.............................................1945
How to shuffle the cards in a stack.............................................1946
How to shuffle the items or lines in acontainer................................ 1947
How to simulate a menu choice. 1948
How to simulate a mouse click .. 1949
How to simulate the action of a button......... 1950
How to sort a portion of acontainer............................................. 1951
How to sort the contents of afield............................................. 1952
How to speak several phrases in succession.............................. 1953
How to specify a character that's not on the keyboard......................1954
How to specify a primary key for an automatic database query ........ 1955
How to specify what cards to include in a printed report ...................1956
How to speed up display of information from the web ......... 1957
How to start a drag and drop .... 1958
How to stop a running handler .. 1959
How to store a file in a custom property................................. 1960
How to store an array in a custom property.................................1961
How to store preferences or data for a standalone application........... 1962
How to store styled text in a variable or property............................. 1963
How to switch between button tabs............................................1964
How to switch between menu bars .............................................1965
How to take a picture with a video camera ..................................1966
How to take over the screen ..... 1967
How to temporarily remove a portion of a script...............................1968
How to throw away unwanted mouse clicks .....................................1969
How to trap a message before a handler is executed ................. 1970
How to trigger a handler .......... 1971
How to unwedge upload and download operations ............... 1972
How to upload a file to an FTPserver............................................ 1973
How to use a custom WDEF resource to display a window................. 1974
How to use a handler outside the message path......................... 1975
How to use a password for a web page...................................... 1976
How to use a password for an FTP server....................................1977
How to use a SQL query to select records in a database .............. 1978
How to use a stack that's on a web server....................................1979
How to use a stack without displaying it............................ 1980
How to use environment variables............................................1981
How to validate the contents of a field ......................................1982
How to write your own commands and functions.......................... 1983



4
 
4 Page 5 6

Why…? 1984


Why am I running out of memory?............................................1984
Why are some menu items disabled?............................................1985
Why aren't mouse messages sent?............................................1986
Why aren't window positions saved in my application? ................... 1987
Why can't I create a standalone Mac OS application?....................... 1988
Why can't I display a stack as a normal window?...................... 1989
Why can't I export an image to a GIFfile?....................................... 1990
Why can't I find a stack I just saved?............................................ 1991
Why can't I interrupt a handler? 1992
Why can't I leave all lines of a list field unselected? .....................1993
Why can't I open a downloaded stack?.................................... 1994
Why can't I resize a control? .... 1995
Why can't I save a stack?......... 1996
Why can't I select a control?..... 1997
Why can't I select a graphic? .... 1998
Why can't I select, copy, or paste text? ....... 1999
Why can't I upload a file?......... 2000
Why can't I use the arrow keys when editing a field?........................2001
Why can't Revolution find a file I specified?...............................2002
Why can't Revolution find ahandler?............................................ 2003
Why do fonts and colors change when I create a standaloneapplication?............. 2004
Why do I get a recursion error? 2005
Why do icons disappear from a standalone application?............ 2006
Why do lines of text overlap?.... 2007
Why do menu commands affect the wrong stack? .......................... 2008
Why do menus disappear when I switch cards?.......................... 2009
Why do objects look different when created in a standalone? .......... 2010
Why do some characters change when transferred between systems?........... 2011
Why do some frames of an animated GIF look strange?.................... 2012
Why do unwanted objects appear on new cards? ............................ 2013
Why does a custom cursor fail to appear?................................. 2014
Why does a handler stop working when moved to another platform?........... 2015
Why does a menu item have missing characters? ............................2016
Why does a mouseUp handler fail to work?....................................2017
Why does a repeat loop behave strangely?.............................. 2018
Why does a stack open to the wrong size? .....................................2019
Why does a stack window open in the wrong mode?.................... 2020
Why does a variable lose its value?............................................2021
Why does an image disappear? 2022
Why does an image have the wrong colors? ..................................2023
Why does an object change size?............................................2024
Why does an object or window flicker? .................................. 2025
Why does an unwanted handler run?............................................2026
Why does importing a HyperCard stack cause an error? .............. 2027
Why does my application quit when I close its windows? .................. 2028
Why does my stack open slowly?............................................ 2029
Why does Revolution ask to purge a stack? ...................................2030
Why does text appear distorted?............................................2031
Why does the Geometry pane move objects to the wrong place? ..... 2032
Why does the top of my stack window disappear when I add a menu bar?............. 2033
Why does the window change size when I create a card?.............. 2034
Why doesn't a control appear? . 2035
Why doesn't a control get messages while the mouse is down? ........ 2036
Why doesn't a custom property appear in the property inspector?................2037
Why doesn't a property appear in a profile?..................................2038
Why doesn't a stack maximize or zoom to the full screen size? .... 2039
Why doesn't an EPS object appear?............................................2040
Why doesn't my application look like other Mac OS applications? ...... 2041
Why doesn't Revolution recognize a stack file? ..............................2042
Why doesn't the ask or answer dialog appear in my standalone? 2043
Why doesn't the controller of a player respond to clicks? ......... 2044
Why doesn't the Tab key move to the next field? ........................ 2045
Why doesn't the Tab key move to the next tab stop? .................. 2046
Why don't animations run in my standalone? ........................... 2047
Why don't buttons respect my color settings? ............................... 2048
Why don't movies play?........... 2049
Why don't movies work on a Windows CD-ROM? ................. 2050
Why don't the menus appear when I open a stack?......................... 2051
Why don't URLs work in a standalone? ........................... 2052
Why don't visual effects work? .. 2053
Why is a control the wrong size when created by a handler? .............. 2054
Why is a custom property garbled in a protected stack? ................... 2055
Why is a custom property garbled when switching platforms? ....... 2056
Why is Revolution taking more memory than its allocation?...... 2057
Why is some text blue and underlined? ............................ 2058
Why is the card number in the window name? ........................ 2059
Why is the selected textdeselected?............................................. 2060
Why is the selection lost when clicking a button? .................... 2061
Why is there a border around controls? ................................ 2062
Why is there a copy of my stack file with a tilde?............................2063
Why is there a problem with line endings? ................................2064
Why is there already a stack with the same name? ...........................2065
Why is there an asterisk in the window name? ........................ 2066
Why isn't a group listed? .......... 2067
Why isn't a handler executed? .. 2068
Why was a downloaded file corrupted?.............................. 2069



5
 
5 Page 6 7

ARTICLES ABOUT… 2070


About the Revolutiondocumentation............................................. 2070
About Revolution system requirements .......................... 2074
About Revolution applications under Windows 3.1........................... 2076
About installing Revolution ....... 2077
About upgrading Revolution from a previous version...................... 2080
About what's new in version 2. 1-2.1.2.....................................2082
About what was new in version 2. 0-2.0.3.....................................2087
About what was new in version 1. 1.1............................................. 2097
About what was new in version 1. 1.............................................2101
About Revolution for HyperCard developers.............................. 2106
About porting HyperCard stacks.......... 2118
About Revolution for MetaCard developers.............................. 2125
About Revolution for SuperCard developers.............................. 2128
About Revolution for new developers.............................................2136
About Revolution for experienced programmers.......................... 2141
About messages and the message path ...................................... 2149
About the structure of a script .. 2155
About commands and functions. 2158
About containers, variables, and sources of value ...................... 2166
About using URLs, uploading, and downloading ........................... 2183
About chunk expressions.......... 2193
About properties and property profiles .................................. 2197
About custom properties and custom property sets ..........................2205
About filename specifications and file paths..................................... 2219
About file types, application signatures, and file ownership... 2225
About colors and color references.............................................2230
About object types and object references.............................. 2234
About main stacks, substacks, and the organization of a stack file .. 2240
About groups and backgrounds. ..... 2242
About windows, palettes, and dialog boxes..... 2245
About menus and the menu bar 2254
About connecting to and using SQL databases .............................. 2259



6
 
6 Page 7 8

MENU REFERENCE 2272


FILE MENU ............................. 2272
New Mainstack........................ 2273
New Substack of (main stack name)............................................2274
Open Stack... ......................... 2275
Open Recent Stack.................. 2276
Close..................................... 2277
Close and Remove from Memory...............................................2278
Import as Control.................... 2279
Image File.............................. 2280
Snapshot ............................... 2281
Audio File............................... 2282
Video File... ............................ 2283
Text File... ............................. 2284
EPS File... .............................. 2285
All Images in Folder... ............. 2286
All Audio Files in Folder... ......... 2287
New Referenced Control........... 2288
Image File.............................. 2289
Quicktime-Supported File... ...... 2290
All Images in Folder... ............. 2291
Save ..................................... 2292
Save As... .............................. 2293
Move Substack to File... ........... 2294
Revert to Saved... ................... 2295
Build Distribution... ................. 2296
Page Setup... ......................... 2297
Print Card... ........................... 2298
Print Field... ........................... 2299
Quit....................................... 2300
EDIT MENU ............................ 2301
Undo ..................................... 2302
Cut........................................ 2303
Copy ..................................... 2304
Paste..................................... 2305
Clear ..................................... 2306
Duplicate ............................... 2307
Replicate................................ 2308
Select All ............................... 2309
Deselect All ............................ 2310
Invert Selection ...................... 2311
Select Grouped Controls .......... 2312
Intersected Selections ............. 2313
Find and Replace... ................. 2314
Preferences ............................ 2315
TOOLS MENU.......................... 2316
Browse Tool ........................... 2317
Pointer Tool ............................ 2318
Tools Palette .......................... 2319
Application Browser................. 2320
Animation Builder.................... 2321
Menu Builder .......................... 2322
Database Query Builder ........... 2323
Report Builder ........................ 2324
Message Box .......................... 2325
OBJECT MENU ........................ 2326
Object Inspector ..................... 2327
Card Inspector........................ 2328
Stack Inspector ...................... 2329
Object Script .......................... 2330
Card Script............................. 2331
Stack Script ........................... 2332
Group Selected ....................... 2333
Ungroup Selected.................... 2334
Edit Group ............................. 2335
Stop Editing Group.................. 2336
Remove Group........................ 2337
Place Group............................ 2338
New Card .............................. 2339
Delete Card............................ 2340
New Control ........................... 2341
Standard Button ..................... 2342
Rectangle Button .................... 2343
Shadow Button....................... 2344
Blank Button .......................... 2345
Checkbox .............................. 2346
Radio Button .......................... 2347
Tabbed Button........................ 2348
Report Object......................... 2349
Field ..................................... 2350
Scrolling Field......................... 2351
List Field................................ 2352
Scrolling List Field................... 2353
Label Field ............................. 2354
Horizontal Scrollbar................. 2355
Vertical Scrollbar .................... 2356
Scale Bar............................... 2357
Progress Bar .......................... 2358
Pulldown Menu ....................... 2359
Popup Menu ........................... 2360
Option Menu .......................... 2361
Combo Box Menu.................... 2362
Menu Item............................. 2363
Cascade Menu Item ................ 2364
Divider Button ........................ 2365
Rectangle Graphic................... 2366
Oval Graphic .......................... 2367
Curve Graphic ........................ 2368
Round Rect Graphic ................ 2369
Polygon Graphic ..................... 2370
Line Graphic........................... 2371
Regular Polygon Graphic.......... 2372
Image ................................... 2373
Player ................................... 2374
Flip ....................................... 2375
Horizontal .............................. 2376
Vertical.................................. 2377
Rotate ................................... 2378
By... ..................................... 2379
90 Right ................................ 2380
90 Left .................................. 2381
180....................................... 2382
Align Selected Controls............ 2383
Left....................................... 2384
Right..................................... 2385
Top....................................... 2386
Bottom.................................. 2387
Make Widths Equal.................. 2388
Make Heights Equal................. 2389
Send to Back.......................... 2390
Move Backward ...................... 2391
Move Forward ........................ 2392
Bring to Front......................... 2393
TEXT MENU............................ 2394
Plain ..................................... 2395
Bold ...................................... 2396
Italic ..................................... 2397
Underline............................... 2398
Strikeout ............................... 2399
Box....................................... 2400
3D Box .................................. 2401
Link ...................................... 2402
Subscript ............................... 2403
Superscript ............................ 2404
Font ...................................... 2405
Use Owner's Font.................... 2406
Size ...................................... 2407
Use Owner's Size.................... 2408
8 .......................................... 2409
9 .......................................... 2410
10 ........................................ 2411
12 ........................................ 2412
14 ........................................ 2413
18 ........................................ 2414
24 ........................................ 2415
36 ........................................ 2416
48 ........................................ 2417
Other... ................................. 2418
Color ..................................... 2419
Use Owner's Color ................... 2420
Black ..................................... 2421
Red ....................................... 2423
Green .................................... 2424
Blue....................................... 2425
Yellow.................................... 2426
Pen Color ............................... 2427
Align...................................... 2428
Left ....................................... 2429
Center ................................... 2430
Right ..................................... 2431
DEVELOPMENT MENU............... 2432
Object Library ......................... 2433
Image Library ......................... 2434
Plugins................................... 2435
Plugin Settings........................ 2436
Script Debug Mode .................. 2437
Clear All Breakpoints................ 2438
Message Watcher .................... 2439
Variable Watcher ..................... 2440
Suppress Errors ...................... 2441
Suppress Messages ................. 2442
Suspend Development Tools ..... 2443
VIEW MENU............................ 2444
Go First.................................. 2445
Go Prev.................................. 2446
Go Next ................................. 2447
Go Last .................................. 2448
Go Recent .............................. 2449
Go to Report Page ................... 2450
First....................................... 2451
Prev....................................... 2452
Next ...................................... 2453
Last ....................................... 2454
Number.................................. 2455
Toolbar Text ........................... 2456
Toolbar Icons.......................... 2457
Palettes.................................. 2458
Rulers .................................... 2459
Grid....................................... 2460
Backdrop................................ 2461
Revolution UI Elements in Lists .2462
Look and Feel ......................... 2463
Mac OS Appearance Manager .... 2464
Mac OS Emulated ....................
2465
Native Windows ...................... 2466
Native Linux ........................... 2467
Preview Mac OS ...................... 2468
Preview Windows .................... 2469
Preview Linux ......................... 2470
Show Invisible Objects ............. 2471
WINDOWS MENU..................... 2472
Send Window To Back.............. 2473
HELP MENU ............................ 2474
Documentation ....................... 2475
Transcript Dictionary................ 2476
Search Documentation... .......... 2477
License Revolution................... 2478
Revolution Support .................. 2479
Check for Updates ................... 2480
SCRIPT EDITOR MENU REFERENCE ............................................. 2481
File........................................ 2482
Apply Script............................ 2483
Close Script Editor ................... 2484
Apply Script and Close ............. 2485
Apply Script and Save Stack ..... 2486
Page Setup... .......................... 2487
Print Script... .......................... 2488
Quit ....................................... 2489
Edit ....................................... 2490
Undo ..................................... 2491
Cut ........................................ 2492
Copy...................................... 2493
Paste ..................................... 2494
Paste as Formatted String ........ 2495
Paste as Comment................... 2496
Clear ..................................... 2497
Select All ................................ 2498
Deselect All ............................ 2499
Text ...................................... 2500
Plain...................................... 2501
Bold ...................................... 2502
Italic ..................................... 2503
Underline ............................... 2504
Strikeout................................ 2505
Box ....................................... 2506
3D Box .................................. 2507
Link....................................... 2508
Subscript ............................... 2509
Superscript ............................ 2510
Font ...................................... 2511
Use Default Font ..................... 2512
Size....................................... 2513
Use Default Size ..................... 2514
8........................................... 2515
9........................................... 2516
10......................................... 2517
12......................................... 2518
14......................................... 2519
18......................................... 2520
24......................................... 2521
36......................................... 2522
Use Default Color .................... 2526
Black ..................................... 2527
White .................................... 2528
Red ....................................... 2529
Green.................................... 2530
Blue ...................................... 2531
Yellow ................................... 2532
Pen Color ............................... 2533
Align ..................................... 2534
Left ....................................... 2535
Center ................................... 2536
Right ..................................... 2537
Script .................................... 2538
Comment ............................... 2539
Uncomment ........................... 2540
Insert Control Structure........... 2541
If Then Else............................ 2542
Repeat................................... 2543
Switch ................................... 2544
Try........................................ 2545
Colorize ................................. 2546
Format .................................. 2547
View...................................... 2548
Look Up Selection In Transcript Dictionary .............................. 2549
Single-Handler View ................ 2550
Show Handler List ................... 2551
Sort Handler List Alphabetically 2552
Find and Replace..................... 2553
Go to Line .............................. 2554
Autocomplete ......................... 2555
Case Sensitive Searching ......... 2556
Whole Word Searching............. 2557
Live Colorization ..................... 2558
Colorization Settings... ............ 2559
Wrap Long Script Lines ............ 2560
Default Fonts.......................... 2561
Default Comment Character... .. 2562
Handler ................................. 2563
Debug ................................... 2564
Set Breakpoint........................ 2565
Clear All Breakpoints ............... 2566
Step Into ............................... 2567
Step Over .............................. 2568
Trace..................................... 2569
Run....................................... 2570
Abort..................................... 2571
Message Watcher .................... 2572
Variable Watcher .................... 2573
Script Debug Mode.................. 2574
Bookmarks............................. 2575
Add Bookmark... ..................... 2576
Window ................................. 2577
DISTRIBUTION BUILDER MENU
REFERENCE............................ 2578
File........................................ 2579
Open Distribution... ................ 2580
Close..................................... 2581
Save ..................................... 2582
Save Distribution As................ 2583
Revert to Saved... .................. 2584
Revert to Default Settings........ 2585
Build Distribution .................... 2586
Quit ...................................... 2587
Edit....................................... 2588
Undo..................................... 2589
Cut ....................................... 2590
Copy ..................................... 2591
Paste .................................... 2592
Clear ..................................... 2593



7
 
7 Page 8 9

GLOSSARY 2594

absolute coordinates ...............2594
absolute file path.................... 2595
active control ......................... 2596
active window ........................ 2597
AIFF...................................... 2598
alias...................................... 2599
alpha channel......................... 2600
alphanumeric character ........... 2601
Alt key .................................. 2602
animated GIF ......................... 2603
Animation library .................... 2604
anomaly ................................ 2605
antialiasing ............................ 2606
appearance............................ 2607
append.................................. 2608
Apple Event ........................... 2609
Apple menu ........................... 2610
AppleScript ............................ 2611
AppleTalk .............................. 2612
Application Browser ................ 2613
application bundle................... 2614
Application menu.................... 2615
application ............................. 2616
Aqua ..................................... 2617
argument .............................. 2618
arm ...................................... 2619
array dimension ..................... 2620
array..................................... 2621
ASCII .................................... 2622
associative array .................... 2623
attribute ................................ 2624
AU ........................................ 2625
audio clip............................... 2626
automatic database query........ 2627
AVI ....................................... 2628
background............................ 2629
backScript ............................. 2630
behavior ................................ 2631
binary data ............................ 2632
binary file .............................. 2633
binary ................................... 2634
BinHex .................................. 2635
bit depth ............................... 2636
bit ........................................ 2637
bitmap .................................. 2638
bitwise .................................. 2639
black-and-white...................... 2640
BLOB .................................... 2641
block comment....................... 2642
blocking ................................ 2643
BMP ...................................... 2644
boolean ................................. 2645
breakpoint ............................. 2646
Browse tool............................ 2647
browse .................................. 2648
browser ................................. 2649
buffer.................................... 2650
build ..................................... 2651
built-in command ................... 2652
built-in function ...................... 2653
built-in message..................... 2654
built-in property ..................... 2655
button menu .......................... 2656
button ................................... 2657
byte order ............................. 2658
byte....................................... 2659
cache..................................... 2660
call ........................................ 2661
callback.................................. 2662
caller ..................................... 2663
Carbon................................... 2664
card control ............................ 2665
card....................................... 2666
cascading menu ...................... 2667
case-insensitive ...................... 2668
case-sensitive ......................... 2669
cell ........................................ 2670
CGI ....................................... 2671
channel .................................. 2672
character set .......................... 2673
character................................ 2674
checkbox................................ 2675
checksum............................... 2676
child node .............................. 2677
chunk expression .................... 2678
chunk .................................... 2679
clipboard ................................ 2680
close box................................ 2681
codec..................................... 2682
collapse box ........................... 2683
collapse.................................. 2684
color palette ........................... 2685
color reference........................ 2686
color table .............................. 2687
column................................... 2688
combo box ............................. 2689
Command key......................... 2690
command line ......................... 2691
command ............................... 2692
comment................................ 2693
Common library ...................... 2694
compile error .......................... 2695
compile ..................................
2696
compress ............................... 2697
concatenate............................ 2698
conditional.............................. 2699
console .................................. 2700
constant................................. 2701
constrain................................ 2702
container................................ 2703
contextual menu ..................... 2704
contiguous.............................. 2705
control structure ..................... 2706
control ................................... 2707
controller bar .......................... 2708
creator signature..................... 2709
cross-platform ........................ 2710
current card............................ 2711
current folder.......................... 2712
current stack .......................... 2713
cursor .................................... 2714
custom command.................... 2715
custom function ...................... 2716
custom property set ................ 2717
custom property...................... 2718
Darwin................................... 2719
data fork ................................ 2720
database driver ....................... 2721
database field ......................... 2722
Database library...................... 2723
Database Query Builder ........... 2724
database ................................ 2725
datagram ............................... 2726
debug ....................................
2727
debugger ............................... 2728
decimal point .......................... 2729
decimal .................................. 2730
declare................................... 2731
decode................................... 2732
decrypt .................................. 2733
default button ......................... 2734
default ................................... 2735
degree ................................... 2736
delimit ................................... 2737
delimiter ................................ 2738
dereference............................ 2739
desktop ................................. 2740
development environment........ 2741
device driver .......................... 2742
dialog box .............................. 2743
dimmed ................................. 2744
Distribution Builder ................. 2748
dither .................................... 2749
DLL ....................................... 2750
DNS ...................................... 2751
dock...................................... 2752
document............................... 2753
domain name ......................... 2754
domain .................................. 2755
double quote .......................... 2756
double-byte character.............. 2757
double-byte font ..................... 2758
double-click............................ 2759
download ............................... 2760
drag and drop......................... 2761
drawer................................... 2762
DSN ...................................... 2763
DTD ...................................... 2764
editable window...................... 2765
element ................................. 2766
Emacs ................................... 2767
encode .................................. 2768
encrypt .................................. 2769
end-of-line marker .................. 2770
engine ................................... 2771
environment variable............... 2772
EOF....................................... 2773
eon ....................................... 2774
EPS ....................................... 2775
error message ........................ 2776
error ..................................... 2777
Escape key............................. 2778
evaluate ................................ 2779
Evaluation Edition ................... 2780
event..................................... 2781
exception handling .................. 2782
execute ................................. 2783
execution error ....................... 2784
exit ....................................... 2785
explicit focus .......................... 2786
export ................................... 2787
expression ............................. 2788
extension ............................... 2789
external ................................. 2790
factor .................................... 2791
fat application......................... 2792
field ...................................... 2793
file dialog box......................... 2794
file path ................................. 2795
file ........................................ 2796
firewall .................................. 2797
flag ....................................... 2798
focus ..................................... 2799
folder .................................... 2800
font ....................................... 2801
format ................................... 2802
frame .................................... 2803
frontScript.............................. 2804
FTP ....................................... 2805
function call ........................... 2806
function handler...................... 2807
function ................................. 2808
gamma.................................. 2809
Geometry library..................... 2810
geometry management............ 2811
getProp call ............................ 2812
getProp handler ...................... 2813
GIF ....................................... 2814
global .................................... 2815
graphic .................................. 2816
greedy................................... 2817
group .................................... 2818
group-editing mode................. 2819
grouped control ...................... 2820
grouped text .......................... 2821
handle................................... 2822
handler ................................. 2823
hexadecimal........................... 2824
highlight ................................ 2825
home directory....................... 2826
host byte order ...................... 2827
host ...................................... 2828
HTML .................................... 2829
HTTP..................................... 2830
HyperCard ............................. 2831
hypertext............................... 2832
iconify ................................... 2833
IDE ....................................... 2834
idle ....................................... 2835
image ................................... 2836
implicit focus.......................... 2837
import ................................... 2838
inheritance ............................ 2839
insertion point ........................ 2840
integer .................................. 2841
Internet library....................... 2842
inverse .................................. 2843
IP address ............................. 2844
ISO 8859............................... 2845
item...................................... 2846
iteration ................................ 2847
JPEG ..................................... 2848
key binding............................ 2849
key combination ..................... 2850
key frame .............................. 2851
key ....................................... 2852
keyboard equivalent................ 2853
keycode................................. 2854
keyword ................................ 2855
landscape .............................. 2856
launch................................... 2857
layer ..................................... 2858
library ................................... 2859
line ....................................... 2860
list field ................................. 2861
local file................................. 2865
local property......................... 2866
local variable.......................... 2867
lock ...................................... 2868
logical ................................... 2869
look and feel .......................... 2870
loop ...................................... 2871
lossless compression............... 2872
lossy compression................... 2873
Mac OS ................................. 2874
MacBinary.............................. 2875
main stack............................. 2876
mask..................................... 2877
master profile......................... 2878
matched ................................ 2879
maximize button..................... 2880
maximize............................... 2881
menu bar............................... 2882
Menu Builder.......................... 2883
menu item............................. 2884
menu .................................... 2885
message box.......................... 2886
message handler .................... 2887
message order ....................... 2888
message path ........................ 2889
message watcher.................... 2890
message................................ 2891
Meta key ............................... 2892
MetaCard............................... 2893
metal window......................... 2894
millisecond............................. 2895
MIME .................................... 2896
minimize button ..................... 2897
minimize ............................... 2898
modal dialog box .................... 2899
modeless dialog box................ 2900
modifier key........................... 2901
Motif ..................................... 2902
mouse button......................... 2903
mouse pointer ........................ 2904
movie .................................... 2905
MPEG..................................... 2906
navigation message ................. 2907
negative................................. 2908
nest....................................... 2909
network byte order .................. 2910
NNTP ..................................... 2911
node...................................... 2912
non-blocking........................... 2913
non-greedy............................. 2914
non-negative .......................... 2915
non-printable character ............ 2916
null........................................ 2917
numeric ................................. 2918
object hierarchy ...................... 2919
object reference ...................... 2920
object type ............................. 2921
object .................................... 2922
octal ...................................... 2923
ODBC manager ....................... 2924
offset ..................................... 2925
Open Database Connectivity (ODBC).............................................2926
Open Scripting Architecture (OSA) .............................................2927
operand ................................. 2928
operation ............................... 2929
operator................................. 2930
Option key.............................. 2931
Oracle Media Objects ............... 2932
ordinal ................................... 2933
OS X...................................... 2934
owner .................................... 2935
pad........................................ 2936
paint tool ............................... 2937
palette ................................... 2938
pane...................................... 2939
panel ..................................... 2940
parameter variable .................. 2941
parameter .............................. 2942
parent folder........................... 2943
parent node............................ 2944
pass by reference.................... 2945
pass by value.......................... 2946
pass ...................................... 2947
password ............................... 2948
PBM....................................... 2949
peripheral device..................... 2950
PGM ...................................... 2951
PICT ...................................... 2952
pixel ...................................... 2953
pixmap .................................. 2954
platform................................. 2955
Platinum ................................ 2956
player .................................... 2957
plist ....................................... 2958
plugin .................................... 2959
PNG....................................... 2960
point...................................... 2961
Pointer tool............................. 2962
poll ........................................ 2963
polygon.................................. 2964
POP ....................................... 2965
popup menu ........................... 2966
port ....................................... 2967
portrait .................................. 2968
PostScript............................... 2969
PPM ....................................... 2970
precedence............................. 2971
precision ................................ 2972
prepend ................................. 2973
pretty printing......................... 2974
primary key............................ 2975
print job................................. 2976
printable character .................. 2977
Printing library ........................ 2978
process .................................. 2979
Profile library .......................... 2980
prompt................................... 2981
property inspector ................... 2982
property profile....................... 2983
property ................................ 2984
protocol ................................. 2985
proxy server........................... 2986
QuickTime VR......................... 2987
QuickTime.............................. 2988
quoted................................... 2989
radian.................................... 2990
radio button ........................... 2991
random.................................. 2992
range .................................... 2993
read-only ............................... 2994
real number ........................... 2995
REALbasic .............................. 2996
recent cards ........................... 2997
record set (database cursor) .... 2998
record ................................... 2999
rectangle ............................... 3000
recursion ............................... 3001
redraw................................... 3002
referenced control ................... 3003
registry.................................. 3004
regular expression .................. 3005
regular polygon ...................... 3006
relative coordinates................. 3007
relative file path...................... 3008
remainder .............................. 3009
Report Builder ........................ 3010
report layout card ................... 3011
report viewer.......................... 3012
ResEdit .................................. 3013
reserved word ........................ 3014
reset ..................................... 3015
resource fork .......................... 3016
resource ................................ 3017
resume .................................. 3018
return value ........................... 3019
return.................................... 3020
Revolution custom library......... 3021
root node............................... 3022
RTF ....................................... 3023
run time ................................ 3024
scientific notation.................... 3025
scope .................................... 3026
script debug mode .................. 3027
script editor............................ 3028
script local variable ................. 3029
script..................................... 3030
scrollbar thumb ...................... 3031
scrollbar ................................ 3032
select .................................... 3033
selection ................................ 3034
server.................................... 3035
setProp handler ...................... 3036
setProp trigger........................ 3037
shared control ........................ 3038
shared group.......................... 3039
sheet..................................... 3040
shell ...................................... 3041
shortcut ................................. 3042
sibling node............................ 3043
sign....................................... 3044
single-byte character............... 3045
SMTP..................................... 3046
SOAP..................................... 3047
socket ................................... 3048
sort key ................................. 3049
sort ....................................... 3050
special folder .......................... 3051
Speech library ........................ 3052
SQL query.............................. 3053
SQL....................................... 3054
stack file ................................ 3055
stack menu ............................ 3056
stack window.......................... 3057
stack..................................... 3058
standalone application............. 3059
standard error ........................ 3060
standard input........................ 3061
standard output...................... 3062
statement .............................. 3063
streaming .............................. 3064
string .................................... 3065
subfolder ............................... 3066
subroutine ............................. 3067
subsidiary window .................. 3068
substack................................ 3069
SuperCard ............................. 3070
suspend ................................ 3071
symbolic link .......................... 3072
synchronize ........................... 3073
syntax................................... 3074
system window....................... 3075
tab stop................................. 3076
tabbed button ........................ 3077
table field .............................. 3078
table ..................................... 3079
tag........................................ 3080
task bar................................. 3081
TCP....................................... 3082
template................................ 3083
temporary memory ................. 3084
text file ................................. 3085
text to speech ........................ 3086
tick ....................................... 3087
timeout ................................. 3088
timestamp ............................. 3089
title bar ................................. 3090
token .................................... 3091
tool tip .................................. 3092
tool ....................................... 3093
Transcript .............................. 3094
transfer mode ........................ 3095
trap ...................................... 3096
trigger................................... 3097
tweening ............................... 3098
type signature........................ 3099
UDP ...................................... 3100
unary .................................... 3101
uncompress ........................... 3102
undo ..................................... 3103
Unicode ................................. 3104
Unix...................................... 3105
unlock ................................... 3106
upload................................... 3107
URL scheme........................... 3108
URL ...................................... 3109
user interface error ................. 3110
user interface......................... 3111
validate ................................. 3112
value..................................... 3113
variable watcher ..................... 3114
variable ................................. 3115
vertex ................................... 3116
VFW...................................... 3117
video capture ......................... 3118
video clip............................... 3119
video grabber......................... 3120
Video library .......................... 3121
virtual property ...................... 3122
WAV ..................................... 3123
WDEF.................................... 3124
web server............................. 3125
whitespace............................. 3126
wildcard ................................ 3127
Windows................................ 3128
word ..................................... 3129
XBM...................................... 3130
XCMD.................................... 3131
XFCN .................................... 3132
XML document ........................ 3133
XML library ............................. 3134
XML tree ................................ 3135
XML....................................... 3136
XPM....................................... 3137
xTalk ..................................... 3138
XWD...................................... 3139
zoom box ............................... 3140
zoom..................................... 3141



8
 
8 Page 9 10

SHORTCUTS REFERENCE 3142


To align control edges.............. 3142
To change a control's properties 3143
To change message box mode .. 3144
To clear the message box......... 3145
To close the Error window ........ 3146
To close the script editor .......... 3147
To apply changes and close the script editor ............................ 3148
To apply changes and close the script editor ............................ 3149
To complete words in scripts..... 3150
To display a contextual menu (Pointer tool) .......................... 3151
To display a contextual menu.... 3152
To display a control's property inspector ................................ 3153
To duplicate a control .............. 3154
To edit a control's script ........... 3155
To edit the card script .............. 3156
To edit the selected control's script.............................................3157
To edit the stack script............. 3158
To equalize height and width of a control ...................................3159
To equalize heights of selected controls.................................. 3160
To equalize widths of selected controls.................................. 3161
To find the selection in scripts... 3162
To format the current handler ... 3163
To go to the next card ............. 3164
To go to the previous card........ 3165
To go to the top or bottom of a field............................................. 3166
To hide Revolution palettes....... 3167
To look up Transcript term ....... 3168
To magnify an image ............... 3169
To make an image transparent.. 3170
To move Revolution windows .... 3171
To navigate in a field ............... 3172
To nudge the selected control ... 3173
To open a stack without the development environment ........ 3174
To open Revolution documentation.............................................3175
To remove font changes from text.............................................3176
To reverse Select Grouped Controls.............................................3177
To review message box history .3178
To review the recent cards list .. 3179
To save all open stacks ............ 3180
To select controls without moving them .....................................3181
To select multiple controls ........ 3182
To step into the next line of a handler .................................. 3183
To step over the next line of a handler .................................. 3184
To stop a running handler......... 3185
To switch between Browse and Pointertool............................. 3186



9
 
9 Page 10 16

VOCABULARY LISTING 3187

Standard Tokens ..................... 3187
Revolution Specific Tokens ....... 3193










10
 
10 Page 16 17
Page 16
LANGUAGE DICTIONARY
$ keyword
Platforms
Not supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
@ keyword, function control structure, getProp control structure, on control structure, param function, paramCount
function, params function, setProp control structure, How to get the location of the user's home directory

Summary
The character $ (dollar sign) is used to indicate an environment variable on Unix systems and a command-line parameter on
Unix or Windows systems.

Syntax

Example Code
put $LOGNAME into field "Login Name" if $0 is not myAppName then answer "Problem initializing!"

Comments
Use the $ keyword to interact with the system environment and to find out what arguments were used if the application was started up from the command line.

Comments:
The $ character marks two kinds of special variables: command-line arguments (on OS X, Unix, and Windows systems) and environment variables (on OS X and Unix systems).

If you start up the application from the command line (on OS X, Unix or Windows systems), the command name is stored in the global variable $0 and any arguments passed on the command line are stored in numbered variables starting with the $ character. For example, if you start the application by typing the following shell command:

myrevapp -h name
then the global variable $0 contains "myrevapp" (the name of the application), $1 contains "-h", and $2 contains "name".
If an argument includes spaces, it must be enclosed in quotes on the command line:

myrevapp -in "new info. txt" -out "new info. xml"
Gotcha: On Windows XP systems, individual arguments passed on the command line are placed in separate variables ($ 1, $2, and so on) only if they are quoted on the command line. Otherwise, all arguments are placed in the $1 variable.

On Unix and OS X systems, a variable whose name begins with the $ character is exported to the application's environment, and is inherited by processes started up by the shell function or the open process command. Use this technique to create your own environment variables.

You can access existing environment variables by prepending the $ character to the environment variable's name. For example, the following statement gets the contents of the LOGNAME environment variable:

get $LOGNAME 16
 
16 Page 17 18
Page 17
& operator
Synonyms
Objects
string

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
&& operator, , operator, combine command, Operator Precedence Reference, Recipe for adding a prefix to each line of a
string, Recipe for an Elizabethan insult generator, Recipe for building a repeated string

Summary
Concatenates two strings.

Syntax
string1 & string2

Example Code
put "foo" & "bar" --evaluates to "foobar" put myVar & return & return into otherVar

get offset( return & space, theData)
Comments
Use the & operator to create a single string out of two or more parts.

Parameters:
The operands string1 and string2 are literal strings of characters (delimited with double quotes), or expressions that
evaluate to strings.

Comments:
The result of the & operator is a string consisting of string1 followed by string2. 17
 
17 Page 18 19
Page 18
&& operator
Synonyms
Objects
string

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
& operator, , operator, Operator Precedence Reference, Recipe for an Elizabethan insult generator, Recipe for finding lines
that are not common to two containers

Summary
Concatenates two strings and inserts a space between them.

Syntax
string1 && string2

Example Code
put "my" && "house" --evaluates to "my house" put field "First" && field "Last" into field "Name"

find it && "Card"
Comments
Use the && operator to combine two strings with a space between themófor example, to combine two words or phrases.

Parameters:
The operands string1 and string2 are literal strings of characters (delimited with double quotes), or expressions that
evaluate to strings.

Comments:
The result of the && operator is a string consisting of string1, a space, and string2.

The && operator is equivalent to & space &. In other words,
"this" && "that" does the same thing as

"this" & space & "that" 18
 
18 Page 19 20
Page 19
() operator
Synonyms
Objects
logical, numeric, string

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
* operator, + operator, -operator, [] keyword, / operator, value function, Operator Precedence Reference

Summary
Groups operands together.

Syntax
(expression)

Example Code
get (quantity * priceEach) + shippingCost (" a" is within field 1) or (" b" is within field 2)

23 * (( 4 / 17) + 60) + (-7)
Comments
Use parentheses ( ) to group operands together in order to control the order operations are performed in, or to make the
structure of a complex expression clearer.

Parameters:
The expression is any Transcript expression.

Comments:
When Revolution evaluates an expression, operations enclosed within parentheses are performed first. If parentheses are
nested, the expression within the innermost set of parentheses is evaluated first.

For example, the sin function is evaluated before the / operator, so the sin of 1/ 4 means "take the sine of one, then divide
by four". To obtain the sine of 1/ 4, use parentheses to force the division to be done first, as in this expression: the sin of
(1/ 4).

Even when they are not needed to change operator precedence, parentheses are useful in making complex expressions
more readable. For example,

(quantity * priceEach) + (shippingCost * weight) evaluates to the same number as

quantity * priceEach + shippingCost * weight But the first example is easier to understand, because the parentheses break down the expression logically for the reader.

Parentheses in expressions must be used in pairs, each ( with a matching ). Use of unmatched parentheses will cause a
compile error. 19
 
19 Page 20 21
Page 20
* operator
Synonyms
Objects
numeric

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
/ operator, ^ operator, multiply command, Operator Precedence Reference

Summary
Multiplies two numbers.

Syntax
number1 * number2

Example Code
get 3 * 5 --evaluates to 15 put thisNumber * it into field "Result"

put (3 + commonFactor) * 4 into tempVariable
Comments
Use the * (times) operator to multiply two numbers.

Parameters:
The operands number2 and number2 are numbers or expressions that evaluate to numbers, or arrays containing numbers.

Comments:
To multiply the contents of a container by a number, use the multiply command instead.

If either number1 or number2 is an array, each of the array elements must be a number. If an array is multiplied by a
number, each element is multiplied by the number. If an array is multiplied by an array, both arrays must have the same
number of elements and the same dimension, and each element in one array is multiplied by the corresponding element of
the other array.

If an element of one array is empty, the * operator treats its contents as zero.
Changes to Transcript:
The option to multiply arrays was introduced in version 1. 1. In previous versions, only single numbers could be used with
the * operator. 20
 
20 Page 21 22
Page 21
+ operator
Synonyms
Objects
numeric

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
-operator, add command, Operator Precedence Reference

Summary
Adds two numbers.

Syntax
number1 + number2

Example Code
put 2 + 2 into fourContainer set the layer of field myNumber to (myNumber + 2)

Comments
Use the + (plus) operator to add two numbers, or to add two arrays containing numbers.

Parameters:
The operands number1 and number2 are literal numbers, or expressions that evaluate to numbers, or arrays containing
numbers.

Comments:
To add a number to the contents of a container, use the add command instead.

If either number1 or number2 is an array, each of the array elements must be a number. If a number is added to an array,
the number is added to each element. If an array is added to an array, both arrays must have the same number of
elements and the same dimension, and each element in one array is added to the corresponding element of the other array.

If an element of one array is empty, the + operator treats its contents as zero.
Changes to Transcript:
The option to add arrays was introduced in version 1. 1. In previous versions, only single numbers could be used with the +
operator. 21
 
21 Page 22 23
Page 22
, operator
Synonyms
Objects
string

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
& operator, && operator, Operator Precedence Reference

Summary
Concatenates (joins) two strings and inserts a comma between them.

Syntax
string1 , string2

Example Code
put "first"," second" --evaluates to "first, second" get lastName, firstName && middleName

Comments
Use the , operator to combine two strings with a comma between them.

Parameters:
The operands string1 and string2 are literal strings of characters (delimited with double quotes), or expressions that
evaluate to strings.

Comments:
The result of the , operator is a string consisting of string1, a comma, and string2.

The , operator is equivalent to & comma &. In other words,
"this" , "that" does the same thing as

"this" & comma & "that" 22
 
22 Page 23 24
Page 23
-operator
Synonyms
Objects
numeric

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
+ operator, --keyword, subtract command, Operator Precedence Reference

Summary
Subtracts one number from another, or designates a number as negative.

Syntax
firstNumber -secondNumber
numberArray -{number | array}
-negativeNumber

Example Code
put -24 into myContainer put theRight -theLeft into theWidth

put myArray -17 into adjustedValues
Comments
The -(minus) operator serves two purposes. When it has a single operand (unary minus), it negates that number. When it
has two operands (binary minus), it subtracts the second number from the first number.

Parameters:
The operands firstNumber and secondNumber are numbers, or expressions that evaluate to numbers, or arrays containing
numbers.

Comments:
To subtract a number from the contents of a container, use the subtract command.

You cannot use the unary minus twice in a row. The expression
--someNumber
causes an error, and the expression
--someNumber
is interpreted as a comment because it starts with the comment keyword --.

If firstNumber or secondNumber is an array, each of the array elements must be a number. If a number is subtracted from
an array, the number is subtracted from each element. If an array is subtracted from an array, both arrays must have the
same number of elements and the same dimension, and each element in one array is subtracted from the corresponding
element of the other array.

If an element of an array is empty, the -operator treats its contents as zero.
The unary minus cannot be used with an array.
Changes to Transcript:
The option to subtract arrays was introduced in version 1. 1. In previous versions, only single numbers could be used with
the -operator. 23
 
23 Page 24 25
Page 24
--keyword
Synonyms
#

Objects

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
-operator, /**/ keyword, How to include comments and notes in a script, How to temporarily remove a portion of a script,
Script menu > Comment (Script Editor), Script menu > Uncomment (Script Editor), View menu > Default Comment
Character... (Script Editor)

Summary
Indicates the start of a comment.

Syntax

Example Code
put 2 into myVar --myVar holds the index --everything on this line is a comment

Comments
Anything between --and the end of the current script line is treated as a comment and is ignored by Revolution when
executing the handler.

Comments:
Comments are useful for documenting and explaining your code, either for others who might need to read and modify it, or
for yourself. (The code may be clear in your mind now, but in six months, you'll be glad you included comments.)

Comments can be placed anywhere in a scriptóinside handlers or outside all handlers. In a long script with many handlers, it
may be useful to divide the handlers into sections. Each section starts with a comment containing the section name and any
other useful information. This practice helps you keep long scripts organized. Similarly, a lengthy handler can be made more
readable by explanatory comments.

Comments can contain any text, including lines of Transcript code. If the code is within a comment, it's ignored. You can
temporarily remove sections of code for debugging by putting those sections inside a comment. 24
 
24 Page 25 26
Page 25
/ operator
Synonyms
Objects
numeric

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
* operator, div operator, divide command, mod operator, Operator Precedence Reference

Summary
Divides one number by another number.

Syntax
number/ divisor

Example Code
put 22/ 7 into approxPi --approximates pi get thisVariable/( thisVariable + 1)

Comments
Use the / (divide) operator to divide one number by another.

Parameters:
The operands number and divisor are numbers, or expressions that evaluate to numbers, or arrays containing numbers.

Comments:
To divide the contents of a container by a number, use the divide command instead.

If number is an array, each of the array elements must be a number. If an array is divided by a number, each element is
divided by the number. If an array is divided by an array, both arrays must have the same number of elements and the
same dimension, and each element in one array is divided by the corresponding element of the other array.

If an element of an array is empty, the / operator treats its contents as zero.
Attempting to divide by zero causes an execution error.
Changes to Transcript:
The option to divide arrays was introduced in version 1. 1. In previous versions, only single numbers could be used with the
/ operator. 25
 
25 Page 26 27
Page 26
/**/ keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
--keyword, How to include comments and notes in a script, How to temporarily remove a portion of a script

Summary
Delimits a block comment.

Syntax

Example Code
answer whichPrompt /* use the prompt that was set earlier */ /* This entire block, although it is two lines

long, is a single comment. */
Comments
Anything between /* and */ is treated as a comment and is ignored by Revolution when executing the handler.

Comments:
Comments are useful for documenting and explaining your code, either for others who might need to read and modify it, or
for yourself. (The code may be clear in your mind now, but in six months, you'll be glad you included comments.)

The block comments created by /**/ differ from the line comments created by --because a block comment can span
multiple lines, as well as a single line or part of a line. (A comment marked by --extends only to the end of the line.) A
comment that starts with /* does not end until */, even if there are several lines in between.

Comments can be placed anywhere in a scriptóinside handlers or outside all handlers. In a long script with many handlers, it
may be useful to divide the handlers into sections. Each section starts with a comment containing the section name and any
other useful information. This practice helps you keep long scripts organized. Similarly, a lengthy handler can be made more
readable by explanatory comments.

Comments can contain any text, including lines of Transcript code. If the code is within a comment, it's ignored. You can
temporarily remove sections of code for debugging by putting those sections inside a comment. 26
 
26 Page 27 28
Page 27
; keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
keyword, scriptLimits function

Summary
The character ; is used to place two statements on a single line.

Syntax

Example Code
go next card; wait 1 second; go previous card repeat with x = 1 to 10; doSomething x; end repeat

Comments
Use the ; character to compress code into fewer visible lines for easier reading.

Comments:
Lines that are split with ; are shown in the script editor as a single line, but when executed, are treated as multiple lines of
code. The following line counts as three statements:

go card 1; beep 2; answer the date
A ; character which is used within a literal string does not signal a new line, because the ; is treated as part of the string
instead of being treated as a line break. 27
 
27 Page 28 29
Page 28
< operator
Synonyms
Objects
logical

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
<= operator, > operator, caseSensitive property, max function, min function, Operator Precedence Reference

Summary
Compares two values and returns true if the first value is less than the second value, false otherwise.

Syntax
value1 < value2

Example Code
3 < 4 --evaluates to true 7 < (2 + 1) --evaluates to false

if thisVariable < 0 then beep
Comments
Use the < (less than) operator to compare two numbers or to compare the alphabetical order of two strings.

Parameters:
The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources
of value.

Comments:
When comparing strings, the < operator compares the two values character by character, using the ASCII value of each
character. For example, "a" comes before "b" in the ASCII character set, so "a" < "b" and "ab" < "bb".

If the strings are of different lengths, so that the trailing characters in one string are compared to missing characters in the
other, the missing characters are considered to have lower value than any character. For example, "ab" < "abc".

If the two values are equal, firstValue < secondValue evaluates to false.
If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before
lowercase letters, so "A" < "a". If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is
considered equivalent to "A". 28
 
28 Page 29 30
Page 29
<= operator
Synonyms
£

Objects
logical

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
< operator, >= operator, caseSensitive property, max function, min function, Operator Precedence Reference, Why does a
handler stop working when moved to another platform?

Summary
Compares two values and returns true if the first value is less than or equal to the second value, false otherwise.

Syntax
value1 <= value2

Example Code
22 <= 21 --evaluates to false 3 <= -3 --evaluates to false

"a" <= "a" --evaluates to true
Comments
Use the <= (less than or equal to) operator to compare two numbers or to compare the alphabetical order of two strings.

Parameters:
The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources
of value.

Comments:
When comparing strings, the <= operator compares the two values character by character, using the ASCII value of each
character. For example, "a" comes before "b" in the ASCII character set, so the following are all true:

"a" <=" a"
"a" <= "b"
"ab" <= "bb"

If the strings are of different lengths, so that the trailing characters in one string are compared to missing characters in the
other, the missing characters are considered to have lower value than any character. For example, "abc" <= "ab" is false.

If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before
lowercase letters. If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is considered equivalent
to "A".

Cross-platform caution! The synonym £ can be used only on Mac OS and OS X systems. If you use a script containing the
£ character on a Windows or Unix system, a script error may result. To ensure cross-platform compatibility, use the
synonym <= instead. 29
 
29 Page 30 31
Page 30
<> operator
Synonyms
_, is not

Objects
logical

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
< operator, = operator, > operator, caseSensitive property, contains operator, Operator Precedence Reference, Why does a
handler stop working when moved to another platform?

Summary
Compares two values and returns true if they are not equal, false if they are equal.

Syntax
value1 <> value2

Example Code
3 + 2 <> 6 --evaluates to true "abc" <> "abd" --evaluates to true

field "Old Password" <> field "Password"
Comments
Use the <> (inequality) operator to compare two numbers or to compare two strings.

Parameters:
The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources
of value.

Comments:
When comparing strings, the <> operator compares the two values character by character, using the ASCII value of each
character. If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming
before lowercase letters, so "A" <> "a". If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is
considered equivalent to "A".

Cross-platform caution! The synonym _ can be used only on Mac OS and OS X systems. If you use a script containing the
_ character on a Windows or Unix system, a script error may result. To ensure cross-platform compatibility, use one of the
synonyms <> or is not instead. 30
 
30 Page 31 32
Page 31
= operator
Synonyms
is

Objects
logical

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
<> operator, caseSensitive property, contains operator, Operator Precedence Reference

Summary
Compares two values and evaluates to true if they are equal, false if they are not equal.

Syntax
value1 = value2

Example Code
1 = 0 --evaluates to false 17 + 9 = 26 --evaluates to true

"ABC" = "abc" --true if and only if caseSensitive is false
Comments
Use the = (equality) operator to find out whether two numeric expressions yield the same number or whether two strings
are equivalent.

Parameters:
The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources
of value.

Comments:
When comparing strings, the = operator compares the two values character by character. If the caseSensitive property is
true, the comparison between two strings treats uppercase letters as coming before lowercase letters. If the caseSensitive
property is false, the comparison is not case-sensitive, so "a" = "A". 31
 
31 Page 32 33
Page 32
> operator
Synonyms
Objects
logical

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
< operator, >= operator, caseSensitive property, max function, min function, Operator Precedence Reference

Summary
Compares two values and returns true if the first value is greater than the second value, false otherwise.

Syntax
value1 > value2

Example Code
1 > 0 --evaluates to true 2 > -15 --evaluates to true

repeat while counter > 0
Comments
Use the > (greater than) operator to compare two numbers or to compare the alphabetical order of two strings.

Parameters:
The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources
of value.

Comments:
When comparing strings, the > operator compares the two values character by character, using the ASCII value of each
character. For example, "a" comes before "z" in the ASCII character set, so "z" > "a" and "az" > "ab".

If the strings are of different lengths, so that the trailing characters in one string are compared to missing characters in the
other, the missing characters are considered to have lower value than any character. For example, "DEF" > "DE".

If the two values are equal, firstValue > secondValue evaluates to false.
If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before
lowercase letters, so "a" > "A". If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is
considered equivalent to "A". 32
 
32 Page 33 34
Page 33
>= operator
Synonyms
_

Objects
logical

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
<= operator, > operator, max function, min function, Operator Precedence Reference, Why does a handler stop working
when moved to another platform?

Summary
Compares two values and returns true if the first value is greater than or equal to the second value, false otherwise.

Syntax
value1 >= value2

Example Code
22 >= 23 --evaluates to false myValue >= 0 --evaluates to whether myValue is non-negative

Comments
Use the >= (greater than or equal to) operator to compare two numbers or to compare the alphabetical order of two
strings.

Parameters:
The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources
of value.

Comments:
When comparing strings, the >= operator compares the two values character by character, using the ASCII value of each
character. For example, "z" comes after "a" in the ASCII character set, so the following are all true:

"z" >=" z"
"z" >= "a"
"zz" >= "za"

If the strings are of different lengths, so that the trailing characters in one string are compared to missing characters in the
other, the missing characters are considered to have lower value than any character. For example, "abc" >= "ab".

If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before
lowercase letters. If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is considered equivalent
to "A".

Cross-platform caution! The synonym _ can be used only on Mac OS and OS X systems. If you use a script containing the
_ character on a Windows or Unix system, a script error may result. To ensure cross-platform compatibility, use the
synonym >= instead. 33
 
33 Page 34 35
Page 34
@ keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
$ keyword, function control structure, getProp control structure, on control structure, param function, paramCount function,
params function, setProp control structure

Summary
The character @ (at sign) is used with a parameter declaration, to indicate that a reference to the parameter is passed
instead of its value.

Syntax

Example Code
on myHandler thisParameter,@ thatParameter

Comments
Pass a parameter by reference when you want a handler to change a variable in the calling handler, or when you want a
handler to return more than one value.

Comments:
Parameters to a handler are declared on the first line of the handler. If the name of a parameter is preceded with the @
character, that parameter's value is interpreted as a variable name, rather than the value in the variable. Changing the
parameter variable in the called handler changes the value of the variable in the calling handler.

The following handler takes a parameter and simply adds 1 to it:
on setVariable @incomingVar --notice the @ before the parameter name
add 1 to incomingVar
end setVariable

The following handler calls the "setVariable" handler above:
on mouseUp
put 8 into someVariable
setVariable someVariable
answer "someVariable is now:" && someVariable
end mouseUp

Because the parameter for the "setVariable" handler is declared with a leading @, the mouseUp handler passes
"someVariable" by reference. This means that when the "setVariable" handler makes changes to the parameter, it changes
the actual variable, and those changes affect all further references in the mouseUp handler to the variable. Executing this
mouseUp handler displays a dialog box that says "someVariable is now: 9". 34
 
34 Page 35 36
Page 35
[] keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
() operator, combine command, intersect command, keys function, split command, union command, About containers,
variables, and sources of value, How to access a value in an array variable, How to change an element in an array variable,
How to create an array variable, How to find out the number of elements in an array, How to find out whether a container is
an array

Summary
The square bracket characters [ ] surround the element name in an array reference.

Syntax

Example Code
put thisValue into myArray[" someKey"] if myArray[" someOtherKey"] is "A" then beep

Comments
Use square brackets [ ] to specify which element in an array you are referring to.

Comments:
You access an element of an array by using the name of the array, along with the key in square brackets:

put "A" into myList[" firstLetter"]
put "B" into myList[" secondLetter"]
put "C" into myList[" thirdLetter"]
get myList[" secondLetter"] --yields "B"

Square brackets must be used in pairs, each [ with a matching ]. Using a single square bracket does not cause an error, but
the bracket is interpreted as part of the variable name, rather than as the marker for the key of an array reference. 35
 
35 Page 36 37
Page 36
keyword
Synonyms
ÿ

Objects

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
& operator, && operator, ; keyword, Why does a handler stop working when moved to another platform?

Summary
The character is used to break a line in a script for display, while still having it treated as a single statement.

Syntax

Example Code
answer "You've been waiting for" && numberOfMinutes

&& "minutes." with "Keep Waiting" or "Cancel"
Comments
If a line is too long to fit conveniently in the script window, use the character to break it into two (or more) lines for
viewing.

Comments:
A line that is split with is shown in the script editor as more than one line, but when it's executed, it is treated as a single
line of code.

The script editor automatically indents continued lines, as shown in the example above.
A character which is used within a literal string does not break the line, because the is treated as part of the quoted string
instead of being treated as a line continuation. For example, the following statement causes a compile error because the
character is inside the quotes:

answer "This is a test. This is only a test.
Had this been an actual life..." with "OK" --BAD EXAMPLE
The above bad example can be corrected by using the && operator to break up the long string:
answer "This is a test. This is only a test."
&& "Had this been an actual life..." with "OK" --good example
The string has been broken into two substrings, so the character is no longer within a literal string. This second example
does not cause an error.

Cross-platform caution! The synonym ÿ (option-L) can be used only on Mac OS and OS X systems. If you use a script
containing the ÿ character on a Windows or Unix system, a script error may result. To ensure cross-platform compatibility,
use the synonym instead. 36
 
36 Page 37 38
Page 37
^ operator
Synonyms
Objects
numeric

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
* operator, exp function, exp1 function, exp10 function, exp2 function, log10 function, multiply command, sqrt function,
Operator Precedence Reference

Summary
Raises a number to a power.

Syntax
number^ exponent

Example Code
7^ 3 --7 to the 3rd power, or 343 myNumber^( 1/ 2) --the square root of myNumber

put 2^ bitDepth into numberOfColors
Comments
Use the ^ operator to raise a number to a power, or to find a root of a number.

Parameters:
The number and exponent are numbers, or expressions that evaluate to numbers.

Comments:
If the exponent is a fraction, with 1 as the numerator, the ^ operator finds the specified root of the number. For example, if
the exponent is 1/ 2, the operation yields the square root of number; if the exponent is 1/ 4, the operation yields the 4th
root of the number, and so on.

If the exponent is zero, the result of this operator is 1, regardless of what the number is. 37
 
37 Page 38 39
Page 38
abbreviated keyword
Synonyms
abbr, abbrev

Objects

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
convert command, date function, english keyword, ID property, long keyword, name property, short keyword, system
keyword, time function

Summary
Specifies a format for the date and time functions, the convert command, and the name, ID, and owner properties.

Syntax

Example Code
the abbreviated date put (the abbreviated name of this card) & return after cardsList

Comments
Use the abbreviated keyword to obtain a date, time, name, or ID with a moderate amount of detail.

Comments:
In general, an abbreviated form is longer than the short form, but shorter than the long form.

If the useSystemDate property is set to false, an abbreviated date looks like this:
Thu, Jan 27, 2000
If the useSystemDate is true, the abbreviated date is formatted according to the system settings.

If the useSystemDate property is set to false, an abbreviated time looks like this:
11: 22 AM
If the useSystemDate is true, the abbreviated time is formatted according to the system settings.

An abbreviated object name consists of the object type, followed by the name in quotes. For example, an abbreviated card
name looks like this: card "This Card"

An abbreviated object ID looks like this: field ID 2238
Note: The abbreviated keyword is implemented internally as a property, and appears in the propertyNames. However, it
cannot be used as a property in an expression, nor with the set command.

Changes to Transcript:
The form the abbreviated owner was introduced in version 2. 0. In previous versions, the form of the owner property could
not be specified and reported only the abbreviated owner. 38
 
38 Page 39 40
Page 39
abs function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
round function, trunc function, Recipe for an approximate-equality function

Summary
Returns the absolute value of a number.

Syntax
the abs of number
abs( number)

Example Code
abs( 14) --returns 14 the abs of -14 --returns 14

abs( firstNum -secondNum) --is equal to the next example abs( secondNum -firstNum) --is equal to the previous example

Comments
Use the abs function to determine the difference between two numbers when you don't know ahead of time which is
greater.

Parameters:
The number is a positive or negative number, or any expression that evaluates to a number.

Value:
The abs function returns a positive number.

Comments:
The absolute value of a number is that number's distance from zero. If the number is positive, its absolute value is just the
number; if the number is negative, its absolute value is the negative of the number. Because of this, the absolute value of a
number is always positive. 39
 
39 Page 40 41
Page 40
acceleratorKey property
Synonyms
accelKey

Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
acceleratorModifiers property, acceleratorText property, commandKeyDown message, mouseUp message

Summary
Specifies a shortcut key combination for a button's mouseUp handler.

Syntax
set the accel[ erator] Key of button to {empty | letterChar}

Example Code
set the acceleratorKey of button 1 to "a" set the acceleratorKey of button "Switch Order" to "F8"

set the accelKey of button "Calc" to field "Key"
Comments
Use the acceleratorKey property to give users a shortcut key combination for often-used buttons, or to provide a keyboard
shortcut to a button that's used as a menu item in a stack menu.

Value:
The acceleratorKey of a button is a single lowercase letter from a to z, or a key name. Setting the acceleratorKey to empty
removes the shortcut.

By default, the acceleratorKey of a newly created button is empty.
Comments:
Press the key combination defined in a button's acceleratorKey property to send a mouseUp message to the button, instead
of clicking.

The key( s) specified in the acceleratorMods property must be pressed along with the acceleratorKey.
Gotcha: The acceleratorKey property is case-sensitive. You must specify a lowercase letter as the letterChar; the
uppercase letter is not equivalent.

If the insertion point is in a field, the keypress is sent to the field, and the button does not receive it.
On Unix systems, the key names are listed in the file "/ usr/ include/ X11/ keysymdef. h". Don't include the "XK_" prefix in
these key names; for example, use "F8" for the key designated as "XK_ F8" in the file. 40
 
40 Page 41 42
Page 41
acceleratorModifiers property
Synonyms
accelMods

Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems
Note: this command works differently across platforms.

See Also:
acceleratorKey property, acceleratorText property, mnemonic property, mouseUp message

Summary
Specifies one or more modifier keys that must be pressed with the button shortcut key specified by the acceleratorKey
property.

Syntax
set the acceleratorModifiers of button to {empty | keys}

Example Code
set the acceleratorModifiers of button 1 to shift set the accelMods of button "Speak" to control, alt

set the accelMods of button it to command, shift
Comments
Use the acceleratorModifiers property, along with the acceleratorKey property, to specify a shortcut key combination for a
button.

Value:
The acceleratorModifiers of a button consists of a list of one or more keys, separated by commas.

The keys can be any of "control", "command", "alt", "option", and "shift". If you use "command" as a key, it is converted to
"control". If you use "option" as a key, it is converted to "alt".

By default, the acceleratorModifiers of a newly created button is empty.
Comments:
The following statements set up a shortcut for a button called "Calculate":

set the acceleratorKey of button "Calculate" to "C"
set the acceleratorModifiers of button "Calculate" to alt, shift

When the user presses Alt-Shift-C (on Unix or Window systems) or Option-Shift-C (on Mac OS systems), the button's
mouseUp handler is executed.

Cross-platform note: On Mac OS systems, the Control key and Command key are equivalent when used with this
property. 41
 
41 Page 42 43
Page 42
acceleratorText property
Synonyms
accelText

Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
acceleratorKey property, acceleratorModifiers property, label property, mnemonic property, rightMargin property, textAlign
property

Summary
Specifies the shortcut hint that appears at the right edge of a button.

Syntax
set the acceleratorText of button to string

Example Code
set the acceleratorText of button 3 to "A" set the accelText of button "Go" to field "Shortcut Key"

set the accelText of button 9 to "option-D" set the accelText of the mouseControl to empty --remove acceleratorText

Comments
Use the acceleratorText property to provide the user with an onscreen hint about the shortcut key combination specified by
the button's acceleratorKey property.

Value:
The acceleratorText of a button is a string, or an expression that evaluates to a string.

By default, the acceleratorText of a newly created button is empty.
Comments:
The acceleratorText string appears at the right edge of the button, inside the button's rightMargin. Revolution does not
automatically make room for the acceleratorText string, so you might need to enlarge the button to prevent its label from
overlapping the acceleratorText string.

If the button's textAlign property is set to "right", the button's label overlaps the acceleratorText string, so you shouldn't set
a button's acceleratorText if it has a right-aligned label.

Usually, the string should be the character in acceleratorKey, but you might want to include additional characters to hint at
the modifier key needed.

Note: Nothing happens when the user presses the key specified by the acceleratorText property unless the acceleratorKey
and acceleratorModifiers are set. The acceleratorText property creates a visual hint, but does not create the actual shortcut
key combination. 42
 
42 Page 43 44
Page 43
accentColor property
Synonyms
Objects
global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Not supported on UNIX systems

See Also:
colorNames function, hiliteColor property, lookAndFeel property, About colors and color references, Color Names Reference,
Recipe for translating a color name to an RGB numeric triplet

Summary
Specifies the highlight color used for the active menu item.

Syntax
set the accentColor to {colorName | RGBColor}

Example Code
set the accentColor to "blue" set the accentColor to 255,0,0 --bright red

set the accentColor to "# CC00FF" --violet
Comments
Use the accentColor to hilite a menu item associated with a button, when the user is in the process of choosing that menu
itemóthat is, when the menu is open and the mouse pointer is over the menu item.

Value:
The accentColor is a color reference.

The colorName is any standard color name.
The RGBColor consists of three comma-separated integers between zero and 255, specifying the level of each of red, green,
and blue; or an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red,
green, and blue.

Comments:
This property is used only when the lookAndFeel property is set to "Macintosh" or "Windows 95". If the lookAndFeel property
is set to "Appearance Manager" or "Motif", the accentColor has no effect.

The accentColor property is copied from the system settings every time Revolution starts up, but can be changed by a
handler. 43
 
43 Page 44 45
Page 44
accept command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
close socket command, hostNameToAddress function, open socket command, openSockets function, read from socket
command, write to socket command, How to unwedge upload and download operations

Summary
Accepts an Internet connection and creates a socket for that connection.

Syntax
accept [datagram] connections on port number with message callbackMessage

Example Code
accept connections on port 80 with message "webConnect" accept datagram connections on port it with message myMessage

Comments
Use the accept command when running a server, to accept TCP connections or UDP datagrams from other systems (or other
processes on the same system).

Use the datagram option if you want to accept UDP datagrams.
Parameters:
The portNumber is the TCP port number on which to accept connections.

The callbackMessage is the name of a message to be sent when a connection is made or a datagram is received.
Comments:
When a connection is made or a datagram is received, the accept command creates a new socket that can be used to
communicate with the other system (or process). When using the close socket, read from socket, or write to socket
commands, you can refer to this socket with a socket identifier that looks like this:

host: port[| connectionID]
where the connectionID is a number assigned by the accept command. (You only need to specify the connection number if
there is more than one socket connected to a particular port and host.)

The callbackMessage is sent to the object whose script contains the accept command. Either one or two parameters are sent
with this message. The first parameter is the IP address of the system or process making the connection. If a datagram is
being accepted, the second parameter is the contents of the datagram.

For technical information about sockets, see RFC 147 at <http:// www. ietf. org/ rfc/ rfc147.txt>.
For technical information about UDP datagrams, see RFC 768 at <http:// www. ietf. org/ rfc/ rfc0768.txt>.
For technical information about the numbers used to designate standard ports, see the list of port numbers at
<http:// www. iana. org/ assignments/ port-numbers>, in particular the section entitled "Well Known Port Numbers". 44
 
44 Page 45 46
Page 45
acceptDrop property
Synonyms
Objects
global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Not supported on UNIX systems

See Also:
dragDrop message, dragEnd message, dragEnter message, How to prevent dragging and dropping to a field, How to
respond to a drag and drop

Summary
Specifies whether a drop will be accepted during a drag and drop.

Syntax
set the acceptDrop to {true | false}

Example Code
set the acceptDrop to true if word 1 of the target is "button" then set the acceptDrop to false

Comments
Set the acceptDrop property in an object's dragEnter handler to allow it to accept drops.

Value:
The acceptDrop is true or false.

Comments:
Usually, you set the acceptDrop property to true in a dragEnter handler to indicate that the target of the dragEnter message
will accept a drop of the data being dragged.

If the acceptDrop is set to true, when you drop data, a dragDrop message is sent to the object that the mouse pointer is
over, and a dragEnd message is sent to the object that was dragged from. If the acceptDrop is false, no dragDrop or
dragEnd message is sent.

Revolution handles the mechanics of dragging and dropping text between and within unlocked fields. To support this type of
drag and drop operation, you don't need to do any scripting. However, drag and drop of other types of data or between
other object types is not automatic: setting the acceptDrop property to true does not, by itself, implement dragging and
dropping. It only allows the dragDrop message to be sent.

The acceptDrop property is automatically set to true when a dragEnter message is received by an unlocked field (unless the
message is trapped), and is automatically set to false when a dragEnter message is received by any other object. (When the
dragEnter message reaches the engine, the engine sets the property to true if the target is an unlocked field and to false
otherwise.) This allows unlocked fields to accept dragged text without requiring you to do any scripting. To prevent an
unlocked field from accepting a drag, use a dragEnter handler and either set the acceptDrop to false, or trap the dragEnter
message by not passing the message.

The acceptDrop is automatically set to false when the mouse pointer enters a locked field, or any other object. To allow an
object other than a locked field to accept drops, set the acceptDrop to true in a dragEnter handler. 45
 
45 Page 46 47
Page 46
acos function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
asin function, atan function, cos function, pi constant, sin function, tan function

Summary
Returns the arc cosine of a number, in radians.

Syntax
the acos of number
acos( number)

Example Code
acos(-1) --returns pi acos( cos(. 3)) --returns .3

acos( field "Opposite" + field "Sine")
Comments
Use the acos function to find the arc cosine of a number.

Parameters:
The number is a number between -1 and 1, or an expression that evaluates to such a number.

Value:
The acos function returns a number between zero and pi.

Comments:
The arc cosine of number is an angle whose cosine is equal to number. In other words, acos is an inverse of the cos
function.

The result of the acos function is returned in radians. To get this result in degrees, use the following function:
function acosInDegrees theMagnitude
return acos( theMagnitude) * 180 / pi
end acosInDegrees 46
 
46 Page 47 48
Page 47
activatePalettes property
Synonyms
Objects
global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems
Note: this command works differently across platforms.

See Also:
hidePalettes property, lookAndFeel property, palette command, raisePalettes property, style property

Summary
Specifies whether palettes have the same appearance when active and inactive.

Syntax
set the activatePalettes to {true | false}

Example Code
set the activatePalettes to false if the activatePalettes then hideAllPalettes

Comments
On Mac OS systems, inactive palettes have the same appearance as the frontmost palette. Use the activatePalettes property
to control this behavior.

Value:
The activatePalettes property is true or false.

By default, the activatePalettes is true if Revolution is running on a Mac OS system and false otherwise.
Comments:
If the activatePalettes is true, all palettes look the same. If it is false, the active palette window looks different from the
other palette windows. 47
 
47 Page 48 49
Page 48
add command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
+ operator, divide command, multiply command, numberFormat property, subtract command

Summary
Adds a number to a container and places the resulting value in the container.

Syntax
add number to [chunk of] container
add {number | array} to arrayContainer

Example Code
add 7 to field "Previous Amount" add field "New" to summaryOfInventory

add qty * price to last line of myOrder
Comments
Use the add command to add a number to a container or a portion of a container, or to add two arrays containing numbers.

Parameters:
The number is an expression that evaluates to a number.

The chunk is a chunk expression specifying a portion of the container.
The container is a field, button, or variable, or the message box.
The arrayContainer is an array variable each of whose elements is a number.
Comments:
The contents of the container (or the chunk of the container) must be a number or an expression that evaluates to a
number.

If a number is added to an arrayContainer, the number is added to each element. If an array is added to an arrayContainer,
both arrays must have the same number of elements and the same dimension, and each element in the array is added to
the corresponding element of the arrayContainer.

If the container or an element of the arrayContainer is empty, the add command treats its contents as zero.
If container is a field or button, the format of the sum is determined by the numberFormat property.
Changes to Transcript:
The add to arrayContainer form was introduced in version 1. 1. In previous versions, only single numbers could be used with
the add command. 48
 
48 Page 49 50
Page 49
addMax keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
addOver keyword, addPin keyword, adMin keyword, blend keyword, clear keyword, ink property, noOp keyword, notSrcAnd
keyword, notSrcAndReverse keyword, notSrcBic keyword, notSrcCopy keyword, notSrcOr keyword, notSrcOrReverse
keyword, notSrcXOr keyword, reverse keyword, set keyword, srcAnd keyword, srcAndReverse keyword, srcBic keyword,
srcCopy keyword, srcOr keyword, srcOrReverse keyword, srcXOr keyword, subOver keyword, subPin keyword, transparent
keyword

Summary
Specifies one of the transfer modes that can be used with the ink property.

Syntax

Example Code
set the ink of button "Click Here" to addMax

Comments
Use the addMax keyword to "wash out" the area under an object.

Comments:
The ink property determines how an object's colors combine with the colors of the pixels underneath the object to control
how the object's color is displayed. When the addMax mode is used, each component of the object coloróred, green, and
blueóis compared with the corresponding component of the color underneath, and the maximum of each is used for the
displayed color.

For example, suppose an object's color is 30,70,150, and the color of the pixels under the object is 60,40,100. If the
addMax mode is used, the object's displayed color is 60,70,150.

The addMax mode can be used only on Mac OS systems. On Unix and Windows systems, objects whose ink property is set
to this mode appear as though their ink were set to srcCopy. 49
 
49 Page 50 51
Page 50
addOver keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
addMax keyword, adMin keyword, blend keyword, clear keyword, ink property, noOp keyword, notSrcAnd keyword,
notSrcAndReverse keyword, notSrcBic keyword, notSrcCopy keyword, notSrcOr keyword, notSrcOrReverse keyword,
notSrcXOr keyword, reverse keyword, set keyword, srcAnd keyword, srcAndReverse keyword, srcBic keyword, srcCopy
keyword, srcOr keyword, srcOrReverse keyword, srcXOr keyword, subOver keyword, subPin keyword, transparent keyword,
Object menu > Inks

Summary
Specifies one of the transfer modes that can be used with the ink property.

Syntax

Example Code
set the ink of button 2 to addOver

Comments
Use the addOver keyword to combine an object's color with the colors underneath it.

Comments:
The ink property determines how an object's colors combine with the colors of the pixels underneath the object to control
how the object's color is displayed. When the addOver mode is used, each component of the object coloróred, green, and
blueóis added to the corresponding component of the color underneath. If the result is greater than 255, the component
rolls over, back to zero.

For example, suppose an object's color is 25,220,150, and the color of the pixels under the object is 60,40,100. If the
addOver mode is used, the object's displayed color is 85,4,250.

The addOver mode can be used only on Mac OS systems. On Unix and Windows systems, objects whose ink property is set
to this mode appears as though their ink were set to srcCopy. 50
 
50 Page 51 52
Page 51
addPin keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
addMax keyword, addOver keyword, adMin keyword, blend keyword, clear keyword, ink property, noOp keyword, notSrcAnd
keyword, notSrcAndReverse keyword, notSrcBic keyword, notSrcCopy keyword, notSrcOr keyword, notSrcOrReverse
keyword, notSrcXOr keyword, reverse keyword, set keyword, srcAnd keyword, srcAndReverse keyword, srcBic keyword,
srcCopy keyword, srcOr keyword, srcOrReverse keyword, srcXOr keyword, subOver keyword, subPin keyword, transparent
keyword

Summary
Specifies one of the transfer modes that can be used with the ink property.

Syntax

Example Code
set the ink of button "Bar" to addPin

Comments
Use the addPin keyword to combine an object's color with the colors underneath it.

Comments:
The ink property determines how an object's colors combine with the colors of the pixels underneath the object to
determine how the object's color is displayed. When the addPin mode is used, each component of the object coloróred,
green, and blueóis added to the corresponding component of the color underneath. If the resulting number is greater than
127 (the maximum), 127 is used for that component.

For example, suppose an object's color is 240,0,100, and the color of the pixels under the object is 60,40,20. If the addPin
mode is used, the object's displayed color is 127,40,120.

The addPin mode can be used only on Mac OS systems. On Unix and Windows systems, objects whose ink property is set
to this mode appears as though their ink were set to srcCopy. 51
 
51 Page 52 53
Page 52
address property
Synonyms
Objects
global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
hostName function, platform function, request appleEvent command, send to program command

Summary
Reports the name of the system the application is running on.

Syntax
get the address

Example Code
put the address into myAddress put last item of the address into theAppName

Comments
Use the address property to find out the path to the application, or the name of the system.

Value:
The address reports the computer's name, a colon, and the path to the application.

The address property is read-only and cannot be set.
Comments:
For example, if Revolution is running on a Mac OS system named "Heliand", and the Revolution folder is located on a
volume called "Fnord", its address property is Heliand:/ Fnord/ Revolution/ Revolution.

On Unix systems, the computer's name is its domain name. On Mac OS systems, the name is the one set in the File Sharing
control panel.

Changes to Transcript:
Support for AppleTalk zone addresses on Mac OS systems was removed in version 1.1. In previous versions, the address
property reported the application's AppleTalk address, including its zone. 52
 
52 Page 53 54
Page 53
adMin keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
addMax keyword, addOver keyword, addPin keyword, blend keyword, clear keyword, ink property, noOp keyword,
notSrcAnd keyword, notSrcAndReverse keyword, notSrcBic keyword, notSrcCopy keyword, notSrcOr keyword,
notSrcOrReverse keyword, notSrcXOr keyword, reverse keyword, set keyword, srcAnd keyword, srcAndReverse keyword,
srcBic keyword, srcCopy keyword, srcOr keyword, srcOrReverse keyword, srcXOr keyword, subOver keyword, subPin
keyword, transparent keyword

Summary
Specifies one of the transfer modes that can be used with the ink property.

Syntax

Example Code
set the ink of field ID 223 to adMin

Comments
Use the adMin keyword to darken the area under an object.

Comments:
The ink property determines how an object's colors combine with the colors of the pixels underneath the object to
determine how the object's color is displayed. When the adMin mode is used, each component of the object coloróred,
green, and blueóis compared with the corresponding component of the color underneath, and the minimum of each is used
for the displayed color.

For example, suppose an object's color is 30,70,150, and the color of the pixels under the object is 60,40,100. If the adMin
mode is used, the object's displayed color is 30,40,100.

The adMin mode can be used only on Mac OS systems. On Unix and Windows systems, objects whose ink property is set to
this mode appears as though their ink were set to srcCopy. 53
 
53 Page 54 55
Page 54
after keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
before keyword, into keyword, put command, select command, Recipe for building a repeated string

Summary
Used with the put command to place a value at the end of a container or chunk.

Syntax

Example Code
select after field 1 --puts the insertion point at the end of the field put space after item 2 of field "Formatted Address"

Comments
Use the after keyword to position the insertion point at a selected location in a field, or to add text at a specific location in a
container.

Comments:
You can specify either a container, or a chunk within a container. If you don't specify a chunk, the after keyword specifies
the very end of the container.

When you use the after keyword, the current contents of the container or chunk is not affected. The text is added to the
container or chunk, instead of replacing it. 54
 
54 Page 55 56
Page 55
aliasReference function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
create alias command, defaultFolder property

Summary
Returns the name and location of the file or folder that an alias, symbolic link, or shortcut refers to.

Syntax
the aliasReference of aliasPath
aliasReference( aliasPath)

Example Code
the aliasReference of "/ Disk/ Folder/ Alias" put the aliasReference of it into fileToOpen

Comments
Use the aliasReference function to perform an operation on a file after the user has selected an alias, symbolic link, or
shortcut to the file.

Parameters:
The filePath is the location and name of the alias whose referenced file or folder you want to get. If you specify a name but
not a location, Revolution assumes the file is in the defaultFolder.

Value:
The aliasReference function returns the name and location of a file or folder.

Comments:
If the filePath does not exist, the aliasReference function returns empty and the result is set to "can't get". 55
 
55 Page 56 57
Page 56
allowFieldRedraw property
Synonyms
Objects
global

Platforms
Not supported on Mac OS systems
Not supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
lock screen command, unlock screen command

Summary
Has no effect and is included in Transcript for compatibility with imported SuperCard projects.

Syntax
set the allowFieldRedraw to {true | false}

Example Code

Comments
In SuperCard, the allowFieldRedraw property determines whether scrolling fields are redrawn after scrolling. In Revolution,
scrolling fields are always redrawn.

The allowFieldRedraw property is always set to false. A handler can set it to any value without causing a script error, but the
actual value is not changed. 56
 
56 Page 57 58
Page 57
allowInlineInput property
Synonyms
Objects
global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Not supported on UNIX systems

See Also:
lockText property, textFont property, traversalOn property, useUnicode property

Summary
Specifies whether the user can type non-Roman text directly into a field.

Syntax
set the allowInlineInput to {true | false}

Example Code
set the allowInlineInput to true set the allowInlineInput to the letUsersType of this stack

Comments
Use the allowInlineInput property to determine the method by which the user can enter double-byte text.

Value:
The allowInput property is true or false.

By default, the allowInlineInput is true.
Comments:
If the allowInlineInput property is set to true, the user can type double-byte characters (used for languages that do not use
the Roman alphabet, such as Chinese, Japanese, and Korean) directly into fields.

If the allowInlineInput is false, if the insertion point is in a field and a double-byte language is currently selected, a text-entry
palette appears where the user can enter the characters. (This palette is displayed by the operating system's
language software, not by Revolution.) When the user presses Enter, the characters are placed in the field. 57
 
57 Page 58 59
Page 58
allowInterrupts property
Synonyms
Objects
global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
cantAbort property, errorDialog message, interrupt function, lockErrorDialogs property, Why can't I interrupt a handler?,
Shortcut to stop a running handler

Summary
Specifies whether the user can halt a handler with a key combination.

Syntax
set the allowInterrupts to {true | false}

Example Code
set the allowInterrupts to false set the allowInterrupts to the hilite of button 1

Comments
Use the allowInterrrupts property to prevent users from interrupting handlers that must run to completion. For example,
some handlers that change data cannot be interrupted safely, because they will leave data in an inconsistent state if
interrupted.

Value:
The allowInterrupts property is true or false.

By default, the allowInterrupts property is true.
Comments:
If the allowInterrupts property is set to true, the user can halt handlers by typing Control-period or Control-break (on
Windows or Unix) or Command-period (on Mac OS). Setting this property to false disables this capability and ensures that
the user cannot interrupt a handler.

If the allowInterrupts property is set to false and the user attempts to interrupt the handler, the interrupt function returns
true. To provide a clean exit, check this function and do any needed cleanup tasks before exiting the handler.

Setting the allowInterrupts property to false is functionally equivalent to setting the cantAbort property to true for each
open stack.

Caution! Before setting the allowInterrupts property to false, make sure all handlers that may be affected have been
thoroughly tested. If allowInterrupts is set to true, you cannot interrupt a runaway handler with the standard key
combination. 58
 
58 Page 59 60
Page 59
allowKeyInField property
Synonyms
Objects
field, global

Platforms
Not supported on Mac OS systems
Not supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
enterInField message, keyDown message, returnInField message

Summary
Has no effect and is included in Transcript for compatibility with imported SuperCard projects.

Syntax
set the allowKeyInField to {true | false}

Example Code

Comments
In SuperCard, the allowKeyInField property determines whether a "keyInField" message is sent when a key is pressed while
the insertion point is in a field.

In Revolution, the "keyInField" message is not sent.
The allowKeyInField property is always true. A handler can set it to any value without causing a script error, but the actual
value is not changed. 59
 
59 Page 60 61
Page 60
alphaData property
Synonyms
Objects
image

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
blendLevel property, imageData property, import command, maskData property

Summary
Specifies the binary data that makes up the alpha channel of the picture in an image object.

Syntax
set the alphaData of image to binaryData

Example Code
set the alphaData of image "Hellacious" to savedAlphaChannel if charToNum( char x of the alphaData of image 1) is 255 then next repeat

Comments
Use the alphaData property to control the transparency of the pixels in an image.

Value:
The alphaData of an image consists of a sequence of binary values.

Comments:
Each pixel is represented by 8 bits (1 byte) of alpha channel data, with pixels numbered from the top left corner of the
image, left to right, then top to bottom.

A value of zero means the pixel is fully transparent; a value of 255 is fully opaque; and values in between indicate a level of
partial translucency.

Gotcha: Since the alphaData of an image is binary data rather than text, trying to display the data in a field may cause
unexpected behavior.

Since each pixel is represented by 8 bits (1 byte or 1 character), you can obtain the numeric value for a given pixel using
the charToNum function. For example, the numeric value of the alphaData for the tenth pixel is given by the expression
charToNum( char 10 of the alphaData of image).

Gotcha: When changing the alphaData property, make sure the new data is the correct size: 1 byte per pixel in the
image. If you set an image's alphaData property to data whose total length is incorrect, the image appearance may be
distorted. 60
 
60 Page 61 62
Page 61
alternateLanguages function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
do command

Summary
Returns a list of the OSA script languages that are installed on the system.

Syntax
the alternateLanguages
alternateLanguages()

Example Code
the alternateLanguages if "AppleScript" is among the lines of the alternateLanguages

then do it as AppleScript
Comments
Use the alternateLanguages function to find out what scripting languages (in addition to Transcript) are available for use
with the do command.

Value:
The alternateLanguages function returns a list of script languages, one per line.

Comments:
Mac OS and OS X systems support system-wide script languages (such as AppleScript) through the Open Scripting
Architecture (OSA). You can write statements in any OSA language and execute them using the do command. 61
 
61 Page 62 63
Page 62
altID property
Synonyms
Objects
any object

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
ID property

Summary
Specifies an alternate ID for objects.

Syntax
set the altID of object to IDNumber

Example Code
put the altID of this card into myID repeat while the altID of stack myStack <> 0

Comments
Use the altID property to specify an additional ID for an object. Both the ID and the altID property are checked when you
refer to an object by ID.

Value:
The altID property of an object is a non-negative integer.

By default, the altID for all objects is zero.
Comments:
This property can be used to ensure compatibility with imported SuperCard and HyperCard stacks that assume buttons and
fields are created with sequential IDs. You can also use the altID of a stack as a consistent way of referring to it, since the
ID of a stack changes every time an object is created.

Gotcha: Be careful not to set an object's altID property to the ID of an object of the same type. Since both properties are
checked when you refer to an object by ID, doing this may cause the wrong object to be found because its altID property is
the same as the ID of the object you want. 62
 
62 Page 63 64
Page 63
altKey function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
commandKey function, controlKey function, down constant, keyDown message, keysDown function, keyUp message,
metaKey function, mouse function, optionKey function, optionKeyDown message, shiftKey function, up constant

Summary
Returns the state of the Alt key.

Syntax
the altKey
altKey()

Example Code
put the altKey into keyState if the altKey is down then exit mouseUp

repeat until altKey() = up
Comments
Use the altKey function to check whether the Alt key, Meta key, or Option key is being pressed. You can use altKey to add
alternative capabilities to user actions such as clicking.

Value:
The altKey function returns down if the key is pressed and up if it's not.

Comments:
The altKey, optionKey, and metaKey functions all return the same value. Which one to use is a matter of preference.

The terminology varies depending on platform. Users of different operating systems may know this key as the Option key
(Mac OS systems), Meta key (Unix systems), or Alt key (Windows systems). 63
 
63 Page 64 65
Page 64
alwaysBuffer property
Synonyms
Objects
image, player, stack

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
bufferHiddenImages property, pixmapID property, screenNoPixmaps property, screenSharedMemory property, windowID
property, Why am I running out of memory?

Summary
Determines whether the contents of windows, players, and images are buffered offscreen.

Syntax
set the alwaysBuffer of {stack | image | player} to {true | false}

Example Code
set the alwaysBuffer of this stack to true set the alwaysBuffer of image "Smile" to false

set the alwaysBuffer of the templatePlayer to true
Comments
Use the alwaysBuffer property to eliminate unwanted flicker when objects are being redrawn. This property is especially
useful for eliminating flicker when using animation in a stack.

Value:
The alwaysBuffer of an object is true or false. By default, the alwaysBuffer property of newly created images, players, and
stacks is set to false.

Comments:
When moving objects are displayed on the screen, flicker may result, since the objects are being redrawn as they move.
You can avoid this problem by judicious use of the alwaysBuffer property, which creates an offscreen memory area in which
objects are initially drawn. The visible display is updated from this buffer area, eliminating flicker.

Setting a stack's alwaysBuffer property to true eliminates flicker, but increases memory usage because memory must be
allocated for the buffer. To make most efficient use of memory, Revolution automatically buffers stacks under the following
circumstances:
ï visual effects are being executed
ï the move command is operating
ï objects are selected
The alwaysBuffer property overrides this behavior and ensures that the stack is always buffered.

You can find out whether a stack is currently being buffered by comparing its pixmapID property to its windowID property:
if these two properties are not the same, the stack is buffered.

Setting an image's alwaysBuffer property to true forces the image to uncompress immediately, even if the image is hidden.
This speeds up using the show command to display an image. Setting the alwaysBuffer property of all images to true is
equivalent to setting the global bufferHiddenImages property to true.

Setting a player's alwaysBuffer property to true forces the movie to be drawn in an offscreen buffer. This prevents the
movie from flickering when other objects (such as buttons) are drawn on top of it. It also allows the current frame to be
seen when the card is printed.

If a player's movie contains only sound with no visual track, the setting of its alwaysBuffer property has no effect.
If a player's alwaysBuffer is false, the movie it contains is drawn in front of all objects. The visual effect command does not
affect the screen area inside the rectangle of a player whose alwaysBuffer is false. If a player's alwaysBuffer is true, it
cannot be controlled with the controller bar and must be operated by script control. 64
 
64 Page 65 66
Page 65
Note: Setting a player's alwaysBuffer to true always increases memory usage, and may make movie playing more jerky. 65
 
65 Page 66 67
Page 66
and operator
Synonyms
Objects
logical

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
bitAnd operator, false constant, not operator, or operator, true constant, Operator Precedence Reference

Summary
Evaluates to true if both operands are true, false otherwise.

Syntax
value1 and value2

Example Code
(1 > 0) and (1 = 0) --evaluates to false (1 > 0) and (1 = 1) and (0 = 0) --evaluates to true

if the shiftKey is down and myCount > 1 then exit mouseUp
Comments
Use the and operator to combine two or more logical values.

Parameters:
The value1 and value2 are true or false, or expressions that evaluate to true or false.

Comments:
If value1 is false or value2 is false, or if both value1 and value2 are false, then the and operation evaluates to false. If
value1 and value2 are both true, the expression value1 and value2 evaluates to true.

You can combine the logical operators and, or, and not in an expression.
Note: Transcript uses what is known as "short-circuit evaluation" for logical operators. This means that value1 is evaluated
first. If value1 is false, the expression value1 and value2 is false regardless of what value2 is (because the expression
evaluates to false unless both the values are true). In this case, Revolution does not evaluate value2, since doing so is not
necessary to determine the value of value1 or value2. For example, evaluating the expression asin( 2) normally causes an
execution error (because 2 is not a legal argument for the arc sine function), but evaluating the expression (1 = 0) and
(asin( 2) = 1) does not cause an error: since (1 = 1) is always false, the whole statement is always false and Revolution
never tries to evaluate the asin function. 66
 
66 Page 67 68
Page 67
angle property
Synonyms
Objects
graphic, image

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
arcAngle property, polySides property, revRotatePoly command, rotate command, startAngle property

Summary
Specifies the starting angle of an arc or the rotation angle of a regular polygon or image.

Syntax
set the angle of {graphic | image} to angleInDegrees

Example Code
set the angle of graphic "Triangle" to 180 set the angle of image ID 45902 to it

set the angle of graphic myGraphic to the angle of myGraphic + 5
Comments
Use the angle property to create an arc shape, or to turn a regular polygon or image object.

Value:
The angle of a graphic or image is an integer between zero and 360.

By default, the angle property of a newly created graphic or image is zero.
Comments:
If you specify an angleInDegrees greater than 360, the angle is set to the number you specify mod 360.

A regular polygon can be rotated between zero and 360 . . Increasing the angleInDegrees rotates the polygon clockwise.
You can specify the angle of a graphic that is not a regular polygon, but it has no effect on the graphic's appearance.

An image can be rotated between zero and 360 . . Increasing the angleInDegrees rotates the image counterclockwise.
Unlike the rotate command, the angle property affects only the screen display of the image, not the actual picture data in it.
Changing an image's angle does not change the imageData of the image. Repeated changes to the angle property, unlike
repeated uses of the rotate command, do not degrade the image's quality. The rotate command cannot be used on a
referenced image, but the angle of a referenced image can be set.

By default, oval graphics display their entire arc from zero to 360 . , forming a complete oval. You can use the angle and
arcAngle properties to specify a portion of the oval to be displayed. The angle property determines the starting point of the
arc. Zero is at the right edge, 3 o'clock. Increasing the angle moves the starting point counter-clockwise around the arc.
(The direction of rotation for an arc is opposite the direction of rotation for a polygon.) For example, if the angle is 90, the
arc starts at the top edge of the graphic's rectangle, 12 o'clock.

Note: For an oval, the angle is the same as the startAngle. Changing one changes the other.
Changes to Transcript:
The ability to set the angle of an image was introduced in version 2. 0. In previous versions, the angle property applied only
to graphics. 67
 
67 Page 68 69
Page 68
annuity function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
compound function, round function

Summary
Computes the value of an annuity given an interest rate and a number of payments.

Syntax
annuity( interestRate, numberOfPeriods)

Example Code
annuity(. 08,10) annuity( currentAnnualRate/ 12, monthsOfLoan)

Comments
Use the annuity function to calculate the present or future value of an annuity or to calculate loan payments.

Parameters:
The interestRate is a positive number. The interestRate is expressed as a fraction of 1 so, for example, an 8% rate is written
.08.

The numberOfPeriods is a positive number.
Value:
The annuity function returns a positive number.

Comments:
The formula for the value of an ordinary annuity is
(1 -(1 + interestRate)^(-numberOfPeriods))/ interestRate
The annuity function calculates this value.

The numberOfPeriods and the interestRate must use the same unit of time. For example, if the periods are months, the
interest rate is the interest per month.

You can use the annuity function to calculate the amount of loan payments as follows:
paymentAmount = totalAmount/ annuity( rate, periods)
For example, if the loan is for $2500 at an interest rate of 2% per month and is to be repaid in a year, the monthly payment
is 2500/ annuity(. 02,12) or $236.40. 68
 
68 Page 69 70
Page 69
answer command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
answer color command, answer effect command, answer file command, answer folder command, answer printer command,
ask command, gRevAppIcon keyword, gRevSmallAppIcon keyword, it keyword, modal command, Why doesn't the ask or
answer dialog appear in my standalone?, Recipe for Hello World, Recipe for speaking an alert message

Summary
Displays a dialog box with a message and up to seven buttons.

Syntax
answer [iconType] prompt [with button1 [or buttons]]

[titled windowTitle] [as sheet]
Example Code
answer "Go ahead?" with "Yes" or "No" or "Maybe" answer information filesProcessed && "files were exported."

answer "Greetings!" with "Log In" or "Cancel" titled "Login" answer the currPrompt of me with "OK" or "Cancel" as sheet

Comments
Use the answer command to get information or a confirmation from the user before continuing. The user must click one of
the buttons to dismiss the dialog box.

Parameters:
The iconType parameter is one of the following types: information, question, error, or warning. The icon is displayed on the
left side of the dialog box. If you don't specify an icon, none is displayed.

Cross-platform note: On OS X systems, the image specified by the gRevAppIcon keyword appears if you don't specify an
iconType. If you specify an iconType, the image specified by the gRevSmallAppIcon keyword appears instead, along with
the standard icon specified by the iconType.

The prompt is a string (or any expression that evaluates to a string). The dialog box expands if necessary to fit the
contents.

The buttons are strings. You can specify up to seven buttons, separated by the word "or". The buttons and the dialog box
expand if necessary to fit the button names; the total number of characters in the buttons is limited only by the maximum
dialog box size and the font size. The last button you specify is the default button. (Pressing Return or Enter is equivalent to
clicking the default button.) If you don't specify any button names, the dialog box contains a single OK button.

The windowTitle, if specified, appears in the title bar of the dialog box. If you don't specify a windowTitle, the title bar is
blank.

Comments:
The prompt can be either formatted text (in the htmlText property's format) or plain text. If the prompt contains <p> or a
start/ end tag pair, the answer command assumes the text is in the same format as the htmlText property. Otherwise, the
answer command assumes the text is plain text.

The name of the button the user chooses is placed in the it variable.
The position and appearance of the dialog box varies between platforms. On Mac OS systems, the dialog box is centered on
the screen; on Unix and Windows systems, the dialog box is centered over the active window. On Windows systems, the
buttons are shown in reverse order (the first button is on the right side). 69
 
69 Page 70 71
Page 70
On OS X systems, the image specified in the gRevAppIcon variable appears as the application icon in the answer dialog box
(unless the answer... as sheet form is used). If you specify an iconType, the image specified in the gRevSmallAppIcon
variable is used instead, along with the special icon specified by the iconType.

If the as sheet form is used, the dialog box appears as a sheet on OS X systems. On other systems, the as sheet form has
no effect and the dialog box appears normally. Attempting to open a sheet from within another sheet displays the second
stack as a modal dialog box instead.

Changes to Transcript:
The answer... as sheet form was introduced in version 2. 0.

The ability to provide formatted text for the prompt was introduced in version 2. 0. 70
 
70 Page 71 72
Page 71
answer color command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
answer command, backgroundColor property, colorNames function, colors property, foregroundColor property, it keyword,
About colors and color references, Color Names Reference, Recipe for translating a color name to an RGB numeric triplet,
Text menu > Color

Summary
Displays the operating system's standard color-selection dialog box.

Syntax
answer color [with startingColor]

Example Code
answer color if theItem is "Custom Color..." then answer color

answer color with "# FF0033" answer color with "AliceBlue"

Comments
Use the answer color command to select a custom color.

Parameters:
The startingColor is a color reference consisting of one of the following:
ï a standard color name
ï three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue
ï an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and
blue.

Comments:
The answer color command displays a dialog box where the user can select a color. (This dialog box is displayed by the
operating system, not by Revolution.)

The color the user chooses is placed in the it variable. If the user cancels the dialog, the it variable is set to empty, and the
result function returns "Cancel".

If you specify a startingColor, the dialog box displays that color by default.
The color is returned in the form of three comma-separated integers between zero and 255, specifying the level of each of
red, green, and blue. This format can be used directly to set any color property.

Changes to Transcript:
The option to specify a startingColor was introduced in version 1. 1. 1. In previous versions, the dialog box displayed white
by default. 71
 
71 Page 72 73
Page 72
answer effect command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Not supported on UNIX systems

See Also:
answer command, answer record command, hide command, QTEffects function, show command, visual effect command,
How to find out whether QuickTime is available

Summary
Displays the QuickTime special effects dialog box.

Syntax
answer effect

Example Code
answer effect if the altKey is down then answer effect

Comments
Use the answer effect command to choose a visual effect, or to set up an effect with complex options for later use.

Comments:
The answer effect command displays a dialog box where the user can select a visual effect and (for some effects) set
parameters such as speed and direction. (This dialog box is displayed by QuickTime, not by Revolution.)

An encoded description of the visual effect the user chooses is placed in the it variable. You can either use the encoded
description immediately, or store it (for example, in a variable or in a custom property) for later use. To display the effect,
use the encoded description with the visual effect command, with the unlock screen command, or with the hide with visual
effect or show with visual effect form of the hide or show command.

If the user cancels the dialog, the it variable is set to empty, and the result function returns "Cancel". 72
 
72 Page 73 74
Page 73
answer file command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems
Note: this command works differently across platforms.

See Also:
answer command, answer folder command, ask file command, files function, it keyword, revMacFromUnixPath function,
revUnixFromMacPath function, systemFileSelector property, About filename specifications and file paths, How to list the
contents of a folder, Why can't Revolution find a file I specified?, Why doesn't Revolution recognize a stack file?

Summary
Displays a standard file dialog for the user to select a file.

Syntax
answer file prompt [with defaultPath] [{ with filter | of type} types]

[titled windowTitle] [as sheet]
Example Code
answer file "Select a file to delete:" answer file "Input:" with "/ Macintosh HD/"

answer file (field "Prompt") of type "RSTK" --shows stacks answer file empty with filter "JPEGs,*. jpg" --shows JPEGs

Comments
Use the answer file command when a handler needs the file path of a file before continuing.

Parameters:
The prompt is a string (or any expression that evaluates to a string). If you specify empty, no prompt appears.

The defaultPath is the name and location of the folder whose contents are listed when the dialog box appears. If no
defaultPath is specified, the dialog box lists the contents of the last folder you used with a file dialog box.

The windowTitle, if specified, appears in the title bar of the dialog box. If no windowTitle is given, the title bar is blank. (This
parameter has no effect on Mac OS systems, because Mac OS file dialog boxes don't have a title bar.)

Use the types parameter to specify which files should appear and be available for selection.
Comments:
The dialog box displayed is the same one most programs use for the "Open" command in the File menu.

The absolute file path of the file the user chose is placed in the it variable. If the user cancels the dialog, the it variable is
set to empty, and the result function returns "Cancel".

Important! The answer file command does not open the file. It only displays the dialog box and retrieves the path to the
file the user specifies.

If the as sheet form is used, the dialog box appears as a sheet on OS X systems. On other systems, the as sheet form has
no effect and the dialog box appears normally. Attempting to open a sheet from within another sheet displays the second
stack as a modal dialog box instead.

If the systemFileSelector property is set to false, Revolution's built-in dialog box is used instead of the operating system's
standard file dialog.

The way file types are specified depends on the platform: 73
 
73 Page 74 75
Page 74
Filtering for Mac OS: You can use either with filter or of type. With either form, the types parameter consists of one or more
4-character file types, concatenated. For example, to display text and PICT-format files but no others, use a types
parameter of "TEXTPICT". To display applications only, use a types parameter of "APPL".

If the types string is shorter than four characters (on a Mac OS system), the files are not filtered: all files appear in the
dialog box.

Filtering for OS X: Works the same as filtering for Mac OS, except that if one of the file types is "APPL", the dialog box
displays application bundles as well as single-file applications.

Filtering for Unix: You must use the with filter form if you want to specify one or more types: the of type form can't be
used on Unix systems. The types parameter consists of a single wildcard expression.

Filtering for Windows: You must use the with filter form to specify one or more types: the of type form can't be used on
Windows systems. A file type consists of an optional description, a line feed or comma, and one or more file extension
specifications:

[description], *. extension [; *. extension...]
For example, to specify that only Revolution files should appear in the dialog box, use this statement. The description
"Revolution files" is visible to the user at the bottom of the dialog, and only files with the extension ". rev" are shown:

answer file myPrompt with filter "Revolution files,*. rev"
You can specify more than one file extension for a single description. For example, to specify that only JPEG, GIF, and PNG
files should appear, use this statement:

answer file myPrompt with filter "Web Graphics,*. jpg;*. gif;*. png"
You can include several descriptions, along with their file types, by separating them with commas. The descriptions appear
in the list at the bottom of the file dialog box. For example, if you want to display all text and Microsoft Word files, use this
command:

answer file myPrompt with filter "Text files,*. txt, MS Word files,*. doc"
Tip: If a set of filters is complex or if you use them in several places, it may be easier to put them into a variable, then
use that variable in the answer file command.

Changes to Transcript:
The ability to use answer file... of type "APPL" to designate an OS X application bundle was introduced in version 2. 0. In
previous versions, the APPL file type showed only atomic files of type "APPL".

The answer file... as sheet form was introduced in version 2. 0. 74
 
74 Page 75 76
Page 75
answer folder command
Synonyms
answer directory

Objects

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
answer command, answer file command, ask file command, it keyword, systemFileSelector property, About filename
specifications and file paths

Summary
Displays a standard file dialog for the user to choose a folder.

Syntax
answer folder prompt [with defaultPath] [as sheet]

Example Code
answer folder "Please choose a folder:" if it is empty then answer folder chooseMsg as sheet

answer folder "Where is the data?" with "../ data_ stacks/ recent"
Comments
Use the answer folder command when you want the user to choose a folderófor example, as a destination for exported files.

Parameters:
The prompt is a string (or any expression that evaluates to a string). If you specify empty, no prompt appears.

The defaultPath is the name and location of the folder whose contents are listed when the dialog box appears. If no
defaultPath is specified, the dialog box lists the contents of the last folder you used with a file dialog box.

Comments:
The absolute file path of the folder the user selects is placed in the it variable. If the user cancels the dialog, the it variable
is set to empty, and the result function returns "cancel".

If the as sheet form is used, the dialog box appears as a sheet on OS X systems. On other systems, the as sheet form has
no effect and the dialog box appears normally. Attempting to open a sheet from within another sheet displays the second
stack as a modal dialog box instead.

If the systemFileSelector property is set to false, Revolution's built-in dialog box is used instead of the operating system's
standard file dialog.

Changes to Transcript:
The answer folder... as sheet form was introduced in version 2. 0. 75
 
75 Page 76 77
Page 76
answer printer command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Not supported on UNIX systems
Note: this command works differently across platforms.

See Also:
answer command, open printing command, print command, printMargins property, printRotated property,
revShowPrintDialog command, How to display the print settings dialog box, How to print in landscape mode, File menu >
Page Setup...

Summary
Displays the operating system's standard Print dialog box.

Syntax
answer printer

Example Code
answer printer if the commandKey is down then answer printer

Comments
Use the answer printer command to set standard printing options for later printing.

Comments:
The answer printer command displays a dialog box where the user can set certain print-related properties. (This dialog is
displayed by the operating system, not by Revolution.)

The exact options are determined by the printer driver and the operating system.
Cross-platform note: On Mac OS systems, the answer printer command displays the Page Setup dialog. You can display
the standard Print dialog on a Mac OS system using open printing with dialog. 76
 
76 Page 77 78
Page 77
answer record command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Not supported on UNIX systems

See Also:
answer command, answer effect command, dontUseQT property, play command, record sound command, recordChannels
property, recordCompression property, recordFormat property, recordRate property, recordSampleSize property, How to
find out whether QuickTime is available

Summary
Displays the QuickTime sound-recording settings dialog box.

Syntax
answer record

Example Code
answer record if the alreadyHaveSettings of this card is false then answer record

Comments
Use the answer record command to specify settings for use with the record sound command.

Comments:
The answer record command displays a dialog box where the user can select a sound compression format, rate, sampling
rate, and whether to record in mono or stereo. Depending on the compression format, other options may also be offered.
(This dialog box is displayed by QuickTime, not by Revolution.) The settings the user chooses will be used the next time the
record sound command is used.

The answer record command sets the recordCompression, recordRate, recordSampleSize, and recordChannels properties in
accordance with the settings chosen in the dialog box. To save the settings you choose in the dialog box and use them later
without re-displaying the dialog, save the values of these properties, then restore them when you want to record sound.

If the user cancels the dialog, the result function returns "Cancel", and the recording-related properties are unchanged.
If the dontUseQT property is set to true, the answer record command cannot be used, and the result returns "could not
initialize quicktime". 77
 
77 Page 78 79
Page 78
any keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
first keyword, last keyword, middle keyword, number property, random function, randomSeed property, How to shuffle the
items or lines in a container, Recipe for an Elizabethan insult generator

Summary
Designates a randomly chosen member of a set.

Syntax

Example Code
put any word of field "Dictionary" into wordOfTheDay go to any card --goes to a random card in the stack

select any button
Comments
Use the any keyword to specify a random object of a specified type, or to designate a random chunk in a chunk expression.

Comments:
The any keyword does not examine every member of a set; it specifies just one member of the set, randomly chosen. For
example, the expression
if myString is in any field
checks whether myString is in a randomly chosen field, not whether myString is somewhere in one of the fields on the card. 78
 
78 Page 79 80
Page 79
appleEvent message
Synonyms
Objects
card

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Not supported on Windows systems
Not supported on UNIX systems

See Also:
address property, open process command, reply command, request appleEvent command, request command, send to
program command, signal message, How to respond to double-clicking a file for Mac OS or OS X

Summary
Sent to the current card whenever the application receives an Apple event.

Syntax
appleEvent class, ID, sender

Example Code
on appleEvent theClass, theID --execute a set of statements in a text file if theClass is "misc" and theID is "dosc" then

request appleEvent data --get the content of the AppleEvent do URL (" file:" & it)
end if pass appleEvent
end appleEvent
Comments
Handle the appleEvent message to respond to a custom Apple event, or one that you want to handle specially.

Parameters:
The class and ID together identify the exact Apple event that was received.

The class parameter is the event class: possible classes include aevt (for required Apple Events such as "open document"
and "print"), misc (for miscellaneous events such as "do script"), and others.

The ID parameter is the name of the specific Apple event.
The sender parameter is the address of the process that sent the Apple event.
Comments:
Use the request appleEvent command to obtain the data associated with an Apple event.

For more information about Apple events, see Apple Computer's technical documentation, Inside Macintosh: Interapplication
Communication, located at <http:// developer. apple. com/ techpubs/ mac/ IAC/ IAC-2. html>. 79
 
79 Page 80 81
Page 80
arcAngle property
Synonyms
Objects
graphic, global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
angle property, startAngle property

Summary
Specifies the angle used to draw an arc.

Syntax
set the arcAngle [of graphic] to angleInDegrees

Example Code
set the arcAngle to myAngle --affects ovals drawn with the paint tools set the arcAngle of graphic "Over" to theAngle

Comments
Use the arcAngle property to create an arc shape from an oval graphic, or to cause the Oval paint tool to draw arcs.

Value:
The arcAngle of a graphic is an integer between zero and 360.

By default, the arcAngle property of a newly created graphic is 360.
Comments:
By default, ovals display their entire arc from zero to 360 . , forming a complete oval. Use the startAngle and arcAngle
properties to specify that only a portion of the oval, forming an arc, should be drawn.

The arcAngle determines how much of the oval is used to form the arc, from zero (no arc) to 360 (a full oval). For example,
if the angleInDegrees is 90, a quarter-oval arc is displayed.

The global setting of the arcAngle property controls the appearance of arcs drawn with the paint tools. Once a paint arc is
drawn, its appearance cannot be changed by changing the global arcAngle property. 80
 
80 Page 81 82
Page 81
armBorder property
Synonyms
Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
armFill property, autoArm property, borderColor property

Summary
Determines whether a button is drawn with a border when armed.

Syntax
set the armBorder of button to {true | false}

Example Code
set the armBorder of button "Styles" to true set the armBorder of button nextButton to false

if the armBorder of button ID 3 then add 1 to theCounter
Comments
Use the armBorder property to control the appearance of an armed button.

Comments:
The color and pattern of the border are specified by the button's borderColor and borderPattern properties.

If the button's threeD or border property is true, the armBorder property has no effect and the border does not appear. 81
 
81 Page 82 83
Page 82
armed property
Synonyms
arm

Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
accentColor property, armBorder property, armFill property, autoArm property

Summary
Specifies whether a button has a changed (active) appearance due to the mouse pointer moving into it

Syntax
set the armed of button to {true | false}

Example Code
set the armed of first button to false if the armed of button "Font" then showFontSamples

Comments
Check the armed property to determine whether a button's menu is openóthat is, whether the user is in the process of
choosing an item from the menu. You can also set a button's armed property to change its appearance.

Comments:
A button's armed property is analogous to its hilite property. A button is usually armed when the mouse pointer moves into
it. You can automate this behavior by setting the button's autoArm property to true.

The appearance of an armed button is determined by its armBorder and armFill properties.
Changes to Transcript:
The armed keyword was introduced in version 1. 1. In previous versions, the arm synonym was used. 82
 
82 Page 83 84
Page 83
armedIcon property
Synonyms
Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
autoArm property, icon property, showIcon property, Why do icons disappear from a standalone application?

Summary
Specifies an image to display in a button when the mouse pointer enters it.

Syntax
set the armedIcon of button to {imageID | imageName}

Example Code
set the armedIcon of button "Trigger" to 2245

Comments
Use the armedIcon property to change a button's appearance when it is armed.

Value:
The armedIcon property is the ID or name of an image to use for an icon. Revolution looks for the specified image first in
the current stack, then in other open stacks.

By default, the armedIcon property of newly created buttons is set to zero.
Comments:
If the button's autoArm property is false, the setting of the armedIcon property has no effect. 83
 
83 Page 84 85
Page 84
armFill property
Synonyms
Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
accentColor property, armed property, armBorder property, autoArm property, hiliteColor property

Summary
Determines whether a button menu is drawn with a border when armed.

Syntax
set the armFill of button to {true | false}

Example Code
set the armFill of button "Go Menu" to true

Comments
Use the armFill property to control the appearance of an armed menu item.

Value:
The armFill is true or false.

By default, the armFill property of newly created buttons is set to false.
Comments:
When armed, the button is filled with the color specified by the accentColor property.

If the button's style property is not set to "menu", you can set the button's armFill property, but it has no effect.
If the button's showBorder property is true, the armFill property has no effect and the button's fill color does not change
when the button is armed. 84
 
84 Page 85 86
Page 85
arrow constant
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
constant command, cursor property, one constant

Summary
Equivalent to the number 1.

Syntax

Example Code
set the cursor to arrow

Comments
Use the arrow constant to set the cursor to an arrow shape.

Comments:
The following two statements are equivalent:

set the cursor to arrow
set the cursor to 1

However, the first is easier to read and understand in Transcript code.
Important! If you use the arrow cursor or other standard cursors in your application, you must include the cursors when
you create your standalone. Make sure the "Cursors" option on the Inclusions tab in Step 3 of the Distribution Builder is
checked. 85
 
85 Page 86 87
Page 86
arrowKey message
Synonyms
Objects
button, field, card

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
keyDown message, navigationArrows property, selectionChanged message, textArrows property, How to block or change
the action of arrow keys

Summary
Sent to the active (focused) control, or to the current card if no control is focused, when the user presses an arrow key.

Syntax
arrowKey {up | down | left | right}

Example Code
on arrowKey theKey --make Up arrow go to the first card if theKey is "up" then go to card 1

else pass arrowKey end arrowKey

Comments
Handle the arrowKey message if you want to do something special when the user presses an arrow key.

Parameters:
The parameter indicates which arrow key was pressed.

Comments:
If the arrowKey handler does not pass the message or send it to a further object in the message path, Revolution does not
perform the usual arrow key action (moving the insertion point, moving the selected object, or navigating to another card).
Passing the message lets the arrow key action take place.

If the focused control is part of a group, and the group's tabGroupBehavior property is set to true, no arrowKey message is
sent when the user presses an arrow key.

Note: Sending an arrowKey message does nothing unless there is an arrowKey handler in the message path. This is a
difference from HyperTalk's handling of the arrowKey message. 86
 
86 Page 87 88
Page 87
arrowSize property
Synonyms
Objects
graphic

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
endArrow property, lineSize property, startArrow property

Summary
Specifies the size of an an arrow at one end of a line or polygon graphic.

Syntax
set the arrowSize of graphic to size

Example Code
set the arrowSize of last graphic to 20

Comments
Use the arrowSize property to change the size of arrows at the ends of lines and polygons.

Value:
The arrowSize of a graphic is a number between 1 and 65535.

By default, the arrowSize property of newly created graphics is set to 3.
Comments:
The arrow of a graphic is proportional to the graphic's lineSize; changing the lineSize increases or decreases the size of the
arrow, although the graphic's arrowSize property is not changed. If the lineSize is zero, the arrow is not visible.

Set the startArrow or endArrow properties to true to make the arrows visible.
You can set the arrowSize of graphics other than lines and polygons, but doing so has no effect. 87
 
87 Page 88 89
Page 88
as keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
do command, export command, go command, save command

Summary
Used with the do command to specify a scripting language; used with the export command to specify the file format to
export to; used with the go command to specify the mode of a stack; used with the save command to specify the file name
and location.

Syntax

Example Code
do field 1 as Javascript export me to file myFile as "PNG"

go stack "Controls" as palette save this stack as "../ Backups/ Current. rev"

Comments
Use the as keyword to modify the do, export, go, or save commands.

Comments:
Use the alternateLanguages function to find out which languages can be used with the do command on Mac OS and OS X
systems. 88
 
88 Page 89 90
Page 89
ascending keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
descending keyword, sort command

Summary
Used with the sort command to specify that sorting is in normal order (from less to greater).

Syntax

Example Code
sort this stack ascending by field "Order Number"

Comments
Use the ascending keyword to improve the clarity of your code. For example, if a handler contains several sort commands
and some are in descending order, you can use the ascending keyword explicitly to point up the fact that there are both
ascending and descending sorts.

Comments:
Since ascending is the default sort order, you never actually need to use the ascending keyword; if you leave it out, the sort
is performed in ascending order anyway. 89
 
89 Page 90 91
Page 90
asin function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
acos function, atan function, atan2 function, sin function

Summary
Returns the arc sine of a number in radians.

Syntax
the asin of number
asin( number)

Example Code
the asin of .225 sin( asin(. 5)) --returns .5

asin( pi/ 4 -sin( myAngle))
Comments
Use the asin function to find the arc sine of a number.

Parameters:
The number is a number between -1 and 1, or an expression that evaluates to such a number.

Value:
The asin function returns a number between ñpi/ 2 and pi/ 2.

Comments:
The arc sine of number is an angle whose sine is equal to number. In other words, asin is an inverse of the sin function.

The result of the asin function is returned in radians. To get this result in degrees, use the following custom function:
function asinInDegrees theMagnitude
return asin( theMagnitude) * 180 / pi
end asinInDegrees 90
 
90 Page 91 92
Page 91
ask command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
answer command, ask file command, ask password command, modal command, Why doesn't the ask or answer dialog
appear in my standalone?

Summary
Displays a dialog box with a question, a text box for the user to enter a response, and OK and Cancel buttons.

Syntax
ask [iconType] question [with defaultResponse] [titled windowTitle]

[as sheet]
Example Code
ask "What is your name?" ask "Please enter your occupation:" with "Geek"

ask field "Prompt" with firstGuess titled "Guess!" ask myPrompt as sheet

Comments
Use the ask command when a handler needs to get information from the user before continuing.

Parameters:
The iconType parameter is one of the following types: information, question, error, or warning. The icon is displayed on the
left side of the dialog box. If you don't specify an icon, none is displayed.

The question is a string (or any expression that evaluates to a string).
The defaultResponse is a string, and is placed in the text box when the dialog box appears. If no defaultResponse is
specified, the text box is empty when the dialog box appears.

The windowTitle appears in the title bar of the dialog box. If no windowTitle is given, the title bar is blank.
Comments:
The contents of the text box is placed in the it variable. If the user cancels the dialog, the it variable is set to empty and the
result function returns "cancel".

If the ask... as sheet form is used, the dialog box appears as a sheet on OS X systems. On other systems, the as sheet form
has no effect and the dialog box appears normally. Attempting to open a sheet from within another sheet displays the
second stack as a modal dialog box instead.

Changes to Transcript:
The ability to specify an iconType was added in version 2. 0. In previous versions, no icon was displayed.

The ask... as sheet form was introduced in version 2. 0.
The ability to provide formatted text for the prompt was introduced in version 2. 0. 91
 
91 Page 92 93
Page 92
ask file command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems
Note: this command works differently across platforms.

See Also:
answer file command, answer folder command, ask command, dontUseNS property, it keyword, modal command,
systemFileSelector property, Why can't Revolution find a file I specified?

Summary
Displays a standard Save dialog for the user to enter a file name and specify a location.

Syntax
ask file prompt [with defaultFilePath] [with filter types] [as sheet]

Example Code
ask file "Please name the file:" ask file "Save data as" with "/ HD/ Data Stacks/ filedata. rev" as sheet

ask file empty with "Untitled" --no prompt ask file "Export picture as:" with filter "JPEG file,*. jpg"

Comments
Use the ask file command to let the user provide the name and location of a new file.

Parameters:
The prompt is a string (or any expression that evaluates to a string). If you specify empty, no prompt appears.

The defaultFilePath consists of a folder path, or a suggested file name, or both. The filename is the portion of the path after
the last slash character (/). If a folder path is provided in the defaultFilePath, the dialog box shows the contents of that
folder. Otherwise, it shows the contents of the last folder you used with a file dialog box. If a suggested file name is
provided in the defaultFilePath, it appears in the file name box.

The types parameter specifies which extensions are available at the bottom of the dialog box. A file type consists of an
optional description, a line feed or comma, and a file extension specification:

[description],*. extension
You can include more than one file type by separating the file types with commas.
Cross-platform note: The types parameter applies only to Windows systems. On Mac OS and Unix systems, this
parameter has no effect.

Comments:
The dialog box is the same one most applications use for the "Save" command in the File menu. (If the systemFileSelector
property is set to true on Mac OS and Windows systems, and always on Unix systems, the application displays its own built-in
dialog box, instead of the one provided by the operating system.)

The absolute file path of the file the user chose is placed in the it variable. If the user cancels the dialog, the it variable is
set to empty, and the result function returns cancel.

Important! The ask file command does not create the file. It only displays the dialog box and retrieves the path to the file
the user specifies.

If the as sheet form is used, the dialog box appears as a sheet on OS X systems. On other systems, the as sheet form has
no effect and the dialog box appears normally. Attempting to open a sheet from within another sheet displays the second
stack as a modal dialog box instead. 92
 
92 Page 93 94
Page 93
If the systemFileSelector property is set to false, Revolution's built-in dialog box is used instead of the operating system's
standard file dialog.

Cross-platform note: On Mac OS systems where Navigation Services is in use, if you don't specify a default file name, the
file name box contains "untitled". On Unix and Windows systems, the file name box is empty when the dialog box appears.

Changes to Transcript:
The ask file... as sheet form was introduced in version 2. 0. 93
 
93 Page 94 95
Page 94
ask password command
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
ask command, modal command, Why doesn't the ask or answer dialog appear in my standalone?

Summary
Displays a dialog box like the ask command, but with the characters the user types displayed as asterisks (*) for privacy.

Syntax
ask password [clear] question [with defaultAnswer]

[titled windowTitle] [as sheet]
Example Code
ask password clear "Password for the remote server:" ask password "Please log in." titled "Millenium Group Intranet"

ask password empty with savedPassword as sheet
Comments
Use the ask password command to provide privacy for the information the user types. For example, if the user is in a public
place, the information might be seen by someone looking over his or her shoulder. This command encrypts the text the user
types, so you can also use ask password to implement a secret password.

Parameters:
The prompt is a string (or any expression that evaluates to a string).

The defaultResponse is placed in the text box when the dialog box appears. If no defaultResponse is specified, the text box
is empty when the dialog box appears.

The windowTitle, if specified, appears in the title bar of the dialog box. If no windowTitle is given, the title bar is blank.
Comments:
The encrypted contents of the text box is placed in the it variable. If the user cancels the dialog, the it variable is set to
empty, and the result function returns "cancel".

If the ask password clear form is used, the text box is not encrypted, and the it variable contains whatever the user
entered.

If the ask password... as sheet form is used, the dialog box appears as a sheet on OS X systems. On other systems, the as
sheet form has no effect and the dialog box appears normally. Attempting to open a sheet from within another sheet
displays the second stack as a modal dialog box instead.

Changes to Transcript:
The ask password... as sheet form was introduced in version 2. 0. 94
 
94 Page 95 96
Page 95
at keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
after keyword, before keyword, put command

Summary
Used with the click, play, and prepare commands to specify a point on the screen. Also used with the read from file, read
from process, and write to file commands to specify where to begin reading or writing.

Syntax

Example Code
click at 140,200 play videoClip "Movie" at the clickLoc

read from file myFile at numOfChars until end
Comments
Use the at keyword to specify where to click or where to start reading or writing.

Comments:
A point consists of two numbers: a vertical and horizontal distance from the top left of the current stack, separated by a
comma. 95
 
95 Page 96 97
Page 96
atan function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
acos function, asin function, atan2 function, pi constant, tan function

Summary
Returns the arc tangent of a number in radians.

Syntax
the atan of number
atan( number)

Example Code
atan( 0) atan( tan(-1)) --returns -1

the atan of vectorMagnitude
Comments
Use the atan function to find the arc tangent of a number.

Parameters:
The number is a positive or negative number, or an expression that evaluates to a number.

Value:
The atan function returns a number between ñpi/ 2 and pi/ 2.

Comments:
The arc tangent of number is an angle whose tangent is equal to number. In other words, atan is an inverse of the tan
function.

The result of the atan function is returned in radians. To get this result in degrees, use the following custom function:
function atanInDegrees theMagnitude
return atan( theMagnitude) * 180 / pi
end atanInDegrees 96
 
96 Page 97 98
Page 97
atan2 function
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
acos function, asin function, atan function, pi constant, tan function

Summary
Returns the arc tangent of one number divided by another, using the sign of both.

Syntax
atan2( yCoordinate, xCoordinate)

Example Code
atan2(-1,-1) --returns 4/ 3 * pi atan2( thisNumber, thatNumber)

Comments
Use the atan2 function to find the arc tangent of one number divided by another when sign is significant.

Parameters:
The yCoordinate is a number or an expression that evaluates to a number.

The xCoordinate is a number or an expression that evaluates to a number.
Value:
The atan2 function returns a number between ñpi and pi.

Comments:
In most cases, atan2( y, x) is equal to atan( y/ x). However, if both x and y are negative, the sign of x/ y is positive. In this
case, the atan function returns an angle in the first quadrant, but the atan2 function returns an angle in the third quadrant.

The result of the atan2 function is returned in radians. To get this result in degrees, use the following custom function:
function atan2InDegrees firstArg, secondArg
return atan2( firstArg, secondArg) * 180 / pi
end atan2InDegrees 97
 
97 Page 98 99
Page 98
audioClip object
Synonyms
ac

Objects

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
templateAudioClip keyword, About object types and object references, How to list the audio clips and video clips in a stack,
File menu > Import As Control > Audio File...

Summary
An object type that contains sound data.

Syntax

Example Code
play pause audioClip theCurrentSoundtrack

Comments
Use the audioClip object type to play a sound that is stored in the stack, rather than in another file.

Comments:
Unlike a player, an audio clip contains the sound that it plays. This increases the memory required by your stack, because
the sound data is loaded into memory along with the rest of the stack whenever the stack file is open. However, it prevents
the sound from being accidentally separated from the stack file and lost.

Audio clips can be in WAV, AIFF, or AU format
An audio clip is contained in a stack. Audio clips cannot contain other objects. (An audio clip is not a control, since it has no
user interface and cannot be owned by a card.)

The audio clip object has a number of properties and messages associated with it. To see a list of messages that can be sent
to an audio clip as a result of user actions or internal Revolution events, open the "Transcript Language Dictionary" page of
the main Documentation window, and choose "Audio Clip Messages" from the Show menu at the top. To see a list of all the
properties an audio clip can have, choose "Audio Clip Properties" from the Show menu. 98
 
98 Page 99 100
Page 99
autoArm property
Synonyms
Objects
button

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
accentColor property, armBorder property, armFill property

Summary
Specifies whether a button becomes armed when the mouse pointer moves into it.

Syntax
set the autoArm of button to {true | false}

Example Code
set the autoArm of last button to false set the autoArm of button "Menu Choices" to true

Comments
Use the autoArm property to provide visual feedback to the user about which button the mouse pointer is over. Usually, the
autoArm property is used for buttons that are part of stack menus.

Value:
The autoArm of a button is true or false.

By default, the autoArm of newly created buttons is false. Menu items and cascading menu items created with the "New
Control" submenu of the Object menu have their autoArm property set to true when created.

Comments:
A button whose autoArm property is set to true does not receive mouseDown messages.

If a button's autoArm property is true, it receives keyDown and keyUp messages for keypresses that occur while the mouse
is pressed and the pointer is over the button. If the button's autoArm is false, it does not receive key messages while being
clicked. 99
 
99 Page 100 101
Page 100
autoHilite property
Synonyms
autohilight

Objects
button, field

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
enabled property, hilite property, listBehavior property, style property, How to change the highlight state of a checkbox or
button, How to detect the highlight state of a control, How to prevent changing a checkbox's state by clicking it, Why is the
selection lost when clicking a button?

Summary
Specifies whether a button highlights when it's pressed, or whether selected text in a field is highlighted.

Syntax
set the autoHilite of {button | field} to {true | false}

Example Code
set the autoHilite of last button to false if the autoHilite of me is false then beep

Comments
Use the autoHilite property to give visual feedback to users when they click a field or button.

Value:
The autoHilite of a button or field is true or false.

Comments:
If a button's autoHilite property is true, clicking it changes its appearance. This provides visual feedback to the user. (The
exact change in appearance depends on the style property of the button and on the current setting of the lookAndFeel
property.)

The button remains highlighted while the mouse is within it and the mouse button is down. If the user moves the mouse
outside the button while keeping the mouse button depressed, the button becomes unhighlighted. If the user then moves
the mouse back over the button, the button becomes highlighted again.

While the button is highlighted, its hilite property is also set to true.
If the button's style property is "checkbox" or "radioButton", clicking it turns the control on or off. If the button's style is
menu, the autoHilite has no effect.

If a field's autoHilite property is true, the user can move the text selection by clicking in the field, and text selected with the
select command is highlighted. If the field's autoHilite is false, user actions cannot change the selection or place the
insertion point in the field by clicking, although a handler can do so with the select command and the user can do so with
the arrow keys.

If a field whose listBehavior property is true also has its autoHilite property set to false, list behavior does not work for the
field, and a clicked line does not highlight. 100
 
100 Page 101 102
Page 101
autoTab property
Synonyms
Objects
field

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
enterKey message, returnInField message, returnKey message, tabKey message, tabStops property

Summary
Specifies whether pressing Return (or Enter) moves to the next field.

Syntax
set the autoTab of field to {true | false}

Example Code
set the autoTab of field "First Name" to true set the autoTab of field myField to false

if the autoTab of the target then go next card
Comments
Use the autoTab property to make data entry easier for single-line fields.

Value:
The autoTab of a field is true or false.

By default, the autoTab property of newly created fields is set to false.
Comments:
If the autoTab property of a field is false, pressing the Return key moves the insertion point to the next line of the field.

If the autoTab of a field is true, and the insertion point is already at the last visible line of the field, then pressing Return
advances to the next field on the card. 101
 
101 Page 102 103
Page 102
average function
Synonyms
avg

Objects

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
max function, median function, min function, round function, standardDeviation function, sum function

Summary
Returns the arithmetic mean of a list of numbers.

Syntax
average( numbersList)

Example Code
average( 6,22,8) --returns 12 put average( importedList) into field "Imported Price"

put average( replaceText( field "Values", return, comma)) into avgValue
Comments
Use the average function to find the value that best represents a group of values.

Parameters:
The numbersList is a comma-separated list of numbers, or an expression that evaluates to such a list, or an array
containing only numbers.

Value:
The average function returns a number.

Comments:
The average of a list of numbers is the sum of the items in the list or elements in the array, divided by the number of items
or elements.

The average function can also be written like this:
sum( numbersList)/ the number of items in numbersList
If the numbersList is empty, the average function returns zero.
Changes to Transcript:
The ability to use an array was introduced in version 1. 1. In previous versions, only lists of numbers could be used with the
average function. 102
 
102 Page 103 104
Page 103
back keyword
Synonyms
Objects
Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
backScripts function, front keyword, go command, insert script command, remove script command

Summary
Designates a location in the message path after an object's stack, or the most recently visited card.

Syntax

Example Code
insert the script of card button 9 into back go back

Comments
Use the back keyword to return to the most recently visited card, or to designate a backScript.

Comments:
When used with the go command, the back keyword designates the card the user visited most recently. The statement go
back returns to that card.

When used with the insert script or remove script command, the back keyword designates a backScript which is to be
placed in the message path after the stack. 103
 
103 Page 104 105
Page 104
backdrop property
Synonyms
Objects
global

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems
Note: this command works differently across platforms.

See Also:
backgroundColor property, backgroundPattern property, hide command, mouseDownInBackdrop message,
mouseUpInBackdrop message, screenRect function, About colors and color references, Color Names Reference, How to hide
other applications' windows, Recipe for translating a color name to an RGB numeric triplet, Edit menu > Preferences, View
menu > Backdrop

Summary
Places a solid or patterned background behind the application's windows, hiding any other applications.

Syntax
set the backdrop to {colorName | RGBColor | patternNumber | imageID | none}

Example Code
set the backdrop to "black" set the backdrop to "140,30,30"

set the backdrop to none --removes the backdrop
Comments
Use the backdrop property to create a kiosk mode, or to limit distractions during a movie or similar presentation.

Value:
The backdrop is a color reference or a pattern specifier.

The colorName is any standard color name.
The RGBColor consists of three comma-separated integers between zero and 255, specifying the level of each of red, green,
and blue; or an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red,
green, and blue.

A patternNumber is a built-in pattern number between 1 and 164. (These patterns correspond to Revolution's built-in
patterns 136 to 300.)

An imageID is the ID of an image to use for a pattern. Revolution looks for the specified image first in the current stack,
then in other open stacks.

By default, the backdrop is "none".
Comments:
Hiding other applications from the user is usually not recommended, since users may need or want to see other windows on
their system. However, the ability to do this can be very useful for some applications (such as kiosk systems or games) or
at times when you want to reduce distractions (such as during the playing of a movie).

Setting the backdrop property to "none" eliminates the backdrop and lets other windows be seen.
Pattern images can be color or black-and-white.
Cross-platform note: To be used as a pattern on Mac OS systems, an image must be 128x128 pixels or less, and both its
height and width must be a power of 2. To be used on Windows and Unix systems, height and width must be divisible by 8.
To be used as a fully cross-platform pattern, both an image's dimensions should be one of 8, 16, 32, 64, or 128.

Cross-platform note: On Mac OS systems, if you use the launch or open process commands to start up another
application, or if the user brings another application to the front, its windows appear in front of the backdrop. (The backdrop 104
 
104 Page 105 106
Page 105
remains visible even if the application is in the background.) Bringing the application to the front again hides the other
application behind the backdrop. On Unix and Windows systems, any windows you open after setting the backdrop property
remain in front of the backdrop, even if they belong to an application that is in the background.

If the system has multiple screens connected, the backdrop property affects only the main screen.
Pattern images can be color or black-and-white. To be used on Mac OS systems, patterns must be 128x128 pixels or less,
and both their height and width must be a power of 2. To be used on Windows and Unix systems, height and width must be
divisible by 8.

Changes to Transcript:
The backdrop pattern option was introduced in version 1. 1. In previous versions, the backdrop could be a solid color, but
not a pattern. 105
 
105 Page 106 107
Page 106
backgroundBehavior property
Synonyms
bgBehavior

Objects
group

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems

See Also:
backgroundIDs property, backgroundNames property, dynamicPaths property, HCAddressing property, pass control
structure, send command, About groups and backgrounds, About messages and the message path, How to automatically
include groups on a new card

Summary
Specifies whether a group is automatically placed on new cards, and whether the group comes after the cards it's on in the
message path.

Syntax
set the backgroundBehavior of group to {true | false}

Example Code
set the backgroundBehavior of last group to true if not the backgroundBehavior of me then send "mouseUp" to me

Comments
Use the backgroundBehavior property to make groups behave like HyperCard backgrounds, and to automatically place
groups on newly created cards.

Value:
The backgroundBehavior of a group is true or false.

By default, the backgroundBehavior property of newly created groups is set to false.
Note: If a stack created in a version of Revolution earlier than 1. 1 is opened in 1. 1 or later, the backgroundBehavior of all
its groups is set to true by default. This also applies to imported HyperCard stacks.

Comments:
A group's backgroundBehavior property controls two things: the message path of cards containing the group, and whether
the group is copied automatically to new cards.

When a message is sent to a card, it is sent next to any groups on the card whose backgroundBehavior property is set to
true (and that haven't already received the message). If you want a group to be in the message path for any card it is
placed on, set the group's backgroundBehavior to true.

When you create a new card, any groups on the current card whose backgroundBehavior is true are automatically placed on
the newly created card. If you create a group of objects that serves as a template for all cards, you should set the group's
backgroundBehavior to true so it will be automatically placed on new cards you create. (Only groups on the current card
when you use the create card command are automatically placed on the new card. Other groups are not automatically
placed, regardless of their backgroundBehavior setting.)

Note: Only groups whose backgroundBehavior is true appear in the list reported by the backgroundNames and
backgroundIDs properties. 106
 
106 Page 107 108
Page 107
backgroundColor property
Synonyms
backColor, secondColor, fillBack

Objects
any object

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems
Note: this command works differently across platforms.

See Also:
backdrop property, backgroundPattern property, borderColor property, bottomColor property, colorNames function, colors
property, effective keyword, focusColor property, foregroundColor property, hiliteColor property, owner property,
shadowColor property, topColor property, About colors and color references, Color Names Reference, How to get a striped
background in OS X, Why don't buttons respect my color settings?, Recipe for setting the red channel of an object, Recipe
for translating a color name to an RGB numeric triplet

Summary
Specifies an object's background color.

Syntax
set the backgroundColor of object to {empty | colorName | RGBColor}
set the backgroundColor of [chunk of] field to {empty| colorName| RGBColor}

Example Code
set the backgroundColor of last button to "white" set the backgroundColor of graphic 2 to 128,128,128 --gray

set the backgroundColor of word thisWord of field "Help!" to "# 808080" get the effective backgroundColor of this card

Comments
Use the backgroundColor property to change the background of a window, or the color that fills an object, or to change the
background color of text for a highlighted effect.

Value:
The backgroundColor of an object is a color reference.

The colorName is any standard color name.
The RGBColor consists of three comma-separated integers between zero and 255, specifying the level of each of red, green,
and blue; or an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red,
green, and blue.

By default, the backgroundColor for all objects is empty.
Comments:
Setting the backgroundColor of an object to empty allows the backgroundColor of the object's owner to show through. Use
the effective keyword to find out what color is used for the object, even if its own backgroundColor is empty.

If an object's backgroundPattern is set, the pattern is shown instead of the color specified by backgroundColor.
The setting of the backgroundColor property has different effects, depending on the object type:
ï The backgroundColor of a stack or card fills the entire stack window, as well as determining the backgroundColor of each
object in the stack or card that does not have its own backgroundColor.

Cross-platform note: On Mac OS, OS X, and Windows systems, if the backgroundColor of all objects in the object
hierarchy is empty, the background color set by the system is used.

ï The backgroundColor of a group determines the backgroundColor of each object in the group that does not have its own
backgroundColor. 107
 
107 Page 108 109
Page 108
ï The backgroundColor of a button fills the area inside the button's outline. If the button's style is "checkbox", the
backgroundColor fills the checkbox. If the button's style is "radioButton", the backgroundColor has no effect. If the button is
a tabbed button, the backgroundColor fills the tab area and the frontmost tab, but does not affect the other tabs.

Cross-platform note: If the lookAndFeel is set to "Appearance Manager", standard and rectangle buttons are drawn by the
operating system if the backgroundColor and backgroundPattern of the button and all of its owners is empty. (In this case,
none of the button's color properties have an effect except for the foregroundColor or foregroundPattern.) Otherwise, the
button is drawn by Revolution. If the lookAndFeel is "Appearance Manager", button menus whose menuMode is set to
"option" or "comboBox" are always drawn by the operating system, and the setting of the backgroundColor does not affect
them.

ï The backgroundColor of a field fills the area inside the field's outline. If you set the backgroundColor of a chunk of a field,
only that chunk is affected. For example, to create a "highlighter pen" effect on a single word, set the word's
backgroundColor to yellow. If a chunk of text contains runs of text with more than one background color, the
backgroundColor of that chunk reports "mixed".

If a field's backgroundColor is empty and the lookAndFeel property is set to "Macintosh", "Appearance Manager", or
"Windows 95", the field background is white, instead of inheriting its owner's color.

ï The backgroundColor of a scrollbar fills the arrow boxes at the ends of the scrollbar.
ï The backgroundColor of a graphic is displayed inside the graphic's border if the graphic's fill property is true. If the
graphic's fill is false, the setting of the backgroundColor has no effect.

ï The backgroundColor of an EPS object fills the object's rectangle.
ï The backgroundColor of an image is the second color in the image's color palette.
ï The backgroundColor of a player, audio clip, or video clip has no effect.
Changes to Transcript:
The ability of standard buttons to have a backgroundColor under Appearance Manager was introduced in version 2. 0. In
previous versions, if the lookAndFeel was set to "Appearance Manager", the setting of the backgroundColor had no effect on
standard buttons.

The ability to use the system background color was introduced in version 1. 1. In previous versions, if the backgroundColor
of all objects in the object hierarchy was empty, a light gray color was used. 108
 
108 Page 109 110
Page 109
backgroundIDs property
Synonyms
Objects
stack

Platforms
Supported on Mac OS systems
Supported on Mac OS X systems
Supported on Windows systems
Supported on UNIX systems