Help with AppleScript for outlook 2011

I wonder if anyone can help me with what I think should be a simply script.
I simply want to sweep(move) all of my incoming mail in Outlook to a specified IMAP folder.
Is this possible - it seems like it should be an easy script - if you get me started with the outline (for select all in incoming box and the move to an imap folder command) I think I can sort it.
Many thanks!
Gordon    

I wrote a script to perform email-merges using Outlook or Mail/Address Book: https://github.com/craibuc/applescript-email-merge.  Perhaps you will find it useful.

Similar Messages

  • AppleScript for Outlook 2011

    I'm writing a script for sending same e-mail to several contacts in Outlook 2011 for Mac Contacts database. Basically, I select several Contacts and then run this script that should create and save individual personalized messages to each of the selected contacts.
    Cant' figure out how to extract e-mail address as a text/string value in the line starting with "set to_email_address to __" to use it further in the line starting with "make new to recipient at.."
    Previously I used similar script for Entourage, but after shifting to 2011 I had to re-work it, but still can't make it working!
    Hope for your help!
    set theSubjectLine to "test subj"
    set messageBody to "test message body"
    tell application "Microsoft Outlook"
        set theContacts to selected objects
        repeat with aContact in theContacts
            tell aContact
                set exportList to {first name, last name, email addresses}
            end tell
            set to_f_name to (item 1 of exportList)
            set to_email_address to _________???__________
        try
             set theMsg to make new outgoing message at outbox with properties {subject:theSubjectLine, content:messageBody}
                make new to recipient at theMsg with properties {email address:{name:to_f_name, address:to_email_address}, type:to recipient type}
                move theMsg to mail folder "Drafts" of pop account "XXXXX"
        end try
        end repeat
    end tell

    I wrote a script to perform email-merges using Outlook or Mail/Address Book: https://github.com/craibuc/applescript-email-merge.  Perhaps you will find it useful.

  • Help with AppleScript for Numbers - please!

    I posted a question on the AppleScript section, if anyone can help...
    https://discussions.apple.com/thread/3451760
    Thanks!
    (I'm trying to get an array into what I know of in Excel as a "range". How can this be done with numbers?)

    Does this help?  This would work if tagValues in your script is a single value.
    tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
              set selection range to range "B2:D5"
              set tagvalues to 1
              set value of cell in selection range to tagvalues
    end tell
    If tagValues is a list, you may have to set each cell separately, indexing through each value in tagValues.

  • I need help with AppleScript for changing the font on numerous PowerCADD files

    I am currently trying to write an AppleScript, but I really have no idea how one is written.  I have looked up many tutorials, but to no avail.
    What I'm trying to so is write a script that will take all my selected PowerCADD files, open them, change the font to Helvetica, then save the file.  I have over a thousand files to do this to.  So, you can see my need of an AppleScript to get this task completed.
    If anyone out there knows how I would write this script, please submit it here.
    Thank you so much for your time and help.

    If anyone could help, that would be awesome  =)

  • Schedule for Outlook 2011 calendar sync?

    Hi
    Has anyone seen a schedule for Outlook 2011 to sync calendars with iPhone?
    If you were thinking of getting the version of Office for MAC that has Outlook 2011 you might want to hold off for while.
    It seems Microsoft left it that bit out...
    thanks for any scuttlebut on this...
    Clive

    I'm having the same issues. Can't sync iphone with Outlook 2011 calendars nor can I sync with google calendar. I switched from ical and apple mail because Outlook offers a better user experience. But not being able to synch with mobile me or iphone is crippling. When will they fix this?

  • How do i sync iphone contacts with office for mac 2011?

    how do I sync iphone contacts with office for mac 2011?

    kennethfromrevere wrote:
    I manage all of my email in Outlook, delete email and trash it however the update isn't reflected in the Cloud and\or Apple email.  I have to then open up Apple mail and delete again. 
    Then something is setup incorrectly, which version of OSX are you on, and is this an iCloud mail address (@mac, @me or @icloud)
    From your description of the issue I suspect that it is Outlook that is incorrectly setup.

  • Spotlight Plugin for Outlook 2011 available?

    Hello,
    does anyone know if there is a Spotlight Plugin for Outlook 2011? Now I can't preview the messages if they come up in a search. Google, the Apple and the Microsoft website do not seem to contain any information on this.
    Kind Regards,
    Edwin

    This plug-in is fine, but it works only if Outlook is running.
    I have both Mac Mail and Outllook 2011 installed on my MacBook and I was going crazy because Spotlight shows by default the Outllook mails in the result list - and they can't be properly previewed.
    To disable Outllook mails in Spotlight results, just add the "Microsoft User Data" folder (which lies in your Documents folder) to Spotlight's "Privacy" section.
    Spotlight will now show mails as Mac Mail in the result list an you'll be able to preview them.
    Of course your Exchange account(s) need to be proprerly set up in Mac Mail.
    Hope that helps.

  • Help with updates for CS6

    I need help installing latest updates for CS6.  I have Win 7 and have tried updating from the Help - Updates menu.  The error is:  U43M1D207.

    Thanks for your response.  I am in the United States in So. Arizona.
    Date: Fri, 5 Oct 2012 12:21:45 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help with updates for CS6
    Re: Help with updates for CS6 created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    Crunkle1 you are welcome to work directly with our support team for guided assistance.  If you go to http://www.adobe.com/ and select Help and Contact Us you should be given the option to contact our support team via telephone.  Which country/region are you in?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4752605#4752605
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4752605#4752605
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4752605#4752605. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Need Help Converting a VBA Macro to AppleScript 2.1.2 for Outlook 2011

    Hello AppleScript Experts:
    Can somebody help me convert the below VBA Macro to an equivalent AppleScript 2.1.2 for Mac Outlook 2011 (Version 14.1.3)
    I have a VBA macro program that pops message box when somebody sends an email to an external email address outside of the business domain name. I have deployed the below on WINDOWS 7 MS OFFICE OUTLOOK 2007/2010 and it's
    working successfully.
    I have few users using MAC Outlook 2011 v.14.0.1 & 14.1.3. I need to deploy the same application for MAC users.
    Here is the program...
    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim objRecipient As Outlook.Recipient
    Dim strExternalEmailAddress As String
    Dim strInternalEmailAddress As String
    Dim oRecip As Outlook.Recipient
    Dim oEU As Outlook.ExchangeUser
    Dim oEDL As Outlook.ExchangeDistributionList
    Set objRecipients = Item.Recipients
    strTemp = ""
    For Each objRecipient In objRecipients
        Set oRecip = Application.Session.CreateRecipient(objRecipient.Address)  
        If InStr(1, oRecip, "@") > 0 And InStr(1, oRecip, "company.org") = 0 Then
            strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & objRecipient.Address & "; "
            strExternalEmailAddress = strExternalEmailAddress & vbCrLf
        Else
            oRecip.Resolve
            If oRecip.Resolved Then
                Select Case oRecip.AddressEntry.AddressEntryUserType
                    Case OlAddressEntryUserType.olExchangeUserAddressEntry
                        Set oEU = oRecip.AddressEntry.GetExchangeUser
                        If Not (oEU Is Nothing) Then
                        End If
                    Case OlAddressEntryUserType.olExchangeDistributionListAddressEntry
                        Set oEDL = oRecip.AddressEntry.GetExchangeDistributionList
                        If Not (oEDL Is Nothing) Then
                        End If
                    Case Else
                        If (objRecipient.Type = 1) And InStr(1, oRecip, "company.org") = 0 Then
                            strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strExternalEmailAddress = strExternalEmailAddress & vbCrLf
                        ElseIf (objRecipient.Type = 1) And InStr(1, oRecip, "company.org") <> 0 Then
                            strInternalEmailAddress = strInternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strInternalEmailAddress = strInternalEmailAddress & vbCrLf
                        ElseIf (objRecipient.Type = 2) And InStr(1, oRecip, "company.org") = 0 Then
                            strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strExternalEmailAddress = strExternalEmailAddress & vbCrLf
                        ElseIf (objRecipient.Type = 2) And InStr(1, oRecip, "company.org") <> 0 Then
                            strInternalEmailAddress = strInternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strInternalEmailAddress = strInternalEmailAddress & vbCrLf
                        End If
                End Select
            Else
                If InStr(1, oRecip, "@") > 0 And InStr(1, oRecip, "company.org") = 0 Then
                    strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & objRecipient.Address & "; "
                    strExternalEmailAddress = strExternalEmailAddress & vbCrLf
                ElseIf InStr(1, oRecip, "@") > 0 And InStr(1, oRecip, "company.org") <> 0 Then
                    strInternalEmailAddress = strInternalEmailAddress & objRecipient.AddressEntry & " - " & objRecipient.Address & "; "
                    strInternalEmailAddress = strInternalEmailAddress & vbCrLf
                End If
            End If
        End If
    Next
    If Len(strExternalEmailAddress) > 0 Then
        If MsgBox("You are about to send this email message to one or more individuals outside of COMPANY.  Before you send the message," & _
        " please review the list below and confirm that you have addressed the message to the intended recipients." & vbCrLf & strExternalEmailAddress & vbCrLf & _     "Please click 'Yes' to send the message or 'No' to make changes to the recipients.", vbYesNo + vbDefaultButton2) = vbNo Then
            Cancel = True
        End If
    End If
    End Sub

    Hello AppleScript Experts:
    Can somebody help me convert the below VBA Macro to an equivalent AppleScript 2.1.2 for Mac Outlook 2011 (Version 14.1.3)
    I have a VBA macro program that pops message box when somebody sends an email to an external email address outside of the business domain name. I have deployed the below on WINDOWS 7 MS OFFICE OUTLOOK 2007/2010 and it's
    working successfully.
    I have few users using MAC Outlook 2011 v.14.0.1 & 14.1.3. I need to deploy the same application for MAC users.
    Here is the program...
    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim objRecipient As Outlook.Recipient
    Dim strExternalEmailAddress As String
    Dim strInternalEmailAddress As String
    Dim oRecip As Outlook.Recipient
    Dim oEU As Outlook.ExchangeUser
    Dim oEDL As Outlook.ExchangeDistributionList
    Set objRecipients = Item.Recipients
    strTemp = ""
    For Each objRecipient In objRecipients
        Set oRecip = Application.Session.CreateRecipient(objRecipient.Address)  
        If InStr(1, oRecip, "@") > 0 And InStr(1, oRecip, "company.org") = 0 Then
            strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & objRecipient.Address & "; "
            strExternalEmailAddress = strExternalEmailAddress & vbCrLf
        Else
            oRecip.Resolve
            If oRecip.Resolved Then
                Select Case oRecip.AddressEntry.AddressEntryUserType
                    Case OlAddressEntryUserType.olExchangeUserAddressEntry
                        Set oEU = oRecip.AddressEntry.GetExchangeUser
                        If Not (oEU Is Nothing) Then
                        End If
                    Case OlAddressEntryUserType.olExchangeDistributionListAddressEntry
                        Set oEDL = oRecip.AddressEntry.GetExchangeDistributionList
                        If Not (oEDL Is Nothing) Then
                        End If
                    Case Else
                        If (objRecipient.Type = 1) And InStr(1, oRecip, "company.org") = 0 Then
                            strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strExternalEmailAddress = strExternalEmailAddress & vbCrLf
                        ElseIf (objRecipient.Type = 1) And InStr(1, oRecip, "company.org") <> 0 Then
                            strInternalEmailAddress = strInternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strInternalEmailAddress = strInternalEmailAddress & vbCrLf
                        ElseIf (objRecipient.Type = 2) And InStr(1, oRecip, "company.org") = 0 Then
                            strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strExternalEmailAddress = strExternalEmailAddress & vbCrLf
                        ElseIf (objRecipient.Type = 2) And InStr(1, oRecip, "company.org") <> 0 Then
                            strInternalEmailAddress = strInternalEmailAddress & objRecipient.AddressEntry & " - " & oRecip & "; "
                            strInternalEmailAddress = strInternalEmailAddress & vbCrLf
                        End If
                End Select
            Else
                If InStr(1, oRecip, "@") > 0 And InStr(1, oRecip, "company.org") = 0 Then
                    strExternalEmailAddress = strExternalEmailAddress & objRecipient.AddressEntry & " - " & objRecipient.Address & "; "
                    strExternalEmailAddress = strExternalEmailAddress & vbCrLf
                ElseIf InStr(1, oRecip, "@") > 0 And InStr(1, oRecip, "company.org") <> 0 Then
                    strInternalEmailAddress = strInternalEmailAddress & objRecipient.AddressEntry & " - " & objRecipient.Address & "; "
                    strInternalEmailAddress = strInternalEmailAddress & vbCrLf
                End If
            End If
        End If
    Next
    If Len(strExternalEmailAddress) > 0 Then
        If MsgBox("You are about to send this email message to one or more individuals outside of COMPANY.  Before you send the message," & _
        " please review the list below and confirm that you have addressed the message to the intended recipients." & vbCrLf & strExternalEmailAddress & vbCrLf & _     "Please click 'Yes' to send the message or 'No' to make changes to the recipients.", vbYesNo + vbDefaultButton2) = vbNo Then
            Cancel = True
        End If
    End If
    End Sub

  • Need help syncing iCal and Outlook 2011 (for Mac) THANKS!

    QUESTION: How do I sync iCal and Outlook up again without duplicating any more events, and very importantly, without sending any more email invitations?
    I just bought an iPhone. I am trying to get my phone and my MacBook Pro synced up through iCloud.
    I realize that I need to have Outlook 2011 and iCal set up for syncing for this to work.
    I did this at one point, and it resulted in all of my ALL DAY appointments being duplicated in Outlook, iCal, and on the calendar on my phone - and iCloud sending out duplicate invitations to events.
    Then, I turned syncing between iCal and Outlook and deleted all of the duplicates in my Outlook.
    Of course, because I haven't set up Outlook to sync with iCal, iCal and my phone's calendar have not changed. There are still duplicates there.
    How do I sync them up again without duplicating any more events, and very importantly, without sending any more email invitations?
    Thanks in advance for any help you can be!
    Cheers!

    My iPhone 4 was working fine, synched with Outlook 2011 on my iMac 11.02 through iTunes. Calendar changes also appeared in iCal, even though I don't use iCal - I only use Outlook. Last week I was prompted to update Outlook, which I did successfully. Today, I plugged the iPhone into the iMac to synch and suddenly all Calendar and Contact items are gone from the iPhone and in iCal on the iMac. In iTunes, the option to synch with Outlook in the Info tab ("other") is greyed out. What happened? Why can't I synch the iPhone anymore with Outlook? All the Calendar and Contact info is still on the iMac in Outlook. Help!

  • Working with tables into Outlook 2011 for Mac

    How do i create a table in outlook for mac 2011
    and also in Apple Mail.

    Hi,
    We can import .iaf files in Outlook 2010 using the following method:
    Start Outlook 2010.
    On the File menu, click Import and Export.
    Click the Advanced tab, and then click Export.
    Click Import Internet Mail Account Settings, and then click
    Next.
    Follow the Internet Connection Wizard to complete the import process.
    But, I don't know if we can do this in Outlook for Mac 2011. Since this forum is for general questions and feedback related to Outlook for Windows, it's better to post Mac related issue to the forum for Mac:
    http://answers.microsoft.com/en-us/mac/forum/macoutlook?tab=Threads
    The reason why we recommend posting appropriately is
    you
    will
    get the most qualified pool of respondents,
    and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding.
    Steve Fan
    TechNet Community Support

  • Applescript and outlook 2011 reply email keeping original body

    Hi,
    I need help with an applescript.
    The idea is...
    I receive an email on Outlook 2011, and I can just run this applescript and it will create a response based on the original mail, with a predefined message.
    Right now it's working up to the point of creating a reply, adding the message and sending it. However, it is NOT keeping the original content of the message. that I'm replying to.
    Can someone help me with that part?
    I've tried many stuff and someone else helped me getting this one to work:
    tell application "Microsoft Outlook"
        set replyToMessage to selection
        if (replyToMessage is "") then -- nothing selected, don't continue
            log ("NOTHING SELECTED!")
            return
        end if
        set replyMessageSubj to subject of replyToMessage
        set replyMessage to reply to replyToMessage without opening window
        if has html of replyMessage then
            log ("HTML!")
            set the content of replyMessage to "<p>Working on HTML</p><br />"
        else
            log ("PLAIN TEXT!")
            set the plain text content of replyMessage to "Working on plain text"
        end if
        send replyMessage
    end tell
    Many thanks for the help.

    That's exactly what I needed to understand.
    The final one is like this in case someone else needs it:
    tell application "Microsoft Outlook"
        set replyToMessage to selection
        set mymessage to "Aqui se trapeo con jerga"
        set OldContent to content of replyToMessage
        if (replyToMessage is "") then
            log ("NOTHING SELECTED!")
            return
        end if
        set replyMessageSubj to subject of replyToMessage
        set replyMessage to reply to replyToMessage without opening window
        if has html of replyMessage then
            log ("HTML!")
            set the content of replyMessage to "Hello World<br> This is an HTML test<br><br><br><hr>" & OldContent
        else
            log ("PLAIN TEXT!")
            set the content of replyMessage to "Hello World<br> This is a plain text test <br><br><br><hr>" & OldContent
        end if
        open replyMessage
    end tell
    Many thanks for the help Llessur999!!

  • Desktop software for MAC issue with office for Mac 2011

    Hello,
    I am trying to sync my contacts and calendar from Office for Mac 2011 to a BB Curve 9300, but it will not sync any data. Does desktop manager for mac only work with entourage an iCal?

    Hey Tony_Astars,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Follow the steps in this KB article to setup synchronization with Microsoft Outlook 2011: www.blackberry.com/btsc/KB19148
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Is there a known issue with Mavericks and Outlook 2011 printing?

    Title says it all. I was reading up on past forums both Apple/Microsoft when 10.6.8 messed up Outlook printing, was wondering if anyone else is having a similar issue. I am currently on 10.9.2. I began noticing the issues after updating to 10.9.2.
    To clarify, as a user I can open attached documents from Outlook 2011 and print them that way. But if I use  Command + P, or right click, or any other method I cannot print the actual message of the email. The icon will blink when proper keys are pressed but it will do nothing. Nothing is pending in print queue either.

    Adobe FlashPlayer should first be uninstalled using the appropriate uninstaller available here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=2
    and then the latest version obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash and installed.
    (You can check here: http://www.adobe.com/products/flash/about/ to see which version you should install for your Mac and OS.
    Some users have mentioned that the latest Flash Player (v.9.0.115.0) conflicts with Leopard, and that they have needed to revert to v. 9.0.47. This can be downloaded from here:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&sliceId=1

  • Help with applescript to quit certain processes by name?

    Hey, for anyone who knows how to program applescripts well, I could use some help with the script below.
    I'm very new to applescripting and I'm trying to write a script that would automatically quit up to 100 instances of the Google Chrome Renderer process.
    Thanks to google, I found a script similar to what I wanted, and after some tinkering I thought I had it just right. The thing is, if I only set the app_name to Google Chrome, it quits Chrome just fine, but when I try it like this, it doesn't receive any data from grep or awk.
    If anyone can help I'd really appreciate it.
    repeat 100 times
              set app_name to "Google Chrome Renderer"
              set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
              set new_pid to first word of the_pid
              try
                        if new_pid is not "0" or "1" then do shell script ("kill -9 " & new_pid)
              end try
    end repeat

    try this:
    tell application "System Events"
              set procs to (every process whose name is "Google Chrome Renderer")
              if (count of procs) > 100 then
                        set max to 100
              else
                        set max to count of procs
              end if
              repeat with i from 1 to max
                        tell (item i of procs) to quit
              end repeat
    end tell

Maybe you are looking for

  • How do i get my music off my old ipod without a password

    my old ipod touch 2nd gen got smashed up and the touch screen is now broken and dosent work and i wont to get my music off it to put on my iphone but i cant access my ipod because i can use the ipod to unlock it with the pass code lock. is there anyw

  • Newbie X11 Question

    Hi, Apologies in advance if this is in a FAQ somewhere (guidance appreciated.) I'm trying to use some X11 apps which don't seem to play nicely with the Apple X server (they work fine with Red Hat and AIX). In particular, windows are huge but about on

  • Unrejecting clips in iMovie 11

    I rejected certain clips in iMovie.  I then saw an orange line through them so I knew they were in a project.  How do I "unreject" them so they no longer show up in the rejected screen canvas.  I am using iMovie '11 and a MacBook Pro.

  • Latest Material for ABAP certification.

    Hi Gurus, I want the latest material for ABAP certification. The exam code is  C_TAW12_04 Can anyone provide me the link?? Thanks in advance, Supriya

  • OLAP engine is of pool performance

    I create my analytical worksheet and populate data from SH sample schema according to <<Olap DML Guide>>, and define a AGGMAP as: DEFINE AGG.SALES AGGMAP AGGMAP      RELATION DIM_PRODUCT.PARENT PRECOMPUTE (DIM_PRODUCT PROD_SUBCATEGORY)      RELATION