我想将图像附加到电子邮件中的Outlook文件夹中,将它们转换为PDF并将其保存到文件夹中。到目前为止,我拥有的代码会获取附件并将其保存到文件夹中,但是我不知道要添加什么内容才能将其转换为PDF。
set saveToFolder to POSIX path of "/Users/userXXX/Documents/DestinationFolder/"
tell application "Microsoft Outlook"
set srcFolder to folder "ImageFolder" of default account
set selectedMessages to messages of srcFolder
repeat with msg in selectedMessages
set msgsender to the sender of msg
set senderaddress to the address of msgsender
set attFiles to attachments of msg
repeat with f in attFiles
set attName to (get the name of f)
log attName
set saveAsName to saveToFolder & attName
log saveAsName
save f in POSIX file saveAsName
end repeat
end repeat
end tell