`exists record with URL` in a specific group or in all databases

Hi there

I know about DEVONthink’s Applescript command exists record with URL. According to the DEVONthink dictionary it gives you the option to specify the database the check is done against.

How can I do in Applescript a check for a record with a given URL in a specific group? And is there a way to check for the existence of a record with a given URL in all (open) databases?

Many thanks for any pointers.

Regards,
a long-term Applescript recruit

How can I do in Applescript a check for a record with a given URL in a specific group ?

You can’t with that command. As noted in the dictionary, it works on a targeted or the current database.

And is there a way to check for the existence of a record with a given URL in all (open) databases ?

Not without looping through open databases.

Also, using the exists command is a boolean and only going to tell you true or false. Perhaps you mean lookup records with URL (and those also target a database or the current one).

Indeed, lookup records with URL is exactly what I want. :slight_smile: