Accessing a property of an object using AppleScript

448 Views Asked by At

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:

sdef activities

When I run the following script:

tell application "Daily"
    get all activities
end tell

I get this result:

get all activities output

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!

0

There are 0 best solutions below