Jump to content

Help with finding via AppleScript


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

Recommended Posts

I'm having a problem getting 'show records' to work in AppleScript

--this code works

show (every record of database "Image Library Data" whose cell "File Path" contains "9504095U33.jpg")

--this code gives an Event Not Handled error

show (every record of database "Image Library Data" whose cell "File Path" contains "Image Bank #1:H&D Images:1995 APRs:9504095U33.jpg")

--and so does this

show (every record of database "Image Library Data" whose cell "File Path" = "Image Bank #1:H&D Images:1995 APRs:9504095U33.jpg")

but if I go into FMP and do a find for this, It properly finds my record. The equal sign and quotes have to be input in the find field as well.

="Image Bank #1:H&D Images:1995 APRs:9504095U33.jpg"

Link to comment
Share on other sites

Doh! Apparently the script command

whose cell "file path" contains...

does not like the # sign in my string. probably because FMP uses it as a reserved string for finding in FMP.

time to rename my volume.... Argh!!!

Link to comment
Share on other sites

This topic is 6965 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.