Skip to content

Instantly share code, notes, and snippets.

@KevinGutowski
Created June 10, 2020 03:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinGutowski/3070f78a76ea181fa05b23e55246ef44 to your computer and use it in GitHub Desktop.
Save KevinGutowski/3070f78a76ea181fa05b23e55246ef44 to your computer and use it in GitHub Desktop.
Pasteboard
let items = NSPasteboard.generalPasteboard().pasteboardItems()
console.log(items[0].types())
console.log(items[0].dataForType('com.bohemiancoding.sketch.v3'))
// __NSArrayM [
'com.bohemiancoding.sketch.v3',
'com.adobe.pdf',
'public.tiff',
'com.bohemiancoding.sketch.v3.tempfile',
'dyn.ah62d4rv4gu8y4y4xsv6023nukm10c6xenv61a3k',
'dyn.ah62d4rv4gu8y4y4ftb2g86xym72hk4ptr33zauxtqf3gkzd3sbwu' ]
// <01080000 780d0000 00000000 6276786e….>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment