Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pulling JPEG files from Outlook
#1
Hey everyone,

I have a folder in outlook where people have emailed me pictures of products. I'm having difficulties trying to pull just the JPEG files from each email, is there a way to just identify the JPEG files and to identify how many there are in the email? For me it'll range from 1 to 8 or 9, I can't seem to figure it out. There are over 300 emails, so I'm trying to find a quicker way of grabbing the images off the emails.

If anyone can chime in and help that would be great, sorry for the noobish question. I'm learning all this on my own and still quite fresh. Thanks in advance!

-Anthony
#2
Gets source URLs of jpg images in current email in Outlook 2003.

Macro Macro2019
Code:
Copy      Help
int w=win("Inbox - Microsoft Outlook" "rctrl_renwnd32")
HtmlDoc d.InitFromInternetExplorer(w)
ARRAY(MSHTML.IHTMLElement) a
d.GetHtmlElements(a "IMG")
int i
for i 0 a.len
,str s=a[i].getAttribute("src" 0)
,sel s 3
,,case ["*.jpg","*.jpeg"]
,,out s
,
#3
Awesome Thanks Gintaras!

Also another question would be how can I set rep to a variable?

For example if I script an input box to be variable x, and I want x to be how many ever times it repeats. How would I script that?
#4
int x
...
rep x
,code
,code
#5
Ohhh I've been declaring it as a string.. Thank you so much!


Forum Jump:


Users browsing this thread: 1 Guest(s)