Re: Scripting FMP find
Re: Scripting FMP find
- Subject: Re: Scripting FMP find
- From: bryan <email@hidden>
- Date: Sun, 28 Apr 2002 12:37:31 -0400
Here's a little demo handler that will look for a file name
in a database when the file is dropped on the script droplet.
----------------------------
on open (myfilechoice)
tell finder
set k to name of (info for myfilechoice)
end tell
tell application "FileMaker Pro"
activate
try
show every record of database "Apex Study Processing"
show (last record of document "Apex Study Processing" whose cell "image_file_name" is k)
on error x
set theresponse to x
end try
end tell
tell me to activate
try
if theresponse is "Object not found." then display dialog "Record not found"
end try
end open
----------------------------
Bryan Kaufman
Eric Phillips wrote:
>
Does anyone know if I can define a search criteria in a script in FMP 5. I can change to the Find Mode and execute a find but I can't find a way to define what criteria I want to find in the script.
>
>
Eric
>
_______________________________________________
>
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.
_______________________________________________
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.