Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Outlook 2016 Mac:通过AppleScript将邮件移动到Gmail帐户中的文件夹_Macos_Outlook_Applescript - Fatal编程技术网

Macos Outlook 2016 Mac:通过AppleScript将邮件移动到Gmail帐户中的文件夹

Macos Outlook 2016 Mac:通过AppleScript将邮件移动到Gmail帐户中的文件夹,macos,outlook,applescript,Macos,Outlook,Applescript,我有一个AppleScript用于在Outlook 2016 for Mac中归档邮件。请看下面。在Outlook 2016 for Mac 16.13(2018年5月通过Insider慢速频道发布)上,当脚本尝试获取所选邮件/文件夹的帐户时,新添加的Gmail帐户中的邮件脚本失败(curAccount在将curAccount设置为curFolder的帐户后丢失值) 此版本的Outlook添加了对Google日历和联系人的支持,您需要删除和添加Gmail帐户才能获得此功能。该脚本适用于Excha

我有一个AppleScript用于在Outlook 2016 for Mac中归档邮件。请看下面。在Outlook 2016 for Mac 16.13(2018年5月通过Insider慢速频道发布)上,当脚本尝试获取所选邮件/文件夹的帐户时,新添加的Gmail帐户中的邮件脚本失败(curAccount在
将curAccount设置为curFolder的帐户后丢失值)

此版本的Outlook添加了对Google日历和联系人的支持,您需要删除和添加Gmail帐户才能获得此功能。该脚本适用于Exchange/Office365帐户以及升级到16.13之前添加的Gmail帐户。它只对新添加的Gmail帐户失败。我想,Gmail的整合在这个新版本的Outlook 2016 for Mac中做得不一样了

你知道这个问题的解决方法吗?你有没有在Gmail帐户中获取文件夹句柄的脚本示例

AppleScript

tell application "Microsoft Outlook"
        set currMsgs to current messages


        -- Check to make sure items are selected, if not then quit
        if (count of currMsgs) is 0 then
            display notification "No message selected" with title "Microsoft Outlook" subtitle "Move to Archive"
            return
        end if

        -- Iterate through selected items
        repeat with msg in currMsgs
            set curFolder to folder of msg
            set curAccount to account of curFolder
            if curAccount is missing value then
                display dialog ("An error occurred and the messages were not moved " & name of curFolder & " . Done") buttons {"Quit Script"} default button 1 with icon stop
                return
            end if
            set destFolder to folder "Archived" of curAccount
            move msg to destFolder
        end repeat

        --      1 Notification...
        if (count of currMsgs) is 1 then
            display notification "One message moved to " & name of curAccount & ":" & name of destFolder with title "Microsoft Outlook" subtitle "Move to Archive"
        end if

        --      Multi Notification...
        if (count of currMsgs) > 1 then
            display notification "" & (count of currMsgs) & " messages moved to " & name of destFolder with title "Microsoft Outlook" subtitle "Move to Archive"
        end if
end tell

我收到Outlook for Mac support的否定回复。给你。希望它能帮助寻找答案的人

注意:这不是问题的答案。我本应该把它作为对上述问题的评论,但下面的文本大小超出了评论中允许的范围

你好,我是Outlook升级工程师之一。我理解你 希望验证并查看有关Apple脚本的文档 谷歌预览账户的自动化

我确认Google预览版无法在Apple脚本中实现自动化。在 目前,我们还没有公开的相关文件 这我会检查我们能做些什么,然后让你知道。:)

我花了额外的一英里时间提交了一个关于这方面的功能请求 下面的链接。一旦获得批准并可用,请投赞成票

标题:让谷歌预览账户在苹果实现自动化 剧本

对于给您带来的不便,我深表歉意,但我们感谢您的耐心和耐心 理解力


微软对Outlook for Mac的支持再次声明,16.13中引入的新gmail集成功能“谷歌预览账户”不支持AppleScript。以前的gmail集成确实支持AppleScript。微软也没有公开记录这个问题。我在下面发布了完整的回复,作为下面的答案,因为文本大小超出了评论中允许的范围。