Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
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
You can’t perform that action at this time.