Closed yanfosec closed 9 years ago
that sounds great — I know a lot about Python but not so much about Applescript. An example of a plugin that's basically a wrapper around an Applescript is copycolor. the basic gist of it is, you construct an applescript as a string using the plugin's input query (in Python), then invoke it using the applescript module, which you can copy into you plugin bundle.
If you post a link to the scripts, I'd be happy to work on getting them to work in Flashlight :+1:
The script below is all you need to import ‘theText’ into a task / reminder, that’s already familiar to any OF user.
Here is the Applescript:
tell application "OmniFocus" activate tell default document parse tasks into with transport text theText end tell end tell
Can you put it together into a plugin? I am happy to test it out...
-- Yan Kravchenko yanick2k@gmail.com
On December 17, 2014 at 3:08:24 PM, Nate Parrott (notifications@github.com) wrote:
that sounds great — I know a lot about Python but not so much about Applescript. An example of a plugin that's basically a wrapper around an Applescript is copycolor. the basic gist of it is, you construct an applescript as a string using the plugin's input query (in Python), then invoke it using the applescript module, which you can copy into you plugin bundle.
If you post a link to the scripts, I'd be happy to work on getting them to work in Flashlight
— Reply to this email directly or view it on GitHub.
Here's my shot at it: omnifocus.bundle.zip I'm not sure if the applescript is correct, and I don't have omnifocus so I can't really test, but all the Python stuff works.
When you're happy with it, submit a pull request so others can download it!
I added another example method, fixed up the info.json and tested the Applescript. All looks good.
Thanks!
-- Yan Kravchenko yanick2k@gmail.com
On December 17, 2014 at 9:51:02 PM, Nate Parrott (notifications@github.com) wrote:
Here's my shot at it: omnifocus.bundle.zip I'm not sure if the applescript is correct, and I don't have omnifocus so I can't really test, but all the Python stuff works.
When you're happy with it, submit a pull request so others can download it!
— Reply to this email directly or view it on GitHub.
great — submit it!
I am not a python developer, but I have written several apple scripts for OmniFocus. Perhaps someone wants to team up on this?