清空剪貼簿 (pasteboard.clear)
聲明
剪貼簿中的資料 = pasteboard.clear()
回傳值
-
剪貼簿中的資料
表型,返回剪貼簿中的資料,可能包含多項,每項包含type和data兩個字段剪貼簿中的資料結構
{
{
type = "public.utf8-plain-text",
data = "具体的数据",
},
{
type = "public.rtf",
data = "具体的数据",
},
{
type = "public.html",
data = "具体的数据",
},
...
}
說明
清空系統剪貼簿
關鍵詞:清空剪貼簿、清空剪切板、清空粘貼板
軟體版本在 1.3.8 或以上方可使用
範例
pasteboard.clear() -- 清空剪貼板