andy4222 Posted December 25, 2022 Share Posted December 25, 2022 Hi Alfred community, I wanted to 1. Paste all items in my Alfred clipboard history, how can I accomplish that? Would be good to have them pasted in the same order as I copied them in (if possible) 2. Paste previous items one by one. Like on each hotkey press, I can paste N (latest clipboard item), N-1, N-2, N-3.... Link to comment
Alan He Posted December 25, 2022 Share Posted December 25, 2022 for order,just uncheck it. Link to comment
vitor Posted December 25, 2022 Share Posted December 25, 2022 That’s the use case for the Sequential Paste workflow. Link to comment
andy4222 Posted December 26, 2022 Author Share Posted December 26, 2022 11 hours ago, vitor said: That’s the use case for the Sequential Paste workflow. I tried it and it does paste in order, but what about ` 1. Paste all items in my Alfred clipboard history, how can I accomplish that?` Link to comment
vitor Posted December 26, 2022 Share Posted December 26, 2022 Have a Run Script with default settings and code: sqlite3 "${HOME}/Library/Application Support/Alfred/Databases/clipboard.alfdb" 'SELECT item FROM clipboard WHERE dataType = 0 ORDER BY ts DESC;' And send it to a Copy to Clipboard Output. Do make sure you understand what pasting all items entails, though, it will be massive. Link to comment
andy4222 Posted December 26, 2022 Author Share Posted December 26, 2022 4 hours ago, vitor said: sqlite3 "${HOME}/Library/Application Support/Alfred/Databases/clipboard.alfdb" 'SELECT item FROM clipboard WHERE dataType = 0 ORDER BY ts DESC;' Works like a charm. I guess if I remove "DESC", it should retain the LIFO ordering? Also, for some reason the last 2 entries are always out of order. If I copy 1, 2, 3, 4. The output should be 1, 2, 3, 4, but it 1, 2, 4, 3 Link to comment
vitor Posted December 27, 2022 Share Posted December 27, 2022 Use ASC to guarantee opposite order. 5 hours ago, andy4222 said: for some reason the last 2 entries are always out of order. Maybe you’re copying them too fast, retaining the same timestamp? 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