bactch print for "Outlook calendar printing assistant" - outlook

I'm using "Outlook calendar printing assistant" to organize my daily work list, then print it out every morning, just wondering if the print job can be done automatically through some kind of batch command line?

Yes, you can either use macros to script Outlook externally via automation, or you could build an addin.
You would collect the appointments for the day and use AppointmentItem.PrintOut().
But before you go for that you should take a look to see if there isn't already an addin which does what you need.

Related

Command line or other tools to collect outlook add-in's installed?

Is there any tool or utility to see the list of admin-managed Outlook add-ins installed on a user machine?
This will be helpful to gather diagnostics using script rather than asking users to take screenshots and upload manually?
Can we get manifest info used by the add-in using any utility tool or from UI?
There is no such tools. You can find the list of web add-ins in the hidden items of your Inbox folder. If you try to use MFCMAPI and navigate to the associated content table of your Inbox where you can find the list of hidden messages:
Every message with a message class set to the IPM.Configuration.ClientExtension.* represents a web add-in installed for your mailbox.
Admins can run this powershell commandlet to get add-ins for individual users:
Get-App -Mailbox <userEmailAddress>

Automator App to Send Print Job at Specified Time

I need a way to have a Mac send a print job at 8:30 every morning. Our copier takes FOREVER to wake up, and we'd like to have it warm and ready to go when we walk in. Automator is ideal, but any solution that's feasible for a non-developer is welcome. Thanks!
Yes this can easily be done with Automator.
Create an empty document and save it (somewhere you won't move it)
Open Automator and create a new Calendar Alarm workflow
Drag in the Get Specified Finder Items into the workflow
Add the empty document you just created
Drag in the Print Finder Items
Select the printer you want
Save the workflow. Calendar will open
Edit the new Calendar entry
Select the time you want the workflow to start
Put repeat on every day or a custom repeat (only office days)
Note: Your Mac needs to be on and you need to be logged in.

Adding environment variable to a commandline argument in a windows shortcut

So I'm trying to make a mailto link on a windows desktop. This is to automate opening a mail client by inserting the recipient and subject automatically. I can do just that, however I'd like to include either the current date or the previous date in the beginning of the subject line. I've tried:
%windir%\explorer.exe mailto://user#email.com?subject=%date% 'Rest Of Subject'
and every other variant I can think of. The link either reads %windir% correctly or just skips it but opens fine. However, I see the literal '%date' in my subject.
Is this possible without using batch files or scripting? This is for work different computers at different locations, where users aren't exactly computer savvy and need things done for them. Also for bonus points, is there a way the also make the file attach dialog pop up? The purpose of this is to send security log word document from different locations to a central email address. Thanks and I hope to hear from anyone who can direct me where to look or give me some hints on my command line fu!

vbscript windows xp warning message based on date

I would like windows XP to have a running script that checks the "date modified" of files as they are opened and give the user a warning message if the date matches between 1/1/11 to 7/15/14. The files might have no extension, a .pm5 extension, a .nc extension or a .drl extension. I'm not concerned with any other file extensions.
Ive found help how to create a .vbs windows message box, I found help how to check for date modified but not how to check any file with listed extension being opened and give a warning message.
thank you all
There is no feature for this in script. So you need a vb.net program using a filewatcher object. You can make vb.net programs on your computer with notepad. See here for the principal http://social.msdn.microsoft.com/Forums/en-US/adcae113-4758-481a-a367-60d5d14d97d6/this-is-how-to-turn-vbs-and-js-files-into-exe-files-from-the-command-line-without-third-party-tools?forum=scripting.
You could turn on auditing of files, set the containing folders to audit files (note two steps to audit something). An security event will be written to event log.
Task Scheduler can run tasks based on event log messages.

Save Outlook Email as text file, and then run a script on it?

I'm using Outlook 2007. I have no experience with Windows programming or VBA, as all of my background is on Unix systems. I am attempting to have Outlook save each incoming emails as text file, and then a run a python script which will parse this text file.
I found this question which seems to provide some VBA code to accomplish the first task, but I'm not sure how to utilize it. I open the Visual Basic Editor, but have no idea how to proceed from there. I tried saving the text as a module, but when I attempt add "run a script" in an Outlook rule, no scripts are available. What am I doing wrong?
EDIT: Clarification.
I'm assuming you're familiar with coding at some level, even if not on Windows. You may want to do some general background reading on Outlook VBA; some resources on this would be a Microsoft article, this article from OutlookCode, and so on - there's a ton of resources out there with walkthroughs and examples.
Addressing your specific question: take a look at this Microsoft KB article, which describes how to trigger a script from a rule.
The key to getting started once you've gotten your VBA editor open is to double-click a module on the left, for example ThisOutlookSession (under 'Microsoft Outlook Objects').
That should give you an editor you can paste code into. Bear in mind that (per the above MS page) your procedure must accept a MailItem object, which will be the item that the rule has in hand, so the linked example you gave would have the first couple of lines changed from:
Sub SaveEmail()
Dim msg As Outlook.MailItem
' assume an email is selected
Set msg = ActiveExplorer.Selection.Item(1)
' save as text
[...]
...to:
Sub SaveEmail(msg As Outlook.MailItem)
' save as text
[...]
Essentially you're being handed a MailItem rather than having to create it and connect it to the selected item in Outlook.
To achieve the second task of 'running a script' on the file, I'm assuming that you want your VBA to make changes to the file after it's been saved? This is pretty straightforward in VBA, and you'll find lots of examples for it. One pretty simple outline is in this answer.
Edit based on comments: to launch an external tool, you can use either the Shell command if you don't need to wait for it to complete, or you can use one of the many Shell-and-wait implementations floating around, for example this popular one. Or, you can use the WScript approach in this answer.
Note that you'll need to ensure Outlook is set to allow macros to run, and you will probably want to sign your code.

Resources