Exists Object

Exists Object

The Exists Object command checks if an object exists in the Virtual Ticket database.

Exists Object

of type object_type
with id object_id

 

Result: object_exists

 

Arguments

Type

Description

object_type

String

The name of the object type to be added (e.g. Job).

object_id

Integer or String

The unique object id.

object_exists

Boolean

True if object exists in the database, false if not.

Example: Determine whether a particular object exists and delete it.

tell application "Virtual Ticket 8.0"
if (Exists Object of type "Job" with id 100) then
Delete Object Record of type "Job" with id 100
end if

end tell


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.