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