Created
June 10, 2020 03:45
-
-
Save KevinGutowski/3070f78a76ea181fa05b23e55246ef44 to your computer and use it in GitHub Desktop.
Pasteboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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