λ
home posts study uses projects

Migrating Raycast Clipboard History

Oct 01, 2024

raycast

I’ve been a heavy Raycast user for the last 3 years. One thing I especially love is the Clipboard History feature - I’ve been keeping the stuff I copy for the last 1 year. I can really easily look stuff up I copied ages ago - links, random JSON responses, images (which are OCR processed), memes within seconds.

Recently I got a new laptop and wanted to move over my history. Unfortunately, even with Raycast’s Pro Plan, the clipboard history isn’t synced as it’s encrypted and stored on device. While researching how to do this I came across this Reddit post which suggests using an AppleScript to copy/paste several entries to a temporary file. I thought there should be another way - thankfully, @pertikaer helped me figure this out on Raycast’s slack.

  1. On your new Mac, quit Raycast
  2. Move the ~/Library/Application Support/com.raycast.macos directory somewhere (to use as backup)
  3. Also backup the database_key Keychain entry for Raycast by copying it somewhere Migrating Raycast Clipboard History-20241001102149656.webp Migrating Raycast Clipboard History-20241001102308858.webp
  4. On the old Mac, AirDrop the ~/Library/Application Support/com.raycast.macos directory to the new one and move it to the same place.
  5. Get the database_key from the old Mac’s Keychain using the steps from before and overwrite it on the new Mac’s keychain
  6. If you want to copy over your clipboard images as well, make sure to send ~/Library/Caches/com.raycast.macos to your other Mac as well.
  7. Start Raycast again

LλBS

All systems up and running

Commit c0dacf5, deployed on Nov 18, 2024.