Newbie question
Newbie question
- Subject: Newbie question
- From: Blaine Wilson <email@hidden>
- Date: Thu, 13 Mar 2003 11:41:25 -0800
Hi,
I'm new to AppleScript, so please bear with me if this is a total newbie
question. Most of my scripting so far has been borrowing from existing
scripts and slogging through a few of my own lines of script. It has been a
slow process so far, but I'm in the learning stages.
I'm trying to manipulate "found" FileMaker Pro 5.5 records. The book I'm
referencing, which is fairly old, says "document" refers to found records
only and "database" refers to all records in the database. (AppleScript for
the Internet by Ethan Wilde, p 201.)
This doesn't seem to be the case. I end up with the same result whether I
use "document" or "database." For example, my script has run a search and
has found five records. It then does the following:
set cell "Unsubscribe" of record 1 of document 1 to "X"
However, this sets record 1 of the entire database, not just the found
records. Any ideas how I can manipulate the found records? Any help would be
much appreciated!
Thanks.
Blaine
P.S., Here's my script in its entirety for context:
tell application "Microsoft Entourage"
-- get the currently selected message or messages
set selectedMessages to current messages
-- if there are no messages selected, warn the user and then quit
if selectedMessages is {} then
display dialog "Please select a message first and then run this script."
with icon 1
return
end if
repeat with theMessage in selectedMessages
-- get the information from the message, and store it in variables
set theSender to sender of theMessage
set theAddress to address of theSender
set theSender to (theSender as list)
get theAddress
set theAddress to "=" & theAddress
tell application "FileMaker Pro"
activate
tell database "Customers Copy.FP5"
--create a find request using data from the variable
create new request
set cell "Email" of request 1 of database 1 to theAddress
find
set cell "Unsubscribe" of record 1 of document "Customers Copy.fp5" to "X"
end tell
end tell
end repeat
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.