Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.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
Email 我能';“不要选择”这个词;第一条消息;使用Applescript…;_Email_Applescript - Fatal编程技术网

Email 我能';“不要选择”这个词;第一条消息;使用Applescript…;

Email 我能';“不要选择”这个词;第一条消息;使用Applescript…;,email,applescript,Email,Applescript,因此,我可以反复浏览一组电子邮件,以使用: repeat with eachMessage in emailSelection log content of eachMessage set theContent to content of eachMessage end repeat 然而,当我试图任意选择一个,比如说集合中的第一个,我会得到一个错误 set newContent to content of first message i

因此,我可以反复浏览一组电子邮件,以使用:

repeat with eachMessage in emailSelection
        log content of eachMessage
        set theContent to content of eachMessage
    end repeat
然而,当我试图任意选择一个,比如说集合中的第一个,我会得到一个错误

        set newContent to content of first message in emailSelection
返回:

(无法获取{应用程序“邮件”的帐户“IMAP PL”的邮箱“收件箱”的邮件id 740166、应用程序“邮件”的帐户“IMAP PL”的邮箱“收件箱”的邮件id 740165、应用程序“邮件”的帐户“IMAP PL”的邮箱“收件箱”的邮件id 739792、应用程序的帐户“IMAP PL”的邮箱“收件箱”的邮件id 740164)中的邮件1“邮件”,应用程序“邮件”的帐户“IMAP PL”的邮箱“收件箱”的邮件id 738259,应用程序“邮件”的帐户“IMAP PL”的邮箱“收件箱”的邮件id 738258,应用程序“邮件”的帐户“IMAP PL”的邮箱“收件箱”的邮件id 738257。)


我想选择电子邮件集中的第一个对象,但它似乎试图识别一个电子邮件id“1”,该id显然不包括在所选电子邮件集中。

您需要使用
关键字将emailSelection作为列表引用

例如


哈,是的,这就是我喜欢AppleScript的地方,它有点像对话,仍然在等待“礼仪”插件。“请你把这个变量复制到剪贴板上好吗?”
set newContent to content of (item 1 of emailSelection)
set newContent to content of (the first item of emailSelection)