用于设置Outlook约会字体的Apple脚本,

时间:2017-06-03 07:01:26

标签: ios applescript

我使用下面的苹果脚本在Outlook日历中设置Outlook约会。它工作正常。现在我需要将字体设置为courier new for the content。如何通过Apple脚本设置字体。

string MainScript = @"tell application ""Microsoft Outlook""

                set theSubject to ""vSubject""
                set theContent to ""vContent""
                set StartSate to current date
                set day of StartSate to vStartDay -- important
                set month of StartSate to vStartMonth
                set year of StartSate to vStartYear
                set hours of StartSate to vStartHour
                set minutes of StartSate to vStartMinutes
                set seconds of StartSate to vStartSeconds


                set EndDate to current date
                set day of EndDate to vEndDay -- important
                set month of EndDate to vEndMonth
                set year of EndDate to vEndYear
                set hours of EndDate to vEndHour
                set minutes of EndDate to vEndMinutes
                set seconds of EndDate to vEndSeconds


                set newAppointment to make new calendar event with properties {subject:theSubject, content:theContent, start time:StartSate, end time:EndDate}



            end tell";

0 个答案:

没有答案