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
macOS & iOS Developer Playground
macOS - Development and Darwin
AppleScripting Archiving to Finder of Mail Messages
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="Azteck" data-source="post: 1351528" data-attributes="member: 232156"><p>I want to script Archiving of Mail Messages.</p><p>I am new to AppleScript but have 18 years experience of scripting FileMaker.</p><p>I have found scripts that enable one to archive the contents of a Mail folder but this is NOT what I want to do. (and the scripts are locked down as Applications so I can not extract code)</p><p>I have also found scripts that will enable to create a new Message and send it. Again NOT what I want to do.</p><p></p><p>Proposed WorkFlow</p><p>While in Mail: create and finish Message</p><p>Instead of clicking Send in Mail, I want to fire a script that:</p><p>Send the 'currently open' Message</p><p>Save the Message in Raw Message Source to a Finder Folder of my choice (ie: within my Finder files relating to a project (say))</p><p>Move the Message within Mail to a Folder called 'Delete in 6m' (say)</p><p></p><p>This workflow moves the decision making and archiving to the moment of message creation.</p><p></p><p>Other variants would:</p><p></p><p>While viewing an Inbox Message would:</p><p>Close Message</p><p>Save the Message in Raw Message Source to a Finder Folder of my choice</p><p>Move the Message within Mail to a Folder called 'Delete in 6m' (say)</p><p>(this could be the same script as above with an IF test that checks some property such as who the recipients are)</p><p></p><p>OR</p><p></p><p>Send</p><p>Move the Message within Mail to a Folder called 'Delete in 6m' (say) </p><p></p><p></p><p>I can not find a way of:</p><p>Q1 sending the 'currently open' message</p><p>Q2 saving the 'currently open' message to a Finder folder</p><p>Q3 addressing the 'currently open' message in any way</p><p>Q4 any idea on a suitable IF test that will be reliable (considering that I use several accounts and an outgoing e-mail could contain one of my e-mail addresses as a recipient.)</p><p></p><p>I am sure that AppleScript is the tool to use, but have to say that it is impenetrable for a newcomer. (Quite unlike FileMaker)</p><p>Q5 Can anyone recommend a book or tutorial for someone with years of programming experience but who has not got a clue about the library of instructions available OR the syntax for these instructions.</p><p></p><p>This is an enquiry for my own use.</p><p></p><p></p><p>Technical</p><p>PowerBook G4 running OS 10.4.11</p><p>Mail 2.1.3</p><p>AppleScript Editor 2.1.2</p><p></p><p>Also MacPro 2xquad core - but everything has to work on the PowerBook</p><p></p><p>Happy New Year to all</p></blockquote><p></p>
[QUOTE="Azteck, post: 1351528, member: 232156"] I want to script Archiving of Mail Messages. I am new to AppleScript but have 18 years experience of scripting FileMaker. I have found scripts that enable one to archive the contents of a Mail folder but this is NOT what I want to do. (and the scripts are locked down as Applications so I can not extract code) I have also found scripts that will enable to create a new Message and send it. Again NOT what I want to do. Proposed WorkFlow While in Mail: create and finish Message Instead of clicking Send in Mail, I want to fire a script that: Send the 'currently open' Message Save the Message in Raw Message Source to a Finder Folder of my choice (ie: within my Finder files relating to a project (say)) Move the Message within Mail to a Folder called 'Delete in 6m' (say) This workflow moves the decision making and archiving to the moment of message creation. Other variants would: While viewing an Inbox Message would: Close Message Save the Message in Raw Message Source to a Finder Folder of my choice Move the Message within Mail to a Folder called 'Delete in 6m' (say) (this could be the same script as above with an IF test that checks some property such as who the recipients are) OR Send Move the Message within Mail to a Folder called 'Delete in 6m' (say) I can not find a way of: Q1 sending the 'currently open' message Q2 saving the 'currently open' message to a Finder folder Q3 addressing the 'currently open' message in any way Q4 any idea on a suitable IF test that will be reliable (considering that I use several accounts and an outgoing e-mail could contain one of my e-mail addresses as a recipient.) I am sure that AppleScript is the tool to use, but have to say that it is impenetrable for a newcomer. (Quite unlike FileMaker) Q5 Can anyone recommend a book or tutorial for someone with years of programming experience but who has not got a clue about the library of instructions available OR the syntax for these instructions. This is an enquiry for my own use. Technical PowerBook G4 running OS 10.4.11 Mail 2.1.3 AppleScript Editor 2.1.2 Also MacPro 2xquad core - but everything has to work on the PowerBook Happy New Year to all [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
AppleScripting Archiving to Finder of Mail Messages
Top