Sorry—back again!
I have a custom metadata field called “Diary entry date” (with the identifier “diaryentrydate” and both type and format set to date). I am trying, in a script, to write to that field…without success.
The relevant parts of my code are:
--format date for adding to custom metadata
set {day:d, month:m, year:y} to (current date)
set metadataDate to d & "/" & (m as number) & "/" & y
and
add custom meta data metadataDate for "diaryentrydate" to myRecord
I have tried both the identifier and the text “Diary entry date” in the custom meta data command. In both cases the script passes gracefully over the command without error and does nothing.
What have I done wrong this time?
Stephen