私はMacが初めてです。終了日が指定されていない定期的なイベントが 50 件ほどあります。すべての定期的なイベントを特定の終了日に変更する予定です。1 回の実行で変更するための Apple スクリプトを探しています。ありがとう!!
1 に答える
0
次のスクリプトは、必要なことを実行するはずです。タイトルを「ホーム」から興味のあるカレンダーの名前に変更する必要があります。また、終了日を「20130902」から必要なもの(YYYYMMDD形式)に変更する必要があります。
何らかの理由で、iCalはこの終了日から1日を引くように見えるため、この例では、終了日はすべて2013年9月1日に設定されます。
tell application "Calendar"
repeat with thisCal in (calendars whose title is "Home")
setEndDate of me to "20130902" for thisCal
end repeat
end tell
on setEndDate to endDate for thisCalendar
tell application "Calendar"
repeat with thisEvent in (events of thisCalendar)
if recurrence of thisEvent is not missing value and recurrence of thisEvent does not contain "UNTIL" then
set recurrence of thisEvent to recurrence of thisEvent & ";UNTIL=" & endDate
end if
end repeat
end tell
end setEndDate
于 2013-02-28T01:25:35.783 に答える