AppleScript to choose a message in mail & download the attachment

Hello

I would like to know if there is a way to prompt the user to choose a message like how we are able to choose file / folder?

Above all, I would like the process to go as:

Choose a mail, download his attachment, perform actions on the attachment.

I'm stuck at how I can refer to a message as well to download the attachment. ATM, I'm only able to get the message ID in already by selecting the message in Mail and making "set my_Sel to get the selection."

Thank you.

It might be possible, but heavy, at best.

It would be much easier to create a user screen the message in question and then call the script, but if you want to go the other way you may:

(a) a list of all messages in the mailbox

(b) to present the user with a list of posts by choose in the list

(c) affect the result

What is your opposition to act on the selection?

Tags: Mac OS & System Software

Similar Questions

  • When I try to open my MSN mail a message appears you download the mail.mailhost file.

    When I try to open my msn e-mail, a message appears you download the file mail.mailhost (1,500 K B). When I try to open this file to another show the following message: Windows cannot open this file

    Hello zvonkogrgurevic,

    The best place to ask your question to MSN's inside MSN help forums. Experts specialize in all things MSN, and would be happy to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    https://support.MSN.com/default.aspx?WA=wsignin1.0&St=1&wfxredirect=1

  • Need help to download the attachment from mail Client

    Hello

    I am trying to download the attachment from the mail using AttachmentDownloadManager API. For that I am currently using the code below:

    public class MailMinder extends UiApplication {
    
    public static void main(String args[]) {
        MailMinder theApp = null;
            try {
                theApp = new MailMinder();
            } catch (Exception e) {
                Dialog.alert("Exception e = " + e.toString());
            } finally {
                theApp.enterEventDispatcher();
            }
        }
    
        private MailMinder() {
    
            AttachmentDownloadManager adm = new AttachmentDownloadManager();
            adm.download(bodypart, null, new DownloadProgressListener() {          // Not able to get the Bodypart object here
    
                                public void downloadCancelled(Object element) {
    
                                }
    
                                public void downloadCompleted(Object element) {
                                    //Here i am doing the parsing of the attachment
                                }
    
                                public void updateProgress(Object element, int current, int total) {
    
                                }
    
        }
    }
    

    As you can see, this API download() method is required the Bodypart object I get using the subject line of the Mail or of the Open Message.
    But I'm not able to get the object of the open message I tried using MessageListener and FolderListener API. And when I open a Message in the Messages Application, I must add a Menuitem.

    Can someone help me to get the Open Message of the Message object and add the Menuitem?

    Note: I don't want to use the Attachment Manager API as it's require the xirimdevice prefix in the name of the attachment.

    Hi Mark. I am able to fix this with a different approach. Please check in my blog: BlogforMobile

    Thanks a lot again for your support.

  • I want to send my message by mail with the email form that I have already installed

    I want to send my message by mail with the email form that I have already installed

    original title:<>

    Hi Michael,

    I suggest you to check if you get the same message in Internet explore, if you use Firefox I suggest you contact Firefox for using the link below.
     
    Hope this information helps.
  • I can't not persistent install the latest update of Adobe Audition. It is not a CC version but came on disc in CS6. I constantly get this error message after you download the update that does not install: U43M1D207. What are the steps to complete t

    I can't not persistent install the latest update of Adobe Audition. It is not a CC version but came on disc in CS6. I constantly get this error message after you download the update that does not install: U43M1D207. What are the steps to perform this installation?

    Adobe Audition: For Macintosh

  • Can not download the attached PDF to mail on the iPhone 6

    Can not download the attached PDF to mail on the iPhone 6

    Hi mati19,

    Could you go look in section "Open of Mail" from the FAQ document to see if it answers your question?

    How to open PDF documents in Adobe Acrobat DC for iOS (iPhone version)

    Please let us know if you have any additional questions.

  • can not download the attachment for hotmail

    Can not download the attachment for hotmail. The "uploading...". "sign never finished. But attachment downloading works in Internet Explorer. I tried to disable, uninstall and reinstall silverlight, but none of them seems to fix the problem.

    You have a user agent which is corrupt and which identifies you as undefined GoogleToolbarBB

    See:

  • Error code: message 43 on downloading the last update CC

    I get an error Code: message 43 downloading the last update CC.  Does anyone have experience with this?

    Thanks Atul,

    I couldn't find my error Code: 43 in this article, but the problem was solved after I uninstalled my creative application Cloud Desktop and reinstalled.

  • I got the A12E6 error message when you download the CC suite

    I have enclountered an error message code A12E6 when downloading the client software of Photoshop.  Anyone had this problem before.

    I find it a little more difficult navagting solving the customer support.

    Hello Sui-Te Wu.

    Please see the thread: http://forums.adobe.com/message/5259577#5259577#5259577.

    Kind regards

    Romit Sinha

  • Download the attachment to Email

    I want to get an image received as an attachment in an email, but I can't seem to understand the correct way to do it.

    When an e-mail is received I can get the attachment in an object of attachment, but the way some points to

    / Accounts/1000/pimdata/messages/1419773287/2/4/4374/att-itiqa1

    What should I do from here to turn it into a JPEG somewhere on the system so I can access it.

    I sent the e-mail, also in the code using

    builder->body(MessageBody::Html, bodyData);
    QString contentId = "image" + QString::number(0) + "@b.sky.com";
    QVariantMap metaData;
    metaData["Content-ID"] = "<" + contentId + ">";
    Attachment attachment = Attachment("image/jpeg", QFileInfo(fname).fileName(), QUrl::fromLocalFile(fname.remove("file:///")), metaData);
    builder->addAttachment(attachment);
    

    Any help appreciated.

    I solved this problem using MessageService to retrieve the attachments() which gives me FileAttachment instead, and the FileAttachment fullPath() gives the correct path for my image.

  • can download the attachment, but cannot send using firefox

    When I try to send an attachment bar with the paper clip bing etc does not work. pointer does nothing when trying to click on attach. Can I download an attachment but not send. Itried deletion of silverlight but not my laptop difference use Kaspersky

    Hello

    I suggest using Internet Explorer and check to see if you encounter the same problem.

    If the problem is only with Firefox so I suggest you post your question on the link provided below for assistance.

    http://www.Mozilla.org/about/forums/#end-user-support

  • E-mail message full automatic download (incl. attachment) on iPad - so I can work offline on emails

    I would totally and automatically download my emails (including attachments) when connected to the network (WiFi or 4 G), so that I can work on my emails when 'off line' (i.e., plane). Now, I often get the error message 'message not downloaded from the server. Please your audience.

    There is no setting to do that automatically - it can vary on the type of network, you're on - some users have reported all their emails downloaded - others indicated only small do - you use a POP or IMAP account type?

    Another option is to consider an application like Documents 5 - but you must always manually download and store e-mail messages and attachments you can work later

  • How to preview the message in mail on the mac sierra?

    I just upgraded to sierra and now I've lost the message preview pane in mail. I just message headers and the first 3 lines, which is normally only on the left side of the screen. He now saw there panal which shows the body of the email without having to open the email in a separate tab. Can I get it back? We tried dragging the cursor to move the panels, but it does not move

    Go to mail > Preferences > display and check the box use Classic configuration

  • You reply to a message in mail causes the original message to disappear

    Over the past two days, when I answer some messages in Apple mail (linked to a Google mail account), it removes the original message and watch my answer in the Inbox - how can I stop this? It seems that the original message is deleted from everywhere on Mac if it is still in all messages if I look on my iPad.

    Spin OSX El Capitan on a Macbook Air.

    Hello TImG9,

    Thank you for being part of the community of Apple!

    As I understand it, while using Apple Mail, after you reply to a message, the original message is more visible and your answer is displayed in the Inbox.  I know how much we all count on our email so it is important that it works the way we expect.

    Before doing anything, the first thing I would do is all that is on the backup computer. Nothing that I will propose should result in no data loss, but it's always a good idea to have a backup.  Your computer has software called Time Machine.  It is a fantastic software for backing up your computer.  Information on how to use Time Machine is available here:

    Use Time Machine to back up or restore your Mac.

    Then go through the steps given here:

    Address postal (El Capitan): If messages seem to be missing

    If you get to the step of having to recreate the mailbox, follow the link to the previous document or click here:

    Address postal (El Capitan): rebuild the mailboxes

    Have a great day!

  • I get this message when you download the trial Id

    There is no application setto open URL aam://SAPCode=IDSN?version=11.0?actionList=CC-UI?passPhrase=k+8HvNPJAFBje8dvXunFH61kKfoF2 9hkInan3DWawzde2HPXSLbfzXO3Z + BhnchnCZJXOk + LSB + Sx / PDB/uLB8jUmNvEm8aZfnFOfj93hZf38wGYnu8KXtA IfLltcwpOj5ve1JBsOAh1/3hMT9ubA0WHBFejZQMzWR42Eu4355I =.

    Install the application of cc, Download Adobe Creative Cloud apps desktop | CC free trial Adobe and use it to install your program cc tests.

Maybe you are looking for