UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | Core Verbs > core.create

core.create

Syntax core.create (appID, class, initialData, propertyData, where)

Params appID is a value identifying the application to which this verb is addressed. It can be a string4 containing the application signature, a binary value obtained by calling sys.browseNetwork or a string containing a valid network address.

class is the class of the element to be created.

initialData is a value to be used in creating the new element. To leave the data unspecified, pass zero.

propertyData is a value containing a property or list of properties to be set for the new element. To leave the properties unspecified, pass zero.

where indicates the location at which the new element is to be inserted. To leave the insertion location unspecified, pass zero. (See Notes.)

Action Instructs the application identified by appID to create a new element of type class, at the position indicated by where, using the data and properties provided.

Returns An object specifier for the newly-created object.

Examples
Platform Notes This verb is only implemented in the Mac OS version of Frontier.

Notes This is a low-level verb intended to be used only with applications that support the Core suite of Apple Events. Typically, an application's verb table will include high-level verbs that correspond to all of the events that it supports, so scripts

should not have to call the core verbs directly.

The value for the where parameter should be obtained by calling one of the following objectModel verbs: beginningOf, endOf, before, after, or replace.

Depending of the application and the particular type of object being created, the initialData, propertyData, and where parameters may or may not be required.

See Also objectModel.after

objectModel.before

objectModel.beginningOf

objectModel.endOf

objectModel.replace

getAppleListItem

Prev | Next | Core Verbs > core.create

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X