将当前 Google Chrome 标签页发送至Reminder

2014-11-27  本文已影响0人  双双

将当前 Google Chrome 标签页发送至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"
        -- 创建新提醒
        set newremin to make new reminder
        -- 给新提醒标题赋值
        set name of newremin to tabname
        -- 给新提醒内容赋值
        set body of newremin to taburl
    end tell
end tell
上一篇 下一篇

猜你喜欢

热点阅读