nwebb Posted September 21 Share Posted September 21 Hi. I want to be able to add a horizontal line to text editors - a line that will resize. There's a nice solution here on Stack Exchange requiring you to paste an image into Notes whenever you need one. The post suggests using a TextExpander or similar so that you don't have to find the image each time, but looks like AlfredApp Snippets can't store and paste in images by default. I wondered if I can make a Workflow that will grab the image from a folder on my hard drive and paste it into the active app with a hotkey trigger? I'm new to creating workflows so I am hoping it's not too difficult and that parts of it can be done with automation tasks. Thanks. Link to comment
vitor Posted September 21 Share Posted September 21 Seems like you’re looking for the Rich Snippets workflow. Link to comment
nwebb Posted September 21 Author Share Posted September 21 (edited) 1 hour ago, vitor said: Seems like you’re looking for the Rich Snippets workflow. That's awesome, thanks so much! I've posted the following explanation on that StackOverflow thread as a way to show my appreciation. For anyone like me, who is brand new to this and wants a step-by-step with images (yes, there are instructions but a few steps were a little unclear to me at first) here you go: Install the Rich Snippets workflow Copy your image to your clipboard Invoke AlfredApp and type "richsave", then click on "Name Your Snippet" and give it a name like "HorizontalLine" At this point the image is saved as a rich snippet; when you type "richsnip" you will see "HorizontalLine" appear. Select it to paste your image. To take it a step further and invoke it like a normal snippet, do the following: Create a new blank workflow Grab a copy of Snippet Trigger, Arg and Vars Utility, and Call External Trigger Output, then joint them up. Ensure each is set up as shown in the attached images (note: when entering the Trigger ID, don't write it in manually, but instead use the "Workflow Triggers..." button to the right, as this will also fill in the Workflow ID for you) Now you can type ;;hl (or whatever keyword trigger you chose), and your image will paste. Edited September 21 by nwebb Better image vitor 1 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