JMarkyBB Posted November 21, 2016 Share Posted November 21, 2016 Hiya Everybody, I've had Alfred app a while, but only touched the surface with search. Now having upgraded to V3 I'm having a play with Alfred, I'm all very new to this Workflow mindset, I've downloaded the Notes workflow and its working like a dream but is there a workflow for Stickies on its own and I'm thinking out of the box here for Stickies & Notes, i.e. If I create a Stickie can it duplicate it in Notes? Mark Link to comment
deanishe Posted November 21, 2016 Share Posted November 21, 2016 You can't do very much with Stickies because the app isn't scriptable. All you can do is simulate keypresses. Creating a new sticky is doable. "Exporting" one to Notes is trickier. JMarkyBB 1 Link to comment
JMarkyBB Posted November 24, 2016 Author Share Posted November 24, 2016 (edited) Hiya Deanishe, Thanks for the reply, thats all I want to do is create a new Stickie, is it just a case of editing say.... the Notes Workflow? I've never written code before, so pardon my ignorance. Edited November 24, 2016 by JMarkyBB Link to comment
deanishe Posted November 25, 2016 Share Posted November 25, 2016 I don't know. It depends how you want the workflow to work. The simplest thing is probably to create a new sticky from the clipboard contents, by putting the following in a Run Script (Language = /usr/bin/osascript (AS)) action and connecting it to a Keyword or Hotkey trigger: tell application "Stickies" activate -- wait half a second for Stickies to come to the front delay 0.5 tell application "System Events" -- simulate ⌘N keystroke "n" using command down -- wait half a second for the new note to be created delay 0.5 -- simulate ⌘V to paste clipboard contents to new note keystroke "v" using command down end tell end tell Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now