Automator& AppleScript:如何将Notes和Reminders的文本导入为PDF和RTF?

时间:2012-11-27 07:35:46

标签: pdf applescript osx-mountain-lion rtf automator

我想将Notes和Reminders文档或文本导入并保存为PDF和RTF,保留或保留Notes或提醒的形式和背景,但Notes没有选项。

我想知道是否可以使用Automator和AppleScript将Notes和Reminders导入为PDF和RTF。

1 个答案:

答案 0 :(得分:0)

如果您有Gmail帐户,可以在Notes中将笔记移动到该帐户,然后将其移至Gmail网络界面中的其他文件夹。然后,您可以在Mail中选择备注并将其保存为纯文本或富文本(但不是PDF)。

如果您只需要提醒列表作为纯文本,Reminders支持AppleScript。

set output to ""
tell application "Reminders"
    repeat with l in lists
        set output to output & linefeed & "## " & name of l & linefeed & linefeed
        repeat with r in reminders of l
            set l to "- " & name of r
            set output to output & l & linefeed
            -- properties of r
        end repeat
    end repeat
end tell
-- set the clipboard to output