Scripting Copied for macOS

Save Current Clipboard

tell application "Copied"
	save clipboard
end tell
AppleScript

copied = Application('Copied')
copied.saveClipboard()
JavaScript

Save Text

tell application "Copied"
	save "Text to save"
end tell
AppleScript

copied = Application('Copied')
copied.save('Text to save')
JavaScript

Save Text to a List

A new list will be created if it does not exist.

tell application "Copied"
	save "Text to save" in "List Name"
end tell
AppleScript

copied = Application('Copied')
copied.save('Text to save', {in: 'List Name'})
JavaScript

Copy Clipping at Index

copied = Application('Copied')
copied.copy(1)
JavaScript

copied = Application('Copied')
copied.copy(1, {in: 'List Name'})
JavaScript