將當(dāng)前 Google Chrome 標(biāo)簽頁(yè)發(fā)送至Reminders
tags: macOS
, AppleScript
, Chrome
, Reminder
tell application "Google Chrome"
-- 獲取當(dāng)前標(biāo)簽頁(yè)的標(biāo)題
set tabname to get title of active tab of window 1
-- 獲取當(dāng)前標(biāo)簽頁(yè)的超鏈接地址
set taburl to get URL of active tab of window 1
tell application "Reminders"
-- 創(chuàng)建新提醒
set newremin to make new reminder
-- 給新提醒標(biāo)題賦值
set name of newremin to tabname
-- 給新提醒內(nèi)容賦值
set body of newremin to taburl
end tell
end tell