FileMaker question
FileMaker question
- Subject: FileMaker question
- From: Richard Rönnbäck <email@hidden>
- Date: Fri, 13 Feb 2004 06:47:32 +0100
I am trying to make a database for tracking specific files. It works ok but
the routine for adding new files does not work as I was hoping for, so if
anyone can help me I would appreciate it very much.
The example below will work if all records are shown by FileMaker, but if I
have conducted at search so that only subset is shown, it seems that the
script looks for records only among the search result, not among all
records, which is what I need.
So how do I either (preferably) get it to look among all records, or clear
the previous search result (less than perfect, but would work)
It might be that I'm not entirely sure I understand the distinction between
"database" and "document" but I have tried both at it doesn't seem to matter
which one I use.
Thanks in advance
/ Richard
tell application "FileMaker Pro"
set myReg to database "Textregister.fp5"
tell myReg
try
set myRecID to (ID of record 1 where (cellValue of cell
"Svkvdg") is theFilePath)
on error
set myNewRecord to create record
set myRecID to ID of myNewRecord
end try
end tell
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.