I want to take the return value of the function getProjectTag().
tell application "TaskPaper"
tell front document
repeat with the_entry in entries
-- For each entry, get the data from TaskPaper
tell the_entry
set project_name to getProjectTag(the_entry)
I get the error:
TaskPaper got an error: item 26 of every entry of document 1 doesn’t
understand the getProjectTag message.” number -1708 from item 26 of every entry of document 1
However, when I replace:
set project_name to getProjectTag(the_entry)
with:
display dialogue my getProjectTag(the_entry)
it shows me a dialogue of the correct return value — so the function is working correctly.
Stupid me:
fixes the problem.
I wasn’t aware of what my did.