Name

before

Syntax

tell app "Finder" to get folder before system folder

Synonyms

[in] front of

Description

Both Relative reference forms, before or in front of allows the scripter to grab or refer to items that are located just before a known object, such as a file, folder, or database record. Similar to a binary operator, before and in front of take references both before and after it:

file before last file

To get the database-record id just before the currently active one, you could tell FileMaker Pro to do the following:

get (ID of record before current record)

Get AppleScript in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.