db.set

Syntax db.set (path, value)

Params path is a valid UserTalk address string, indicating the location in Frontier's object database where you want to store information.

value is the value you want to store in the location indicated by path.

Action Stores the value in the location indicated by path.

Returns The value that was stored in the cell.

Examples db.set ("examples.age", 29) // wishful thinking

   » 29

db.set ("examples.haircolor", {31, 99, 104})

   » {31, 99, 104}

Notes This verb and its counterpart, db.get, are primarily of use to AppleScript script writers working in Frontier. In UserTalk, you can simply assign the value of a local variable to an object database cell.

Without db.get and db.set, you'd have to use a complicated "tell" statement in AppleScript to move information to and from the object database. Further, the script would break if the user changes the name of the Frontier application.

See Also db.get

db.setValue

=

Discuss