I'm adding AppleScript support to my macOS application but I have problems accessing a property of an object I defined.
The sdef file resulted in the following directory:
When I run the following script:
tell application "Daily"
get all activities
end tell
I get this result:
However, when I run this script:
tell application "Daily"
repeat with iActivity in (get all activities)
name of iActivity
end repeat
end tell
I get this error:
error "Daily got an error: Can’t make «class » id \"E10E6A7B-6D3B-464B-9C31-35DB6763C492\" into type specifier." number -1700 from «class » id "E10E6A7B-6D3B-464B-9C31-35DB6763C492" to specifier
Any idea what I am doing wrong? Thanks!