Jump to content

Special Finds in FMP from an Applescript?


This topic is 7527 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I am writing an Applescript which finds data in a FileMaker Pro 5 database. Mac OS 9.2.2

My question: Is it possible to do a search in Filemaker from an Applescript, which applies the functionality of Filemaker's Special Find Operators, such as the double equal "== " ?

For example in Filemaker if one does a search with a pair of equal signs (==) in front of the text being searched for, that search will return only exact "field content matches" for that search:

So a search for "== car"

would return only fields which contain only the word... "car"

and not would not return a field which contained... "car door"

Is there language to execute such a search from an Applescript in Filemaker?

Thanks All,

MK

PS:

I tried inserting the two equal signs into the search criterea inside Applescript as text...

show (every record of database "Data" whose cell "SearchField" is equal to "==" & _SearchText_ )

... this method failed.

_________________

M Kelly

This question was also posted at the MacScripter BBS

Link to comment
Share on other sites

  • 4 weeks later...

have you tried this?

tell app "filemaker pro"

tell database "whatever database"

set myFind to create new request with data "==car"

find

end tell

end tell

You may have to add tabs to the beginning of the request, like " ==car".

I have found doing it like this, the script acts like you are actually tabbing through fields to get to the one you want, so you need to add tabs to get to the one you want, you can't call it by name (at least i think i can't).

Link to comment
Share on other sites

This topic is 7527 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.