Suites: Helix Design Suite, Helix Data Suite, Required Suite, Standard Suite, AppleScript Types

AppleScript Types

AppleScript TypesBuilt-in AppleScript value types.

Description

This information, about the native built-in AppleScript datatypes, is not part of the dictionary you are viewing; a dictionary does not need to define these types, because they are built in to AppleScript! Rather, it has been provided, as a public service, by Script Debugger 5.0.

Classes

Alias

alias (noun), pl aliasesAn alias to a file or a folder on disk.
«class alis»

Description

An alias object is very much like a file object. You can form an alias specifier in just the same way as you form a file specifier, and an alias object can often be used in the same places where a file object would be used. But there are some important differences:

  • The item on disk that an alias represents must exist when the specifier is encountered at runtime. Thus an alias cannot be used to create a file or folder.
  • An alias value can be assigned directly to a variable.
  • An alias can continue pointing to an item on disk even if the item is moved or renamed.

Properties

Property
Access
Type
Description
POSIX path
«property psxp»
get text The POSIX path of the file.

Where Used

The alias class is used in the following ways:

direct parameter to the open command/event

file property of the collection class/record

Date

date (noun), pl datesA date-time value.
«class ldt »

Description

A date is a date-time, stored internally as a number of seconds since some fixed initial reference date. A date can be mutated in place, and is one of the classes for which set and copy behave differently.

A literal date is an object string specifier. In constructing a date, you may use any string value that can be interpreted as a date, a time, or a date-time. AppleScript supplies missing values such as today’s date (if you give only a time) or midnight (if you give only a date). To form a date object for the current date-time, use the current date scripting addition command.

Properties

Property
Access
Type
Description
date string
«property dstr»
get text The date portion of a date, as text.
day
«property day »
get integer The day of the month of a date.
month
«property mnth»
get month The month of a date. A constant (not a string or a number); however, this constant can be coerced to a string or a number, and can be set using a number.
short date string
«property shdt»
get text The date portion of a date, as text (in a more abbreviated format than the date string).
time
«property time»
get integer The number of seconds since midnight of a date-time’s day.
time string
«property tstr»
get text The time portion of a date, as text.
weekday
«property wkdy»
get weekday The day of a week of a date. A constant (not a string or number); however, this constant can be coerced to a string or a number.
year
«property year»
get integer The year of a date.

Where Used

The date class is used in the following ways:

quick query value property of the quick query expression class/record

File

file (noun), pl files[synonyms: file specification]A reference to a file or a folder on disk.
«class file»

Description

A file object is a reference to a file or folder on disk. To construct one, use an object string specifier, the word file followed by a pathname string value:

				file "MyDisk:Users:myself:"
				

If you try to assign a file object specifier to a variable, or return it as a value, you’ll get a runtime error. Instead, you must generate a reference to the file object, like this:

				set x to a reference to file "MyDisk:Users:myself:"
				

You can also construct, and sometimes applications or scripting addition commands (such as choose file name) will return, a file specified by its POSIX path:

				POSIX file "/Users/myself/"
				

Such a specifier is actually of a different class, «class furl» (a file URL). This class can be difficult to distinguish from the basic file object type, but it is in fact different, and it can be assigned to a variable.

At runtime, when a file specifier is handed to some command, either the item must exist, or, if the command proposes to create it, everything in the path must exist except for the last element, the name of the item you’re about to create. Thus a file specifer can be used to create a file or folder; an alias can’t be used to do that, and this is a major difference between the two types.

Properties

Property
Access
Type
Description
POSIX path
«property psxp»
get text The POSIX path of the file.

Where Used

The file class is used in the following ways:

direct parameter to the print command/event

List

list (noun), pl listsA list of values.
«class list»

Description

A list is an ordered set of values, which are its items. Items can be specified by index number or by range. Each item can be of any datatype. A literal list is delimited by curly braces, with the items separated by commas. The literal empty list is just a pair of curly braces: {}. Lists are returned by applications from element specifiers such as every and boolean tests. AppleScript provides some operators for testing the contents of a list and for concatenating lists to form a new list. A list can be mutated in place, and is one of the classes for which set and copy behave differently. The cleanest way to append to a list is with set end of.

Properties

Property
Access
Type
Description
length
«property leng»
get integer The number of items in the list. You can get the same information by sending the list the count message.
rest
«property rest»
get list of anything All items of the list excluding the first.
reverse
«property rvse»
get list of anything The items of the list in reverse order.

Month

month (noun), pl monthsA calendar month.
«class mnth»

Where Used

The month class is used in the following ways:

month property of the date class/record

Weekday

weekday (noun), pl weekdaysA weekday.
«class wkdy»

Where Used

The weekday class is used in the following ways:

weekday property of the date class/record

Records

Selection-object

selection-object (record)The datatype of a selection.
«class csel»

Description

The selection-object datatype is a kind of legal fiction, originally designed to allow the selection property to have a class. It may be used behind the scenes as a way of carrying information, but you won’t work with a value of this datatype directly in AppleScript programming; the selection value will be a description of what is actually selected using some other class, such as text, a list of files, or whatever.

Properties

Property
Access
Type
Description
contents
«property pcnt»
get/set anything

Rarely implemented. As originally envisioned, the idea was that you would get or set contents of selection to access or change whatever was currently selected. But most applications that have a selection property implement it as if it were the contents.

Types

Anything

anything (type)[synonyms: any]Anything.
«class ****»

Description

The any datatype is used as a wildcard type in a dictionary, usually because the creators of the dictionary have found it impractical to list explicitly the actual possible types of a value. It isn’t used in AppleScript programming.

Where Used

The anything type is used in the following ways:

direct parameter to the exists command/event

result of get command

result of use command

contents property of the selection-object class/record

rest property of the list class/record

reverse property of the list class/record

to parameter of the set command/event

with contents parameter of the make command/event

April

April (type)The month of April.
«class apr »

August

August (type)The month of August.
«class aug »

Boolean

boolean (type)A true or false value.
«class bool»

Description

A boolean is a datatype consisting of exactly two possible values, true and false, and is typically used wherever this kind of binary value possibility is appropriate. It results from comparisons, and is used in conditions. The integers 1 and 0 can be coerced to a boolean, and vice versa. The strings "true" and "false" can be coerced to a boolean, and vice versa.

class of true -- boolean
class of (1 < 2) -- boolean

Where Used

The boolean type is used in the following ways:

result of exists command

direct parameter to the allow incoming connections command/event

abacus query lock property of the view class/record

active quick query property of the view class/record

align to grid property of the template class/record

allow click property of the data rectangle class/record

allow edit property of the data rectangle class/record

allow print property of the styled rectangle class/record

allow query property of the data rectangle class/record

allow tab property of the data rectangle class/record

allow typing property of the dynamic popup class/record

allow typing property of the static popup class/record

allow variable width property of the static popup class/record

allow variable width property of the dynamic popup class/record

also use query property of the quick query expression class/record

autoclose linked form property of the repeat rectangle class/record

background property of the label rectangle class/record

bold face property of the font style class/record

check structure on open property of the application class/record

check structure on save property of the application class/record

closeable property of the helix icon class/record

cold form property of the helix icon class/record

collating property of the print settings class/record

commas property of the fixed point format class/record

commas property of the number format class/record

common calculation property of the abacus class/record

currency mark property of the fixed point format class/record

currency mark property of the number format class/record

default button property of the command rectangle class/record

default values highlighted property of the view class/record

delete host record property of the view class/record

deletes records property of the subform linkage class/record

deleting data parameter of the delete command/event

design mode available property of the user class/record

discarding unentered data parameter of the quit command/event

discarding unentered data parameter of the close collection command/event

display message property of the sequence class/record

displaying progress parameter of the check structure command/event

enable horizontal scrollbar property of the data rectangle class/record

enable vertical scrollbar property of the data rectangle class/record

enabled property of the autosave parameters class/record

exact match required parameter of the get index for color command/event

fixing errors parameter of the check structure command/event

framed property of the template rectangle class/record

frontmost property of the application class/record

graph paper property of the template class/record

has default button property of the template class/record

has document property of the template class/record

has large picture property of the command rectangle class/record

has large picture property of the label rectangle class/record

has local label property of the command rectangle class/record

has password property of the user class/record

has picture property of the command rectangle class/record

has picture property of the label rectangle class/record

has repeat property of the template class/record

has status box property of the helix icon class/record

hide disabled button property of the command rectangle class/record

hide labels property of the flag format class/record

horizontally scrollable property of the helix icon class/record

ignoring locks parameter of the delete command/event

include icon names property of the view class/record

include outer data property of the view class/record

include seconds property of the date format class/record

includes document property of the template class/record

includes form tile property of the abacus class/record

includes form time tile property of the abacus class/record

includes inert field property of the abacus class/record

includes lookup tile property of the abacus class/record

includes post time tile property of the abacus class/record

includes statistics tile property of the abacus class/record

includes today tile property of the abacus class/record

includes unique tile property of the abacus class/record

includes use from tile property of the abacus class/record

includes user name tile property of the abacus class/record

inert property of the field class/record

invalid fields highlighted property of the view class/record

invisible property of the helix icon class/record

is valid property of the index class/record

italic face property of the font style class/record

keep value property of the data rectangle class/record

keep versions property of the field class/record

keyword property of the field class/record

leading zero property of the date format class/record

locked property of the helix icon class/record

logging parameter of the save command/event

modified property of the collection class/record

modify parameter of the login command/event

moving forward property of the view class/record

notify on change property of the view class/record

open window property of the menu item class/record

outline face property of the font style class/record

page numbering property of the label rectangle class/record

percent sign property of the number format class/record

post every property of the post parameters class/record

preview property of the template class/record

print dialog parameter of the print command/event

quick form property of the template class/record

quick query lock property of the view class/record

quick query value property of the quick query expression class/record

record ids parameter of the use command/event

require custom labels property of the flag format class/record

resizeable property of the helix icon class/record

returning list parameter of the check structure command/event

ruler property of the template class/record

scale picture property of the styled rectangle class/record

scientific notation property of the number format class/record

selectable property of the repeat rectangle class/record

shadow face property of the font style class/record

show page boundaries property of the helix icon class/record

showing record property of the view class/record

stopping for errors parameter of the check structure command/event

stopping on error parameter of the check rectangle overlap command/event

strip field delimiters property of the view class/record

strip record delimiters property of the view class/record

strip return characters property of the view class/record

summary calculation property of the abacus class/record

transparency property of the command rectangle class/record

underline face property of the font style class/record

use calculated label property of the command rectangle class/record

use custom format property of the data rectangle class/record

use specified document path property of the view class/record

user mode property of the collection class/record

user mode parameter of the open command/event

user mode property of the user class/record

user name security property of the collection class/record

vertically scrollable property of the helix icon class/record

visible on first page property of the template rectangle class/record

visible on interior page property of the template rectangle class/record

visible on last page property of the template rectangle class/record

word wrap property of the data rectangle class/record

writing log parameter of the check structure command/event

zoomable property of the helix icon class/record

Color

color (type)
«class cRGB»

Description

The color datatype is a list of three integers describing a color’s red, green, and blue components.

Data

data (type)An AppleScript raw data object.
«class rdat»

Description

The data datatype represents raw data, a stream of bytes. It is a catch-all for situations when a value cannot be displayed or constructed in any other way.

December

December (type)The month of December.
«class dec »

Double integer

double integer (type)A 64-bit integer value.
«class comp»

Description

AppleScript has no double integer type that can be manipulated in code. The double integer type appears occasionally in dictionaries. For example, in the Finder’s dictionary, an item’s size property is listed as a double integer. But the value is returned as a real.

Extended real

extended real (type)An extended real number.
«class exte»

Description

AppleScript has no extended real type that can be manipulated in code. The extended real type appears occasionally in dictionaries, but the value is returned as an ordinary real.

February

February (type)The month of February.
«class feb »

Fixed

fixed (type)A fixed-point real number.
«class fixd»

Description

AppleScript has no fixed type that can be manipulated in code. The fixed type appears occasionally in dictionaries, but the value is returned as an ordinary real.

Fixed point

fixed point (type)A list of two numbers, designating the x and y coordinates of a point in a plane.
«class fpnt»

Fixed rectangle

fixed rectangle (type)A list of four numbers, designating a rectangle in the plane.
«class frct»

Description

There are various standards for using four numbers to designate a rectangle. The old way is to specify the x and y coordinates of the origin corner, and the x and y coordinates of the opposite corner, of the rectangle. But the origin corner might be the top left (traditional) or the bottom left (newer), and the Cocoa standard is to use the third and fourth numbers for the width and height of the rectangle.

GIF picture

GIF picture (type)Picture data in GIF format.
«class GIFf»

Insertion location

insertion location (type)[synonyms: location]A reference to a location within a collection where an object can be inserted.
«class insl»

Description

The insertion location type is used in specifying an element by position relative to some other element, typically as part of the make or duplicate command. It can be formed using before or after and an element specifier; or using beginning of or end of and a reference to an object, or just beginning or end alone; or using just an element specifier (when, for example, a created object should replace an existing element). Some examples:

				tell application "TextEdit"
	tell text of document 1
		make new word at after word 2 with data "not "
		duplicate word 1 to end
		duplicate word 1 to beginning of word 3
		duplicate word 1 to word 7
	end tell
end tell
				

Integer

integer (type)An integer value.
«class long»

Description

The integer datatype is one of the two basic number types; the other is real. An integer is a whole number, without a decimal point. It must lie between 536870911 and –536870912 inclusive.

Where Used

The integer type is used in the following ways:

result of count command

direct parameter to the remove command/event

result of check structure command

result of version command

after parameter of the add command/event

answer index property of the abacus class/record

apple event maximum add property of the application class/record

apple event maximum delete property of the application class/record

apple event maximum get property of the application class/record

at parameter of the make command/event

at parameter of the add command/event

autosave idle delay property of the autosave parameters class/record

autosave interval property of the autosave parameters class/record

autosave start time property of the autosave parameters class/record

backward parameter of the move command/event

copies property of the print settings class/record

current apple event processes property of the application class/record

current users property of the collection class/record

current users property of the application class/record

datakey property of the relation class/record

datakey property of the field class/record

day property of the date class/record

diagnostic data property of the structure check result class/record

dividers property of the collection class/record

dividers property of the relation class/record

ending page property of the print settings class/record

error code property of the structure check result class/record

forward parameter of the move command/event

found id property of the structure check result class/record

found type property of the structure check result class/record

frame width property of the group rectangle class/record

horizontal spacing property of the template class/record

id property of the structure check result class/record

id property of the object class/record

id property of the window class/record

index ID property of the index class/record

jog height property of the tile class/record

key property of the menu item class/record

length property of the list class/record

logon limit property of the user class/record

maximum apple event processes property of the application class/record

maximum users property of the application class/record

number property of the error record class/record

ordinal property of the template rectangle class/record

pages across property of the print settings class/record

pages down property of the print settings class/record

post option property of the post parameters class/record

record count property of the field class/record

record count property of the process ready record class/record

record count property of the relation class/record

record id property of the retrieved data record class/record

repeat profile property of the template class/record

start character index property of the font style run class/record

starting page property of the print settings class/record

starting page number property of the view class/record

subform count property of the template class/record

time property of the date class/record

type property of the structure check result class/record

vertical spacing property of the template class/record

year property of the date class/record

International text

international text (type)An international string value.
«class itxt»

Description

In some older applications, before the advent of Unicode, the international text class was a way of representing text in accordance with a particular language and script (where “script” means a writing system); each language–script combination had its own rules (an encoding) for how particular sequences of bytes were mapped to characters (glyphs).

January

January (type)The month of January.
«class jan »

JPEG picture

JPEG picture (type)Picture data in JPEG format.
«class JPEG»

July

July (type)The month of July.
«class jul »

June

June (type)The month of June.
«class jun »

March

March (type)The month of March.
«class mar »

May

May (type)The month of May.
«class may »

November

November (type)The month of November.
«class nov »

Number

number (type)A floating point or integer number.
«class nmbr»

Description

The number datatype is a catch-all numeric type designed for coercions. For example, a string that looks like an integer or a real can be coerced to a number; the result is that it is coerced to an integer or a real, whichever is appropriate, without your having to worry about which is appropriate.

Where Used

The number type is used in the following ways:

decimal places property of the fixed point format class/record

decimal places property of the number format class/record

font size property of the font style class/record

quick query value property of the quick query expression class/record

October

October (type)The month of October.
«class oct »

Point

point (type)A list of two numbers, designating the x and y coordinates of a point in a plane.
«class QDpt»

Where Used

The point type is used in the following ways:

at parameter of the make command/event

hole positions property of the tile class/record

location property of the abacus element class/record

location property of the tile class/record

position property of the helix icon class/record

tile size property of the tile class/record

PostScript picture

PostScript picture (type)Picture data in EPS format.
«class EPS »

Property

property (type)A reference to a property.
«class prop»

Description

The property (or property specifier) datatype is used in a dictionary to indicate that a value is a property. For example, in the Finder’s dictionary, the by parameter of the clean up command is a property.

Real

real (type)A real number.
«class doub»

Description

The real datatype is one of the two basic number types; the other is integer. A literal real has a decimal point. A large real will be expressed in scientific notation. (Examples: 100.0, 1.0E+26.)

Record

record (type)An AppleScript record.
«class reco»

Description

A record is an unordered collection of name-value pairs. Each value may be of any type. A literal record looks like a literal list except that each item has a name, which is separated from the corresponding value with a colon:

				set R to {firstname:"John", lastname:"Doe"}
				

There is no empty record as distinct from the empty list; the empty list {} is treated as the empty record for purposes of containment and concatenation. Records are passed to a few important commands, such as make, and are returned as a way of providing a table of information. AppleScript provides some operators for testing the contents of a record and for concatenating records to form a new record. A record can be mutated in place, and is one of the classes for which set and copy behave differently.

Where Used

The record type is used in the following ways:

properties property of the item class/record

with properties parameter of the duplicate command/event

with properties parameter of the make command/event

Reference

reference (type)[synonyms: object, specifier]A reference to an element in a collection of objects.
«class obj »

Description

The reference (or specifier, or object) datatype is used in a dictionary as a wild-card type, to indicate that a value will be a reference to an element, of some unspecified class, within the application.

Where Used

The reference type is used in the following ways:

direct parameter to the print command/event

result of make command

result of duplicate command

direct parameter to the get command/event

direct parameter to the count command/event

direct parameter to the set command/event

RGB16 color

RGB16 color (type)
«class tr16»

Description

See on the color datatype.

RGB96 color

RGB96 color (type)
«class tr96»

Description

See on the color datatype.

Script

script (type)A script object.
«class scpt»

September

September (type)The month of September.
«class sep »

Small integer

small integer (type)A 16-bit integer value.
«class shor»

Description

AppleScript has no small integer type that can be manipulated in code. The small integer type appears occasionally in dictionaries. For example, in the Finder’s dictionary, a column’s width property is listed as a small integer. But the value is returned as an ordinary integer.

Small real

small real (type)A 32-bit real number.
«class sing»

Description

AppleScript has no small real type that can be manipulated in code. The small real type appears rarely in dictionaries, but the value is returned as an ordinary real.

String

string (type)A plain text string value.
«class TEXT»

Description

The string or text datatype is the basic text type. It is Unicode, so it can include any character. However, the read and write scripting addition commands interpret as text or as string (or nothing) to mean MacRoman; to get UTF-16, say as Unicode text, and to get UTF-8, say as «class utf8».

A literal string (or text) is delimited by quotation marks, with the empty string symbolized by "".

				set s to "howdy"
class of s -- text
				

The following are the properties of a string (or text). They are read-only.

length
The number of characters of the string. You can get this same information by sending the count message to the string.
quoted form
A rendering of the string suitable for handing to the shell as an argument to a command. The string is wrapped in single quotation marks and internal quotation marks are escaped.
id
The codepoints of the Unicode characters constituting the string: an integer or list of integers. The reverse operation, from a list of integers to text, is through the string id specifier.

The following are the elements of a string. They cannot be set, because a string cannot be mutated in place.

character
A string representing a single character of the string.
word
A string representing a single word of the string. It has no spaces or other word-boundary punctuation.
paragraph
A string representing a single paragraph (or line) of the string. It has no line breaks. AppleScript treats a return, a newline, or both together (CRLF) as a line break.
text
A run of text. Its purpose is to let you obtain a single continuous string using a range element specifier:
				words 1 thru 3 of "Now is the winter" -- {"Now", "is", "the"}
text from word 1 to word 3 of "Now is the winter" -- "Now is the"
				
text item
A “field” of text, where the field delimiter is AppleScript’s text item delimiters property (or, if text item delimiters is a list, any item of that list).

Styled text

styled text (type)A styled string value.
«class STXT»

Description

The styled text datatype cannot be directly manipulated in code, and is usually represented as if it were an ordinary string. It is occasionally encountered indirectly, as when retrieving text data from the clipboard. Here, in order to get a representation of the styling, we coerce the styled text to a record:

				tell application "Finder"
	activate
	set x to (the clipboard)
end tell
x as record -- {«class ktxt»:"test", «class ksty»:«data styl000100000000000D000A00100000000C000000000000»}
				

Before Unicode, the style resource was also sometimes used as a way of carrying encoding information.

Text

text (type)A plain text string value.
«class ctxt»

Description

The text or string datatype is the basic text string type. It is Unicode, so it can include any character. However, the read and write scripting addition commands interpret as text or as string (or nothing) to mean MacRoman; to get UTF-16, say as Unicode text, and to get UTF-8, say as «class utf8».

A literal text string is delimited by quotation marks, with the empty string symbolized by "".

				set s to "howdy"
class of s -- text
				

The following are the properties of a text string. They are read-only.

length
The number of characters of the text string. You can get this same information by sending the count message to the string.
quoted form
A rendering of the text string suitable for handing to the shell as an argument to a command. The text string is wrapped in single quotation marks and internal quotation marks are escaped.
id
The codepoints of the Unicode characters constituting the text string: an integer or list of integers. The reverse operation, from a list of integers to text, is through the string id specifier.

The following are the elements of a text string. They cannot be set, because a text string cannot be mutated in place.

character
A text string representing a single character of the text string.
word
A text string representing a single word of the text string. It has no spaces or other word-boundary punctuation.
paragraph
A text string representing a single paragraph (or line) of the text string. It has no line breaks. AppleScript treats a return, a newline, or both together (CRLF) as a line break.
text
A run of text. Its purpose is to let you obtain a single continuous text string using a range element specifier:
				words 1 thru 3 of "Now is the winter" -- {"Now", "is", "the"}
text from word 1 to word 3 of "Now is the winter" -- "Now is the"
				
text item
A “field” of text, where the field delimiter is AppleScript’s text item delimiters property (or, if text item delimiters is a list, any item of that list).

Where Used

The text type is used in the following ways:

direct parameter to the use command/event

direct parameter to the login command/event

direct parameter to the do menu command/event

as parameter of the save command/event

collection password property of the collection class/record

combined query expression property of the view class/record

command label property of the command rectangle class/record

comment property of the helix icon class/record

content property of the label rectangle class/record

custom labels property of the flag format class/record

custom name property of the helix icon class/record

date string property of the date class/record

delimiters parameter of the use command/event

disabled label property of the command rectangle class/record

error message property of the error record class/record

export file path property of the view class/record

expression property of the abacus class/record

expression property of the power query class/record

expression property of the form query class/record

fax number property of the print settings class/record

field delimiter property of the process ready record class/record

field delimiter property of the view class/record

font name property of the font style class/record

helix record property of the retrieved data record class/record

ignore words property of the field class/record

import file path property of the view class/record

key property of the menu item class/record

logging to parameter of the save command/event

message property of the sequence class/record

message property of the tile validation class/record

name property of the template rectangle class/record

name property of the application class/record

name property of the helix icon class/record

name property of the user menu class/record

name property of the window class/record

password parameter of the login command/event

password property of the user class/record

password parameter of the open command/event

POSIX path property of the file class/record

POSIX path property of the alias class/record

primary constant property of the tile validation class/record

quick query value property of the quick query expression class/record

record delimiter property of the process ready record class/record

record delimiter property of the view class/record

secondary constant property of the tile validation class/record

session data log property of the collection class/record

short date string property of the date class/record

start character property of the view class/record

target printer property of the print settings class/record

time string property of the date class/record

user name parameter of the open command/event

user password parameter of the open command/event

value property of the constant class/record

values property of the static popup class/record

version property of the application class/record

Type class

type class (type)[synonyms: type]A class value.
«class type»

Description

The type class datatype (or class, or type) is the value type of a value type. For example, when you ask AppleScript for the class of a value, and AppleScript tells you that it is an integer or a real or a folder or whatever, this value must itself be of some class, and this is it. There are times when it is necessary to pass a class to a command; for example, the make command needs to know what class of object to create.

Where Used

The type class type is used in the following ways:

class property of the item class/record

each parameter of the count command/event

new parameter of the make command/event

Unicode text

unicode text (type)A Unicode string value.
«class utxt»

Description

Historically, the unicode text type was distinct from string and text, but now they are the same thing, and the dictionary distinction is a matter of backward compatibility. In AppleScript programming, the term unicode text is now used almost exclusively in coercions with the read and write scripting addition commands, where it means UTF-16.

For more information, see on the string datatype.

Unsigned integer

unsigned integer (type)An unsigned integer value.
«class magn»

Description

AppleScript has no unsigned integer type that can be manipulated in code. The unsigned integer type appears occasionally in dictionaries. For example, in the Finder’s dictionary, a window’s id property is listed as an unsigned integer. But the value is returned as an ordinary integer.

Version

version (type)A version value.
«class vers»

Description

The version datatype is practically confined to one value: AppleScript’s own version. The versions of applications are usually text, and to work usefully with AppleScript’s version (e.g., to parse it) you will need to coerce it to text.

				get class of (get AppleScript's version) -- version
				

Writing code

writing code (type)Codes that identify the language and script system.
«class psct»