I am sorry if the Subject of this post is confusing, but I was unsure how to word it. I am trying to use AS to clean up some of my Palm database contact information and I need to obtain 2 pieces of information from each contact in the database to proceed, yet the search is only related to one of the items.
I need the id number of the contact that meets the criteria (a field is not blank, but neither does it contain the “@” character; that is, there is something there, but it is NOT an email address, which it is supposed to be) and I need the data that is currently in that field as well. So, I set up the examination to return two lists: one list contains the errant data, the other list contains the id number.
My question is simply whether or not this code is the most efficent or not:
tell application "Palm Desktop"
set field_Txt to {(field text of custom one of every address whose field text of custom one does not contain "@" and field text of custom one is not ""), (id of every address whose field text of custom one does not contain "@" and field text of custom one is not "")}
end tell
It works very well, and is very fast (I have over 900 contacts, and it finds everything in < 1 second), but I am simply wondering if it is necessary to state the specified search parameters twice, like I have done.
Any input is appreciated, it is impossible to insult me.