gingerbeardman Posted April 28, 2023 Share Posted April 28, 2023 (edited) I would like to use "Copy to Clipboard" action to paste some custom text with a hotkey - automatically paste into front app - mark as transient but what is the good way to restore clipboard contents afterwards? or an alternative way to paste some custom text on hotkey would be appreciated. thanks! Edited April 28, 2023 by gingerbeardman Link to comment
gingerbeardman Posted April 28, 2023 Author Share Posted April 28, 2023 My workaround: 1. Argument to capture initial clipboard contents 2. Delay to wait until custom text is pasted 3. Separate Copy to Clipboard to restore old contents Link to comment
vitor Posted April 28, 2023 Share Posted April 28, 2023 You don’t need to capture the contents of the clipboard to a variable. Nor to have them be separate connections, they can be done in a row: Hotkey → Copy to Clipboard with the text you want (plus “paste” and “transient” options) → Delay (because macOS still needs time to react) → Copy to Clipboard with {clipboard:0} as the contents (see more about Dynamic Placeholders). Link to comment
gingerbeardman Posted April 30, 2023 Author Share Posted April 30, 2023 (edited) Awesome! I've optimised my workflow in that way. Thank you Edited April 30, 2023 by gingerbeardman 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