MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Robertson <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 29 May 2003 10:11:22 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
>
> set firstRequest to (create new request)
> set cell "cellNameA" of firstRequest to "x"
> set secondRequest to (create new request with omitted)
> set cell "cellNameB" of secondRequest to "y"
> find
> tell document 1
> set myResults to every record
> end tell
>
> There's a thing or two wrong with the alternate approach, though. First, it
> doesn't seem to include the secondRequest in its search criteria. I get the
> same results if I leave out the 3rd & 4th lines (i.e. "set secondRequest..."
> and "set cell "cellNameB ..."). Apparently I need to tweak my syntax just a
> little.

The second request works fine for me. But your use of omitted does not work
for me. FWIW this is the way I would do it:

Delete every request
Set NR to (create new request)
Copy "X" to cell "cellnameA" of NR
Set NR to (create new request)
Set omitted of NR to true
Copy "Y" to cell "cellnameA" of NR

ATOM RSS1 RSS2