talkingmoose / Outlook-Exchange-Setup

AppleScript for administrators to automatically configure user Exchange account settings in Outlook for Mac
http://www.officeformachelp.com/outlook/exchange/setup-script/
33 stars 5 forks source link

scheduled event is no longer deleted - office 14.4.3 #1

Open diwanicki opened 10 years ago

diwanicki commented 10 years ago

The “Exchange Setup” Schedule which this script injects to build the account is not being deleted any more, resulting in a new mailbox being created every time Outloook is launched, until the scheduled item is manually removed from the Schedules preference.

talkingmoose commented 10 years ago

Just tested using the command by itself:

tell application "Microsoft Outlook"
    delete schedule "Exchange Setup"
end tell

Something before this line in the script may be causing the remainder of the script to fail. The script encloses the account creation command in "try" an "end try" statements to silently fail if it encounters a problem. Comment those lines and manually run the script to see what's erring.