pasteboard.getType()

Type function
Return value String
Revision Release 2024.3703
Keywords getType, pasteboard
See also Pasteboard
pasteboard.setAllowedTypes()
pasteboard.copy()

Overview

Returns the type of data of the top-most item on the pasteboard. Returns either "string", "url", "image" when data is present. Otherwise returns nil.

Syntax

pasteboard.getType() 

Example

local pasteboard = require( "plugin.pasteboard" )

-- Get the type of data on the pasteboard
local dataType = pasteboard.getType()