Attachment management
Posted: Wed Aug 08, 2007 1:28 pm
Hi Jon,
I have in my attachment folder 1201 pdf files of journals that I use in the Bookends database. Presumably, if all are attached to a reference in the database, the following SQL search that I have named "Refs with PDFs" should report "showing 1201 of 1201 references".
varCharField REGEX '[a-z]'
However, instead Bookends reports 1165 of 1171 references showing. When I scan this list by the attachment paperclip icon I find 9 references with no attachment indicated, yet these still appear in the list. By subtraction you would expect 6 references, however I find 9 without an attachment icon.
Similarly the opposite SQL search named "Refs without PDFs" shows 1415 of 1416 references.
NOT varCharField REGEX '[a-z]'
Apparently there are approximately 30 references that are not attached in my database but I don't know which ones. Also the discrepancy in the number of references reported by the searches is problematic.
Is there a better way to organize your attached files so that the numbers in the database correspond to what the finder reports? Going through over a thousand files is not practical and I would like to find an automated way to verify that the files are attached to the correct reference in the database.
Matt
I have in my attachment folder 1201 pdf files of journals that I use in the Bookends database. Presumably, if all are attached to a reference in the database, the following SQL search that I have named "Refs with PDFs" should report "showing 1201 of 1201 references".
varCharField REGEX '[a-z]'
However, instead Bookends reports 1165 of 1171 references showing. When I scan this list by the attachment paperclip icon I find 9 references with no attachment indicated, yet these still appear in the list. By subtraction you would expect 6 references, however I find 9 without an attachment icon.
Similarly the opposite SQL search named "Refs without PDFs" shows 1415 of 1416 references.
NOT varCharField REGEX '[a-z]'
Apparently there are approximately 30 references that are not attached in my database but I don't know which ones. Also the discrepancy in the number of references reported by the searches is problematic.
Is there a better way to organize your attached files so that the numbers in the database correspond to what the finder reports? Going through over a thousand files is not practical and I would like to find an automated way to verify that the files are attached to the correct reference in the database.
Matt