Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Looking for AppleScript help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="tommyabroad" data-source="post: 28081"><p>Hello,</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>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.</p><p></p><p>The generic algorithm steps would go something like:</p><p> For every message in the inbox</p><p> if the message subject is like "ABC Corp<img src="/mac_images/images/smilies/Kiss.png" class="smilie" loading="lazy" alt=":*" title="Kiss :*" data-shortname=":*" />" then</p><p> Save message as plain text "subject.txt" in "xyz" directory</p><p> move message to trash</p><p> end if</p><p> next message</p><p></p><p>Can anyone offer some support?</p><p></p><p>Thanks,</p><p></p><p>TA</p></blockquote><p></p>
[QUOTE="tommyabroad, post: 28081"] 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 [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Looking for AppleScript help
Top