[GH-ISSUE #539] Does Clipy has CUI? #357

Closed
opened 2026-03-03 01:11:56 +03:00 by kerem · 3 comments
Owner

Originally created by @your-diary on GitHub (Oct 25, 2023).
Original GitHub issue: https://github.com/Clipy/Clipy/issues/539

I want to access the contents of Clipy via CUI.

For example:

$ clipy 1 #accesses the latest history (i.e. the content of the native clipboard)
$ clipy 2 #accesses the second latest history
Originally created by @your-diary on GitHub (Oct 25, 2023). Original GitHub issue: https://github.com/Clipy/Clipy/issues/539 I want to access the contents of Clipy via CUI. For example: ```bash $ clipy 1 #accesses the latest history (i.e. the content of the native clipboard) $ clipy 2 #accesses the second latest history ```
kerem closed this issue 2026-03-03 01:11:56 +03:00
Author
Owner

@jsomers commented on GitHub (May 3, 2024):

I'm also interested in this—or just in knowing where Clipy stores the history data.

<!-- gh-comment-id:2093659063 --> @jsomers commented on GitHub (May 3, 2024): I'm also interested in this—or just in knowing where Clipy stores the history data.
Author
Owner

@your-diary commented on GitHub (Jun 14, 2025):

After 1.5 years, still looking for a way to do that...

<!-- gh-comment-id:2972295133 --> @your-diary commented on GitHub (Jun 14, 2025): After 1.5 years, still looking for a way to do that...
Author
Owner

@your-diary commented on GitHub (Jun 15, 2025):

Each history entry can be found as a separate file: ~/Library/Application Support/Clipy/<uuid>.data

Here's a sample script to print the first line of each history entry (newest to oldest):

#!/usr/bin/env bash

cd ~/Library/Application\ Support/Clipy

for file in $(ls -1 -t); do
    plutil -convert xml1 -o - "${file}" | yq --input-format xml '.plist.dict.array.string[-1]' | head -n 1
done

One can easily create their own clipy CLI using this.

<!-- gh-comment-id:2973620351 --> @your-diary commented on GitHub (Jun 15, 2025): Each history entry can be found as a separate file: `~/Library/Application Support/Clipy/<uuid>.data` Here's a sample script to print the first line of each history entry (newest to oldest): ```bash #!/usr/bin/env bash cd ~/Library/Application\ Support/Clipy for file in $(ls -1 -t); do plutil -convert xml1 -o - "${file}" | yq --input-format xml '.plist.dict.array.string[-1]' | head -n 1 done ``` One can easily create their own `clipy` CLI using this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Clipy#357
No description provided.