// --------------------------------------------------------
// Get the Clipboard
// --------------------------------------------------------
(() => {
const currentApp = Application.currentApplication();
const stdAdditions = (currentApp.includeStandardAdditions = true, currentApp);
let clipboardStr = stdAdditions.theClipboard();
return clipboardStr;
})();
// --------------------------------------------------------
// Set the Clipboard
// --------------------------------------------------------
(() => {
const currentApp = Application.currentApplication();
const stdAdditions = (currentApp.includeStandardAdditions = true, currentApp);
let theStr = "Now is the time for all good men to come to the aid of their country."
currentApp.setTheClipboardTo(theStr);
})();
// --------------------------------------------------------