Macos 如何在Mac OS X上找到默认邮件客户端?
我有一个应用程序,它将图像作为输出,这些输出将在邮件客户端的新邮件中打开[作为附件] 在Mac OS X上,Apple mail是默认的邮件客户端。因此,我所做的是,编写了一个automator工作流,并使用“Open Finder Items”操作在Mail.app中打开输出 我的问题是: 如果用户已将“Microsoft Entourage”或“ThunderBird”或任何其他邮件客户端配置为其默认邮件客户端,则“我的自动机”操作无法在其配置的邮件应用程序中打开输出 我想在这个链接中找到并启动默认的邮件应用程序Macos 如何在Mac OS X上找到默认邮件客户端?,macos,email,applescript,automator,apple-mail,Macos,Email,Applescript,Automator,Apple Mail,我有一个应用程序,它将图像作为输出,这些输出将在邮件客户端的新邮件中打开[作为附件] 在Mac OS X上,Apple mail是默认的邮件客户端。因此,我所做的是,编写了一个automator工作流,并使用“Open Finder Items”操作在Mail.app中打开输出 我的问题是: 如果用户已将“Microsoft Entourage”或“ThunderBird”或任何其他邮件客户端配置为其默认邮件客户端,则“我的自动机”操作无法在其配置的邮件应用程序中打开输出 我想在这个链接中找到并
有谁能帮助我如何将输出图像附加到已启动邮件客户端的新邮件消息中吗?请注意,中接受的答案如下:
tell application "System Events"
try
value of property list item "LSHandlerRoleAll" of (property list item 1 of property list item "LSHandlers" of property list file (path to preferences as text) & "com.apple.LaunchServices.plist" where value of property list items contains "mailto")
on error
"com.apple.mail"
end try
end tell
您还可以使用MMac::InternetConfig
:
VERSIONER\u PERL\u preference\u 32\u BIT=1 PERL-MMac::InternetConfig-le'print+(GetICHelper“mailto”)[1]”
或:
对不起,各位,我的问题的答案是:我不知道如何将图像附加到默认邮件客户端的新邮件中。。你能帮助我吗?
$ ~/bin/DefaultApplication -url mailto:
/Applications/Mail.app