I'm writing a script for my GTD notebook. This script should collect entries from a list of folders, based on certain criteria. It aliases the collected entries to another folder for inspection.
I want the script to look in that last folder, so it won't add a 2nd alias for entries that are already represented in that folder, and I can't get this to work. I have reworked the collection to build a list of names instead of entries, but still get the same error when I try to get the entries themselves.
Here's a sample (list 'theList' is declared at the top of the script):
repeat with aName in weededList -- change from names to references
set anEntry to (entry named aName)
set theList to theList & anEntry -- error occurs here
end repeat
The attempted conversion from names to entries gives this error message:
Can't make «class MLen» id 266 of document "xxx" of application "Mori" into type vector.
(when run from Scripteditor; running from Mori does nothing).
«class MLen» likely means "entry", but I have never seen the word "vector" in an Applescript error message.
It would appear that you cannot add entries to an (initially) empty list.
Am I equating dogs with cats, or is something else going on?
Any comment is greatly appreciated.
ThijsZ
I think anEntry is a
I think anEntry is a reference to the actual entry, and theList is a string.
Try this:
set theList to theList & aNameMike