Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Batch printing attachments from multiple e-mails in Outlook
New Posts  All Forums:Forum Nav:

Batch printing attachments from multiple e-mails in Outlook

post #1 of 3
Thread Starter 
Here's the situation - I get about 40 e-mails a day at work, each with a single jpg attached, and I need to print the jpg off. Now, doing this manually takes a while, especially if it has built up. There doesn't seem to be any way of automating this within Outlook (2003 or 2007). So I look towards VBScript, as this seems to be an ideal candidate for scripting. Now, I don't know anything about VBScript (I'm a Python man myself), but here's some pseduocode:
Code:
For email In folder:

Print(MailItem.Attachment)
MailItem.MarkRead()

Next email

Is this something that would be possible? It looks simple enough, but where I don't know any of the object/method/attribute names, not to mention the syntax, I can't do it myself.
 
Black 'n' blue II
(13 items)
 
 
CPUMotherboardGraphicsOptical Drive
Intel Core i5-2515E Acer Aspire 5755G NVIDIA GeForce GT630M  DVD/CD 
OSOSMonitorCase
Linux Mint 14 x64 (Cinnamon) Windows 7 Home Premium 15.6 LED screen Acer Aspire 5755G 
Audio
Intel HD Audio 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveOSMonitor
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Vista Home Premium x64 Hyundai BlueH H224W 22" LCD 
KeyboardPowerCaseMouse
Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III Logitech MX518 
  hide details  
Reply
 
Black 'n' blue II
(13 items)
 
 
CPUMotherboardGraphicsOptical Drive
Intel Core i5-2515E Acer Aspire 5755G NVIDIA GeForce GT630M  DVD/CD 
OSOSMonitorCase
Linux Mint 14 x64 (Cinnamon) Windows 7 Home Premium 15.6 LED screen Acer Aspire 5755G 
Audio
Intel HD Audio 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveOSMonitor
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Vista Home Premium x64 Hyundai BlueH H224W 22" LCD 
KeyboardPowerCaseMouse
Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III Logitech MX518 
  hide details  
Reply
post #2 of 3
I don't have a solution... but I can say that parsing emails is tricky nasty business.... unless there is some library that will do this, parsing the text of emails is nasty stuff..... had to do it before and it was not fun at all.....
Regen v2
(18 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-3770K Asus p8z77-deluxe Asus Geforce GTX 590 samsung 4GB DDR3 
Hard DriveCoolingOSMonitor
Combined: 6.13 TB of space Silver Arrow SB-E Extreme Windows 8 Pro Asus VG278H 
KeyboardPowerCaseMouse
Overclock.net Ducky Keyboard Corsair AX1200 Corsair Obsidian 800D Logitech Performance MX 
AudioAudioAudioAudio
Onkyo TX-809NR KRK 10-3 Studio Mid-Field Monitors(Pair) HSU ULS-15 Subwoofer MOTO Microbook II 
AudioAudio
MXL v69 Mogami Edition Tube Microphone Rode PSA-1 Microphone Arm 
  hide details  
Reply
Regen v2
(18 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7-3770K Asus p8z77-deluxe Asus Geforce GTX 590 samsung 4GB DDR3 
Hard DriveCoolingOSMonitor
Combined: 6.13 TB of space Silver Arrow SB-E Extreme Windows 8 Pro Asus VG278H 
KeyboardPowerCaseMouse
Overclock.net Ducky Keyboard Corsair AX1200 Corsair Obsidian 800D Logitech Performance MX 
AudioAudioAudioAudio
Onkyo TX-809NR KRK 10-3 Studio Mid-Field Monitors(Pair) HSU ULS-15 Subwoofer MOTO Microbook II 
AudioAudio
MXL v69 Mogami Edition Tube Microphone Rode PSA-1 Microphone Arm 
  hide details  
Reply
post #3 of 3
Thread Starter 
Yeah, I know it's messy, but I thought that was the whole point of VBScript? To provide a scripting extension to MS Office products? I don't need to parse the actual e-mails - I was hoping the Outlook VBScript library might include classes that covered mail items & methods to access their attachments, and classes for the containing folders that allowed iterating over...
 
Black 'n' blue II
(13 items)
 
 
CPUMotherboardGraphicsOptical Drive
Intel Core i5-2515E Acer Aspire 5755G NVIDIA GeForce GT630M  DVD/CD 
OSOSMonitorCase
Linux Mint 14 x64 (Cinnamon) Windows 7 Home Premium 15.6 LED screen Acer Aspire 5755G 
Audio
Intel HD Audio 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveOSMonitor
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Vista Home Premium x64 Hyundai BlueH H224W 22" LCD 
KeyboardPowerCaseMouse
Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III Logitech MX518 
  hide details  
Reply
 
Black 'n' blue II
(13 items)
 
 
CPUMotherboardGraphicsOptical Drive
Intel Core i5-2515E Acer Aspire 5755G NVIDIA GeForce GT630M  DVD/CD 
OSOSMonitorCase
Linux Mint 14 x64 (Cinnamon) Windows 7 Home Premium 15.6 LED screen Acer Aspire 5755G 
Audio
Intel HD Audio 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveOSMonitor
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Vista Home Premium x64 Hyundai BlueH H224W 22" LCD 
KeyboardPowerCaseMouse
Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III Logitech MX518 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Batch printing attachments from multiple e-mails in Outlook