【在中查找最近标记的邮件邮件.app使用appscript】盛年不重来,一日难再晨,及时当勉励,岁月不待人。这篇文章主要讲述在中查找最近标记的邮件邮件.app使用appscript相关的知识,希望能为你提供帮助。
- #!/usr/bin/env ruby
- require " rubygems"
- require " appscript"
- include Appscript
- require " active_support"
- mail = app( " Mail" )
- accounts = { " Personal" => " INBOX" ,
- " Both Pieces IMAP" => " INBOX" ,
- " Exchange" => " INBOX" }
- accounts.each do |acct,box|
- account = mail.accounts[ acct] .get
- inbox = account.mailboxes[ box] .get
- messages = inbox.messages[ its.flagged_status.eq( true) .and(
- its.date_received.gt( Time.now - 3.days)
- ) ] .get
- messages.each do |m|
- puts m.subject.get
- end
- end
推荐阅读
- 从应用程序启动android浏览器
- AppleScript强制退出应用程序-sugar sync kill SugarSyncCMPlugInLoader
- 唯一标识android设备
- 启用Apple的内置VNC服务器
- 从导入笔记邮件.app进入Evernote(Applescript)
- 从导入笔记邮件.app进入Evernote
- Apple设备检测
- android动画幻灯片下载
- Apple Touch设备图标