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

将当前 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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 173,612评论 25 708
  • 昨天在藏书馆,一口气看完了小说《喜宝》 一年前,听了庆山的小说《暖暖》 《暖暖》是个哀伤而优美的故事,里面有提到亦...
    素白yan阅读 334评论 0 0
  • 新的一年开始了,想祝福大家和自己,想到了《诗经·小雅》里的《天保》这首祝福的诗,但愿《天保》我们每一个人,在...
    金色麦子阅读 1,487评论 0 0
  • 人一辈子能给一个人说的再见是有限的,说够了数那个人就会从你人生里完全消失,想想看真是可怕 曾经我不相信,现在我只说拜拜。
    铸言阅读 193评论 0 0