Skip to content

Instantly share code, notes, and snippets.

@ccgus
Created January 15, 2019 00:58
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 ccgus/d5ab15c9d7c87dff7c89333b73816340 to your computer and use it in GitHub Desktop.
Save ccgus/d5ab15c9d7c87dff7c89333b73816340 to your computer and use it in GitHub Desktop.
/*
How to install this plugin:
1) Choose Acorn's Help ▸ Open Acorn's App Support Folder menu item.
2) Place this script in the Plug-Ins folder (and make sure it ends with .jstalk)
3) Restart Acorn. The plugin will now show up in the Filter menu.
*/
function main(image, doc, layer) {
[[[[NSCursor currentSystemCursor] image] TIFFRepresentation] writeToFile:"/tmp/foo.tiff" atomically:true];
[[doc baseGroup] insertImageWithPath:"/tmp/foo.tiff" atIndex:0 withName:"Cursor"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment