I have a record-type for which I need to store a Month value. I'm trying to leverage the month class/type that Apple has ( you can define the month of a date i.e., set month of fooDate to July
). This record-type is going to be one of 6 possible types of another property in another object.
I have tried creating a property called month
with type Month
(even though its not an option, I type it in) and with the four character code mnth
in the record type. The code in the script would look something like this:
set fooRecordType to {month: April}
set recProperty of fooObject to fooRecordType
When I try this, applescript cannot recognize the the recordType and expects another recordType instead.
How do I correctly use the month class, so I don't have to make my own?