My triggered script that I attached to the inbox (not the global inbox) used to work just fine. Now for some reason I can’t get it to work as a triggered script. It works fine if you run it from Script Debugger (without the ‘On triggered’ wrapper of course). Does anyone know what kind of stupid thing I might have done to affect this? The script is very simple…
on triggered(theRecord)
tell application id "com.devon-technologies.thinkpro2"
try
set thisSelection to the children of the current group
set theTag to year of (current date) as string
repeat with theRecord in thisSelection
set tags of theRecord to tags of theRecord & theTag
end repeat
end try
end tell
end triggered
Any insight is appreciated. By the way, I tried reinstalling DTPO but it didn’t help.
By the way, all it does is add the current year (such as 2013) to the tags of the records in the group.