Clipboard Contents Did Change calls forever

5.282 should fix the issue.

Also added a predefined action to delete specific items from the clipboard manager, so now you can do something like this:


(if transformation happened, delete the second item from the clipboard manager)

Example JS:

async function doSomething() {
	let clipboardContentString = await get_clipboard_content({format: "NSPasteboardTypeString"});

	if(clipboardContentString.length > 0) {
	    let newContent = clipboardContentString + "something";
	    set_clipboard_content({content: newContent, format: 'NSPasteboardTypeString'});

		return true;
		
	} else {
		return false
	}
}
2 Likes