Skip to main content
Question

schedule outlook script


Forum|alt.badge.img+4

we're moving from Exchange to O365. One of the challenges we face is deployment. At the moment we have a script that auto configures all accounts for us. What we need is a way to add in a scheduled script in outlook that does NOT amend or tamper with any of the users existing data but prompts a second script to run (once only). Any ideas please? I know how to manually do this, but need to automate to send out as a composer packaged .dmg via casper.

thanks,

10 replies

Forum|alt.badge.img+12
  • Contributor
  • 194 replies
  • June 17, 2014

would you care to share this script? I am looking for a script to automate the configutation of Outlook on the client machines. @chutiya


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 22 replies
  • June 17, 2014

send email address, and I'll send it across.


Forum|alt.badge.img+14
  • Valued Contributor
  • 85 replies
  • June 17, 2014

Same here could you share it ?


Forum|alt.badge.img+12
  • Contributor
  • 189 replies
  • June 17, 2014

To run a script within Outlook will require AppleScript, and then that will need to run as a scheduled event within Outlook. I learned that from @talkingmoose][/url; he is the expert and he does share his knowledge in github (https://github.com/talkingmoose?tab=repositories) and elsewhere.

If you have already done so, check out his "Outlook-Exchange-Setup" script for ideas. Now, to run the second script so it does not affect the current user's data, I will plead ignorance, but that second script will still need to follow the same rules as the first one: be Applescript and have to run as a scheduled event.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 22 replies
  • June 18, 2014

thanks @SeanA - I've been told by my project manager that I should be looking for where Outlook calls the scripts from and where the Outlook first run file is kept on macs. We want Outlook to call this script when users launch Outlook. If that makes sense.


Forum|alt.badge.img+10
  • New Contributor
  • 596 replies
  • June 18, 2014

you would probably have to try to deploy an applescript that opens outlook, opens the schedules menu, adds in a new item to run at startup, and have that item fire off talkingmoose's outlook auto configure script
You may need to use applescript and assistive access to have applescript hit the menu items and buttons etc etc.
below is the screenshot of where you need to be looking for the schedules.
external image link


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 22 replies
  • June 18, 2014

thanks @calumhunter - we know where to put the schedule in outlook. Its just how to automate this process we're struggling with. Through experience (I'm going to try it today) does anyone know if open composer take opening snapshot- do this process - take closing snapshot will capture all the information we need?

thanks,


Forum|alt.badge.img+10
  • New Contributor
  • 596 replies
  • June 18, 2014

@chutiya like i said i think you will need to create an applescript that actually automates this using GUI scripting. The applescript would need to do the following actions:

Open outlook on the client machine
open the schedules menu item
click the plus button
type in a name for the new schedule
click on menu for when and change it to "At Startup"
click on the action menu and change it to "run applescript"
click on the script button and hopefully find a way to put in the path to the configuration script. Im thinking that perhaps using "apple-shift-g" to bring up the path dialog and then you should be able to enter in the location of the configuration script

I hope that is a bit more clear? The reason for this is that outlook stores all its settings in the main identity database and so we need to use outlook to create the schedule and have it run the configuration script at next launch so that outlook can save this information in to the main identity database. So no taking a composer snap shot will not work as we need to modify the outlook main identity database directly and the only way to do that is using outlook.

have a look at http://www.macosxautomation.com/applescript/uiscripting/


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 22 replies
  • June 18, 2014

makes sense - thank you very much @calumhunter


Forum|alt.badge.img+7
  • Contributor
  • 28 replies
  • April 24, 2015

I would like to know the script

Kde82@mac.com


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings