Using Automator Workflows in Mail

Hi there,
just created an Automator workflow to filter received emails from a specific sender and subsequently saves the attachement to a folder... I set up a rule in mail that 2 days after receipt of an email form the sender runs the workflow:
Unfortunately it does not work - any thoughts????
Thanks
Dominic

nobody any idea...?

Similar Messages

  • Automator Workflow for Mail Printing?????

    How can I print out all all mail (250 emails) in a single mailbox into a single file, which I can save as a PDF?
    I looked even for an Automator workflow that would
    Print; Preview: Save As
    so that I would then have a serires of PDFs that I could then import all the individual PDF pages in to Acrobat to create a single document, but Automator does not have these options.
    Any thougt would be very helpful. Thanks!!
      Mac OS X (10.4.2)  

    I don't believe you can do it the first way.
    However there are at least three ways to do it the second way.
    1) Use System Events GUI scripting exclusively to drive the user interface i.e., selecting menu items and pushing buttons;
    2) Use some of 1) along with Mail's AppleScripting capabilities. GUI scripting would still be needed for Preview as it does not have AppleScript capabilities;
    3) Install the cups-pdf solution called "Virtual Printer" (http://www.macupdate.com/info.php/id/20219) that allows one to create pdf files from anything that can be printed using the print dialog. This would also have to be driven using one or both of GUI scripting and Applescript.
    If you do a lot of PDF printing then I would recommend 3) and generally 1) is less robust than 2). Myself or others on this forum should be able to help with whichever solution you prefer.

  • Snooze an email message? (Automator Workflow in Mail)

    I want to snooze an email message in Mail.
    Meaning make it disappear and come back at certain time later...
    Anyone have thoughts on how to approach this in Automator?
    I've been told to have Mail pass the message to iCal and have it resent that way, but I was hoping to just work within the Mail.app.

    Here's a way to do almost exactly what you're asking (slightly different) by using Automator to pass the message to iCal:
    http://joannalaforet.wordpress.com/2010/02/08/schedule-mail-on-mac-the-easier-wa y-automator-ical-alarm/

  • Using Automator with the Apple Mail app

    I want to do something that I think should be easy! I have the text of an e-mail message that I want to send to a specific mailing list. The list is in an Address Book group. I want to personalize each e-mail so that it goes to just one person and is addressed to "Dr. <last name>" at "<e-mail address>," where both are in a separate Address Book entry.
    I've tried a couple of scripts using the actions provided by Apple but they fall down because I can't get Automator to reference my e-mail message. I get the error, "There is no outgoing Mail message. (-2700)) occurred in Group Mailer."
    Anyone know how to properly present Automator with my mail message?

    That depends on the type of email account and the settings. You can leave mail on the server or remove it.

  • Set Mail Signature with Run AppleScript Action inside an Automator workflow

    Hello,
    Not sure if I am posting this at the right spot, but I would need some assistance. I am trying to write an Automator Workflow application. The purpose for this application is to:
    1. Drag one or more attachments on the application/droplet icon
    2. Automator workflow creates a new mail message in Mail with the attached items already addressed and ready to go to
    I setup the following Workflow inside Automator:
    1. New Mail Message
    2. Add Attachments to Front Message
    So this is all working just fine. Now I would like to add a step in between of type "Run AppleScript". In this "Run AppleScript" action I have the following code:
    on run {input, parameters}
    tell application "Mail"
    set the message signature of input to signature "My Signature Name"
    end tell
    return input
    end run
    So my workflow looks now like this:
    1. New Mail Message
    2. Run AppleScript
    3. Add Attachments to Front Message
    I am getting the following error:
    Can’t make «class situ» "My Signature Name" of application "Mail" into the expected type.
    So, in essence I am trying to select a signature for that particular new mail message in this workflow. And that does not work. Any help would be appreciated.
    Martin

    first, you don't need the extra action to add attachments. if you drop some items on the saved application they will be passed to the "new Mail message" action as input and will be added as attachments. also, in my testing it seems that the processes of attaching the attachments seem to bump against the process of adding the signature. it get the same result as you originally but if I add a delay to the run applescript action then it works as it should so try
    1. new mail message.
    2. run applescript
    on run {input, parameters}
    delay 1
    tell application "Mail"
    set the message signature of (item 1 of input) to signature "My Signature Name"
    end tell
    return input
    end run

  • Do you know any tips on using Automator with Mail?

    Do you know any tips on using Automator with Mail?
    I want to save time, can you help. I get hundreds of mail everyday, iPhone, MacBook, Desktops....
    This is very time consuming
    HELP!!!

    Perhaps we could answer the question better if we knoe what functions were taking up the most time. Are you having to delete spam that slipped through the craks? Moving Mail to folders can be accomplished through mail rules.

  • Getting File Name in Automator workflow - combine PDF

    I am using Automator to combine 2 PDF files.
    I would like to inherit one of the file names in the new PDF and append a standard text to the front of the file name.
    I am not sure how to do this. I can combine the PDFs the way I would like, but I am not sure how to plick the file name.
    my workflow is as follows.
    Folder Action targets folder where 1st PDF is added(I want this FILE NAME).
    Ger Specified finder item selects 2nd PDF to be combined.
    Sort Finder Items makes sure the new PDF pages are ordered properly.
    Combine PDF Pages combines the pages.
    Move Finder Items saves the files where i want it.
    Name single item is whre i thought to add my standard text plus the variable of FILE NAME.
    Open File in mail to set up my email.
    Anyone can help with this?
    thanks,
    Aaron

    Here is an automator workflow that does something similar so I believe you can adapt to your needs.  This workflow is setup as a service workflow. It will combine PDFs in the order in which they are selected/clicked via the Shift key.  The default name of the combined output file will be the name of the first file clicked.  Automator can be activated by CTRL clicking any of the selected PDFs.
    1. Service receives PDF files in Finder
    2. Automator Action: Run AppleScript
    on run {input, parameters}
              display dialog "Files will be combined in the order selected via the Shift key" as text
              return input
    end run
    3.. Automator Action: Trim input items
    keep the first one
    you will need to download and install this autotmator action from here:
    http://www.menace-enterprises.com/Files/Automator/Actions/Trim%20Input%20Items.d mg
    4.  Automator Action: Run AppleScript
    (* Note & Definitions
    This Applescript extracts the basename of the first selected file without its .pdf extension
    "path_basename_ext" is full path and name, e.g. User/desktop/file.pdf
    "NmExt" is filename with extension, e.g. file.pdf
    "baseName" is the base filename without extension, e.g. file
    "Ext" is the file's extension, e.g. pdf
    on run {input, parameters}
              set path_basename_ext to input
              tell (info for path_basename_ext) to set {NmExt, Ext} to {name, name extension}
              set baseName to text 1 thru ((get offset of "." & Ext in NmExt) - 1) of NmExt
      baseName
              return baseName
    end run
    5.  Automator Action: Set Value of Variable
    define baseName as the variable
    6.  Automator Action: Get selected finder items
    Options: check ignore input
    7. Automator Action: Combine PDF pages
    choose Combine by appending
    8. Automator Action: Move Finder Items
    choose To: Desktop
    Options: check show this action when workflow runs
    9. Name Single Items
    choose Basename only to: baseName
    Options: check show this action when workflow runs
    10. Open Finder Items

  • Automator w/ Group Mailer Truncating Messages

    I am attempting to send out an email to every person in my Address Book who has an email. I created a smart group in Address Book and am using that to send my messages. I am going to be getting married and I would like to announce the dates when those are set. I am also having a child and would love to email everyone when it's time.
    I can get the people I need to get. The problem is the mail message gets shorter and shorter every time a new message is created eg:
    To:[email protected]
    Body: "Hey guess what.... Blah Blah Blah"
    To:[email protected]
    Body: " guess what.... Blah Blah Blah"
    To:[email protected]
    Body:" lah Blah"
    My workflow looks like this:
    1. New Message
    2. Find People whose group = has email
    3. Group Mailer
    4. Send Message

    Not sure why you would need to use Automator. Why not just send a single email out using the group as the addressee and hide the addresses?
    To send emails to a group and hide group member names and addresses when sending a message to a group created in Address Book do the following.
    1. Open Mail and choose Preferences from the Mail menu.
    2. Click Composing.
    3. Deselect the checkbox for "When sending to a group, show all member addresses" and close Mail Preferences.
    Then when you send an email to a group, only the group name will be seen.

  • Automator workflow question?

    I tried to create a workflow in automator but I had no luck so far. So I need some help to create an automator workflow for;
    go to a specific web page and save the page as pdf to desktop and than close the safari.
    I've tried as "record/watch what I do" in automator but when I click on the safari on dock the "watch me" script misses it and presses mail.app
    Help please. Thanks in advance.

    Give this one a try - it uses a *Run AppleScript* action to script Safari's print dialog:
    1) *Get Specified URLs* (drag URL here - only the last one will be saved)
    2) *Display Webpages*
    3) *Run AppleScript*: <pre style="</div>
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 680px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    on run {input, parameters} -- save the current Safari page as PDF
    waitForPage()
    tell application "Safari"
    tell application "System Events"
    keystroke "p" using {command down} -- activate the Print... menu item
    delay 0.25
    click menu button "PDF" of sheet 1 of window 1 of application process "Safari" -- open the PDF menu
    delay 0.25
    keystroke (ASCII character 31) -- down arrow
    keystroke (ASCII character 31) -- down arrow
    keystroke return -- activate the Save As... menu item
    delay 0.25
    keystroke return -- press the save button
    end tell
    quit
    end tell
    end run
    to waitForPage()
    delay 1
    repeat
    tell application "Safari" to set windowName to the name of window 1
    if windowName does not contain "Untitled" then exit repeat
    delay 1
    end repeat
    repeat
    tell application "Safari" to set windowName to the name of window 1
    if windowName does not contain "Loading" then exit repeat
    delay 1
    end repeat
    repeat
    tell application "Safari" to do JavaScript "document.readyState" in document 1
    if result is "Complete" then exit repeat
    delay 1
    end repeat
    end waitForPage
    </pre>

  • Automator Workflow Warning

    Please help.
    I have an iMac, and I want to copy all my Mail Library to my MacBook Pro Mail Library. Kind of a backup, but I want to do it to have all the subfolders created on Mail on my iMac as well as on my MacBook Pro. I know Exchange Server is the solution but I don't have the $$ to buy it right now.
    I have tried to do it using Automator like this
    Find Finder Items (completed)
    Copy Finder Items (completed with 1 warning "The action "Copy Finder items" was not supplied with the required data")
    Is there a better /easy way to do it?
    What am I doing wrong?
    Thank you for your support.

    Please post a screenshot of the workflow. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • I want to write a script or Automator workflow/app that emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have experience?

    I want to write a script or Automator workflow/app that automatically emails a random shortcut of the day to three recipients. The source is from an Excel spreadsheet. One column is the shortcut, and the second column is the definition. Anyone have similar experience and know that this would work?

    I have had a first stab at the script, below.  It uses a file to store the shortcuts and command [descriptions].  You should be able to see from the script annotations how to add a new one.  (I populated 1-4 with real data, but got lazy after that, so you have a few placeholders to work with first.
    As I have noted, once you are happy that you have all the data in the file, you can comment out part of the script for ongoing use.  (BTW, my reluctance to use Excel is that I don't currently have it installed and I don't want to offer wrong advice.  If you have Numbers, I do have that and could probably modify to work with a spreadsheet from there.  This might be especially useful if you have the data already sitting in Excel.)
    A few things came-up whilist I was writing the script:
    1.     Currently, all recipients will not only get the same tip at the same time, but they will see the names and email addresses of the others who receive them.  It is possible to modify this.
    2.     I have added a property gRandomCheck which keeps track of which shortcut has already been used (since the last time the script was compiled.  This will prevent the same tip being sent more than once.    When all tips have been sent once, the script will alert you and not send anything until reset.  It does not check on a per-addressee basis (which would be a refinement).  (If you add a new addressee at this stage, the whole process will start again, and you may not really want this to be the behaviour.)
    3.     The way that I have built the list, commandList, is deliberately cumbersome - it's for the sake of clarity.  If you prefer, you can construct the whole list as {{shortcut:"X", command:"X"}, {shortcut:"Y", command:"Y"}}
    Have a look - I am sure you will have questions!
    SCRIPT STARTS HERE  Paste the following lines (thru the end) into a new AppleScript Editor document and press RUN
    --The property gRandomCheck persists between runs and is used to stop sending the same hint twice.
    property gRandomCheck : {}
    --I am defining a file on the desktop.  It doesn't have to be in this location
    set theFolder to path to desktop
    set commandFile to (theFolder as text) & "CommandFile.csv"
    --(* Unless you need to change the file contents you do not need to write to it each time.  Remove the "--" on this line and before the asterisk about 18 lines below
    --Follow this format and enter as many records as you like on a new line - each with a unique name
    set record1 to {shortcut:"Z", command:"Undo"}
    set record2 to {shortcut:"R", command:"Record"}
    set record3 to {shortcut:"⇧R", command:"Record Toggle"}
    set record4 to {shortcut:"⌘.", command:"Discard Recording & Return to Last Play Position"}
    set record5 to {shortcut:"X", command:"x"}
    set record6 to {shortcut:"X", command:"x"}
    set record7 to {shortcut:"X", command:"x"}
    set record8 to {shortcut:"X", command:"x"}
    set record9 to {shortcut:"X", command:"x"}
    set record10 to {shortcut:"X", command:"x"}
    set record11 to {shortcut:"X", command:"x"}
    set record12 to {shortcut:"X", command:"x"}
    set record13 to {shortcut:"X", command:"x"}
    --Make sure you add the record name before randomCheck:
    set commandList to {record1, record2, record3, record4, record5, record6, record7, record8, record9, record10, record11, record12, record13}
    --This part writes the above records to the file each time.
    set fileRef to open for access commandFile with write permission
    set eof of fileRef to 0
    write commandList to fileRef starting at eof as list
    close access fileRef
    --remove "--" here to stop writing (see above)*)
    --This reads from the file
    set fileRef to open for access commandFile with write permission
    set commandList to read fileRef as list
    close access fileRef
    --Here's where the random record is chosen
    set selected to 0
    if (count of gRandomCheck) is not (count of commandList) then
              repeat
                        set selected to (random number from 1 to (count of commandList))
                        if selected is not in gRandomCheck then
                                  set gRandomCheck to gRandomCheck & selected
                                  exit repeat
                        end if
              end repeat
    else
              display dialog "You have sent all shortcuts to all recipients once.  Recompile to reset"
              return
    end if
    --This is setting-up the format of the mail contents
    set messageText to ("Shortcut: " & shortcut of record selected of commandList & return & "Command: " & command of record selected of commandList)
    tell application "Mail"
      --When you're ready to use, you probably will not want Mail popping to the front, so add "--" before activate
      activate
      --You can change the subject of the message here.  You can also set visible:true to visible:false when you are happy all is working OK
              set theMessage to (make new outgoing message with properties {visible:true, subject:"Today's Logic Pro Shortcut", content:messageText})
              tell theMessage
      --You can add new recipients here.  Just add a new line.  Modify the names and addresses here to real ones
                        make new to recipient with properties {name:"Fred Smith", address:"[email protected]"}
                        make new to recipient with properties {name:"John Smith", address:"[email protected]"}
      --When you are ready to start sending, remove the dashes before "send" below
      --send
              end tell
    end tell

  • Automator workflow to an apple script

    Hello,
    i have a few problems with the automator utility:
    1. my automator work flow is to open an application and type a password.
    the problem is when i recored and i'm typing the password, after i'm running the workflow seems that its not possible to type password, is there a way to type password while recording?
    2. i have an automator workflow and i wish to convert it to an apple script.
    after i've copy paste it to the apple script editor it seems to be the workflow but when i running the
    script it not running.
    please help...
    Rafi.

    Since you're using Mail, you might be able to have Mail do it.
    You can set up a rule in Mail in its preferences to match an email with unique characteristics, such as certain content or a certain subject exactly. You might want to add a few conditions and "match all" to make sure you don't accidentally match something else.
    Anyways, you choose to have the rule run an AppleScript. I haven't tested it by referencing an Automator workflow, but it might work. You might try a quick test first with a simple workflow.
    You'd have to be logged in and have Mail automatically check for email, perhaps every minute or every five minutes. If you don't want to be logged in, likely you'll need to use a web page, like you suggested. I'm not sure what you need to do for that to work.

  • Automator workflow cannot be triggered.

    Hello,
    I created a few Automator workflows. they all work fine when I launch automator and click "run".
    When I try to trigger the workflow via another software (like "Hazel" or Mail rules) it just doesn't run. I do see the little menubar icon rolling but nothing happens.
    Any ideas what can cause it and how I can solve it?
    Thank you,
    Ofir

    I tried using a Mail rule to launch an Automator workflow that had been saved as an application. That does not work. I think it is because the rule creator in Mail only gives you the option of running an Applescript.
    Here's what I am going to test next but have not had time to yet. Perhaps you will get a chance before I do. Create the workflows using Automator as usual and save them as applications. Now create an Applescript that will run and launch the appropriate workflows.
    Check out this article for an example of what I mean http://www.atpm.com/12.08/automator.shtml Look at the Tying Everything Together section. The items in quotation marks in that script are the titles of various Automator workflows.

  • Automator workflow for backup (BU3)?

    Hi there,
    I have never used automator, but I would like to create a workflow that allows me to schedule the following actions:
    1.) turn off Norton Anti-Virus auto-protection
    2.) run incremental backups through BU3 onto my idisk and external hard drive
    3.) turn on Norton Anti-Virus auto-protect
    Is anything like that out there or can anyone help me set this up? Thanks.

    I don't believe you can do it the first way.
    However there are at least three ways to do it the second way.
    1) Use System Events GUI scripting exclusively to drive the user interface i.e., selecting menu items and pushing buttons;
    2) Use some of 1) along with Mail's AppleScripting capabilities. GUI scripting would still be needed for Preview as it does not have AppleScript capabilities;
    3) Install the cups-pdf solution called "Virtual Printer" (http://www.macupdate.com/info.php/id/20219) that allows one to create pdf files from anything that can be printed using the print dialog. This would also have to be driven using one or both of GUI scripting and Applescript.
    If you do a lot of PDF printing then I would recommend 3) and generally 1) is less robust than 2). Myself or others on this forum should be able to help with whichever solution you prefer.

  • How to resize and change the resolution of a batch of photos using Automator

    I searched for a long time tonight looking for the answer to this (seemingly) simple question:
    How do I use Automator to scale and change the resolution of a batch of images?
    It was not so simple.
    Links to this question:
    https://discussions.apple.com/message/12341246#12341246
    https://discussions.apple.com/message/12342026#12342026
    https://discussions.apple.com/message/5785047#5785047
    https://discussions.apple.com/message/1173358#1173358
    https://discussions.apple.com/message/5641853#5641853
    https://discussions.apple.com/message/3207516#3207516
    These are just the links on this site - I found them all over the place at MacRumors, Apple Tips, Mac Help, etc.
    You can actually manage this in Automator.
    Here are the steps that worked for me:
    Create an Automator APPLICATION - not a workflow (this is due to the way that I'm batch converting images - workflows might be ok for some cases)
    Step 1 is Copy Finder Items
    My flow inserts an SD card, opens the DCIM folder that my Nikon creates, selecting the images that I click (command + click to multi-select) and once I have the photos highlighted, I drag them onto this Automator App we're creating.
    <==  You'll have this guy soon!
    As a result - I want to copy the originals to my computer as step 1.  I don't touch the originals on the SD card (and cards are cheap so I tend to leave them on the cards as well)
    Step 2 is the Scale Images action - you can search the library for this and find it quickly.  For my part, I found that scaling images to about 38.8 percent of their size on the SD card is good for uploading to a blog.  Change this value to whatever you wish.
    Step 3 is Run Shell Script - and here is where we marry the brilliance found at this link with our script.If you have a hard time reading the text in the image, it is as follows:
    #bin/bash
    for f in "$@"
    do
         /usr/bin/sips -s dpiHeight 72.0 -s dpiWidth 72.0 $f
    done
    Save this application (I named mine "Format Photos")
    Place the application inside the target folder where you want the images to end up.  I do this because when I have the SD card window open, I can also open my "Photos" window and see my App sitting there.  I select my images as I mentioned and drag them on top of this app.  The app copies the originals and the conversions into the folder.
    NOTES: When you open a converted pic in Preview, you will see Resolution = 300 dpi if you go to Tools --> Adjust Size...  This reading is explained by another brilliant discussion as sips only touches the JFIF properties inside the file's MetaData.  However, if you look at the bottom of the Adjust Size... window, you'll see the image size is probably around 500 kb (give or take depending on the original).  My goal was to get the images down from the 3.0 MB I shoot at to around 500 kb.  Therefore even though the MetaData still thinks that it is 300 DPI according to Preview, it has been changed to 72 (open it in some other applications mentioned at the links and you'll find different readings - it all depends on what the application reads from the Meta).
    This does not rename the files, so you'll get DSC_1000.jpg and DSC_1000 copy.jpg in all likelihood.  If that annoys you, add a step into the Automator Application that renames the file after the "Run Shell Script" action has run, and you can have each file renamed according to some convention that you like.
    This took a heck of a lot longer than I expected - so I decided to put in the effort to share this with the community and save others the hassle. 

    PPI is pixels per inch of the image.  It is difficult to increase resolution as you are trying to add data that is not there.
    But for printing purposes what you want is dpi or dots per inch.
    The image processor either accessed from Bridge (tools/photoshp) or PS is a good way to change a batch of images.

Maybe you are looking for

  • Pass Input Values to BI Publisher Report Layout from BI Answers Dashboard

    Has anyone been able successfully pass user input values from a BI Answers dashboard prompt into a BI Publisher report? I'm trying add user inputted text (notes, comments) into a report he/she runs. I've been trying with no success. I've matched the

  • SAP Crypto SNC PSE SSO from AIX daemon

    Summary We're trying to setup SNC with the SAP Crypto library on AIX, but we're getting inconsistent SSO access to the PSE depending on whether we run from the command line or from a daemon process that runs with the exact same user account. Put diff

  • Windows 2008 R2 randomly not available

    Hi, We have a weird problem with one of our Windows 2008R2 server (not virtualized). It randomly "freezes" actually i can ping it, but as i see most of the services are stopped when the event happens. Unfortunately i have no logs, because when it fre

  • Keynote 08 Subheading problem

    I've installed new Keynote 08. When I open files from previous versions my subheadings do not show. That's hours and hours of work lost. There must be a simple solution. HELP, someone. Apparently, Apple doesn't have telephone support for program prob

  • How do you know where your files are if you save them in the wrong place?

    I have tons of video files for example. I want to watch the video I downloaded off the net about airplanes. I type in airplanes in spotlight, and many come up. they are quicktime files. but when I go to quicktime and try to delete by clicking on file