mjolnir._asm.data.pasteboard

Home: https://github.com/asmagill/mjolnir_asm.data

This is a module provides access to the OS X clipboard from within Mjolnir

This module is based partially on code from the previous incarnation of Mjolnir by Steven Degutis.

changecount

mjolnir._asm.data.pasteboard.changecount() -> number

The number of times the pasteboard owner changed (useful to see if the pasteboard was updated, by seeing if the value of this function changes).

getcontents

mjolnir._asm.data.pasteboard.getcontents() -> string

Returns the contents of the pasteboard as a string, or nil if it can't be done

setcontents

mjolnir._asm.data.pasteboard.setcontents(string) -> boolean

Sets the contents of the pasteboard to the string value passed in. Returns success status as true or false.