I am trying to post to Todoist using these scripts: http://blog.nik.me/post/38392029513/todoist-applescripts-services-and-applescript-api
The error I get is this:
[ERROR: alfred.workflow.action.applescript] {
NSAppleScriptErrorBriefMessage = "Expected \U201cend\U201d but found \U201cproperty\U201d.";
NSAppleScriptErrorMessage = "Expected \U201cend\U201d but found \U201cproperty\U201d.";
NSAppleScriptErrorNumber = "-2741";
NSAppleScriptErrorRange = "NSRange: {20, 8}";
}
Does anyone have any ideas how to fix this? Thanks!
Here's the start of my Applescript:
on alfred_script(q)
property apiToken : "apitokenremoved"
property allProjects : {}
property appName : "Nik's crappy scripts"
property appDomain : "me.nik.crappyscripts"
on run
set {text returned:textReturned, button returned:buttonReturned} to ¬
display dialog ¬
"Enter Todoist task..." with icon 1 buttons {"Cancel", "OK"} ¬
default button ¬
"OK" default answer ""
if buttonReturned is "OK" then
my newTask(textReturned)
else if buttonReturned is "Cancel" then
else
end if
end run