I've written a few scripts so far w/out too much trouble. I hit a snag today trying to retrieve the day property from a date.
When I enter the following script into the Applescript editor, everything works fine ...
Code:
set myDate to current date
return day of myDate
However, when I enter the following script, it doesn't even compile (I get an "Access not allowed." error ...
Code:
tell application "OmniFocus"
set myDate to current date
return day of myDate
end tell
What's going on? When I try to wrap the "day of myDate" logic in a subroutine, it compiles but I get a runtime error.
Thanks,
Todd