Hey folks,
I'm sorry this is such a stupid question. I just need a script that creates a task with the same name as a variable in AppleScript. I've found a bunch of other scripts that create events (like the MailAction script inside of OF's bundle) but they're doing a lot of other stuff so I'm struggling to pair it down to something as simple as "create task with the name variableName".
FWIW, this is for Siri integration without using e-mail. It's complicated to setup at first, and requires an always on machine, but does the trick. Basically it imports reminders into OF so you can say "remind me to…" instead of "e-mail Task Contact 'task name'". I'll definitely share the complete solution when it works. I have everything working I just need the last little bit to get it into OmniFocus.
If I could also get a script that will do the above and let me specify a context from a variable I think I might be able to hack "Remind me to get milk, context Groceries" but I'm not 100% sure because it requires some more text processing.
Thanks! OF support pointed me here, they don't seem to have a simple create script example.
I'm sorry this is such a stupid question. I just need a script that creates a task with the same name as a variable in AppleScript. I've found a bunch of other scripts that create events (like the MailAction script inside of OF's bundle) but they're doing a lot of other stuff so I'm struggling to pair it down to something as simple as "create task with the name variableName".
FWIW, this is for Siri integration without using e-mail. It's complicated to setup at first, and requires an always on machine, but does the trick. Basically it imports reminders into OF so you can say "remind me to…" instead of "e-mail Task Contact 'task name'". I'll definitely share the complete solution when it works. I have everything working I just need the last little bit to get it into OmniFocus.
If I could also get a script that will do the above and let me specify a context from a variable I think I might be able to hack "Remind me to get milk, context Groceries" but I'm not 100% sure because it requires some more text processing.
Thanks! OF support pointed me here, they don't seem to have a simple create script example.