DekGenius.com
Team LiB   Previous Section   Next Section
every ... from ... to ...

Syntax

tell app "FileMaker Pro" to get every record from 1 to 5 (* returns a list, 
with each item in the list being another list encompassing the values for 
each database record *)

Synonyms

... from ... to ...

through

thru

Description

These reserved words represent the Range reference form. These reference methods allow the scripter to select a range of objects:

words 10 thru 41 of document 1

The return value depends on which objects you select. Telling FileMaker Pro to get a range of database records returns a list value; but telling BBEdit to get a range of words from a text document returns the string containing those words. The example code shows all four of these forms, which produce an equivalent result.

Examples

tell application "BBEdit 5.0"
   set w1 to (every word from 10 to 41) of document 1
   set w2 to (words from 10 to 41) of document 1
   set w3 to (words 10 through 41) of document 1
   set w4 to (words 10 thru 41) of document 1
end tell
    Team LiB   Previous Section   Next Section