Working with Excel as a Database
You can use SenseTalk to access data stored in a Microsoft Excel (.xlsx) file as if it were a database. This means it is able to read data from a spreadsheet in the form of database records. Working with Excel files in this way allows you to use most of SenseTalk's database capabilities. For a different approach to using Excel that involves SenseTalk directly reading data from or writing data to an Excel file, see Excel File Interaction.
Define the Connection
To use Excel as a database, run a command similar to the following in order to define the connection. This command includes the path and name of your Excel file:
set myExcelDB to {type: "excel", file: "/<Path>/<MyExcelFile>.xlsx"} -- set the specified variable, myExcelDB, to store the contents of the referenced Excel file and establish a SenseTalk connection.
In the example shown above, the database connection information is being stored in a variable myExcelDB. Although you do not have to store the connection information in a variable, it is recommended as it simplifies referring to the database.
If you establish a connection between SenseTalk and an Excel file, and do not include a writeable: Yes property in the command, SenseTalk cannot write (insert, update, or delete) changes back to the database