T
tommyabroad
Guest
Hello,
I'm a Newbie to Mac-Forums and to AppleScript. I can't seem to find any forums dedicated AppleScript so I will post this here as a start.
While I have used a Mac at home for many years my recent programing has been in M$ VBA on my employers PC. Looking at AppleScript I can see some potential but the script editor is not as powerful the VBA editor when it comes to learning the language. I learn best by studying sample scripts but I have been unable to find a script that does anything like what I want to do.
I am trying to export a large number of e-mails from OS X Mail and save them as simple text files. I am struggling to both understand the object structure and how to reference it. Therefore the information in the Dictionary doesn't help me much.
The generic algorithm steps would go something like:
For every message in the inbox
if the message subject is like "ABC Corp
" then
Save message as plain text "subject.txt" in "xyz" directory
move message to trash
end if
next message
Can anyone offer some support?
Thanks,
TA
I'm a Newbie to Mac-Forums and to AppleScript. I can't seem to find any forums dedicated AppleScript so I will post this here as a start.
While I have used a Mac at home for many years my recent programing has been in M$ VBA on my employers PC. Looking at AppleScript I can see some potential but the script editor is not as powerful the VBA editor when it comes to learning the language. I learn best by studying sample scripts but I have been unable to find a script that does anything like what I want to do.
I am trying to export a large number of e-mails from OS X Mail and save them as simple text files. I am struggling to both understand the object structure and how to reference it. Therefore the information in the Dictionary doesn't help me much.
The generic algorithm steps would go something like:
For every message in the inbox
if the message subject is like "ABC Corp

Save message as plain text "subject.txt" in "xyz" directory
move message to trash
end if
next message
Can anyone offer some support?
Thanks,
TA