Results 1 to 3 of 3
  1. #1

    HeroBiX's Avatar
    Member Since
    Sep 10, 2008
    Location
    Sweden
    Posts
    114
    Automator -> Small script
    Iam making a Advent calendar for my GF, sending her a picture every day until the 24 of December

    So I want to do a smal automator program wich sends a picture, and I have done so it makes a new E-mail and ad the attatchment, but then I dont know how to make it send, so I have added an apple script

    so, now I need help from you guys =)

    How can I make it send away, example make it press "shift+cmd+D"?

    if I could get help with that would be awesome! =)
    What does Intel do in a Mac?
    A hole lot more then in a PC

  2. #2

    nabl's Avatar
    Member Since
    Dec 13, 2007
    Location
    United States of America
    Posts
    256
    Specs:
    2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork 09
    Do you have the Send Outgoing Messages action in Automator? You can put that right after the Add Attachments to Front Message or New Mail Message action, and it will send it for you.

    Edit: If you don't have that action, try using this code in a Run Applescript action:
    Code:
    on run {input, parameters}
    	
    	tell application "Mail"
    		send the front outgoing message
    		set sentSuccessfully to the result
    	end tell
    	
    	return sentSuccessfully
    end run
    That will send the front outgoing message (presumably the one just created by Automator) and then return a boolean indicating whether the send was successful (true if so, false otherwise).

  3. #3

    HeroBiX's Avatar
    Member Since
    Sep 10, 2008
    Location
    Sweden
    Posts
    114
    thanks alot =)

    The program works while running in Automator, works great! put in a 2-3 sec pause after adding the picture, so it have time to get it into the mail otherwise it sends it without the attachment

    But, when I make an app out of it, it starts, but nothing happens, no new mail creates, can you somehow check why it doesn't start?

    I can upload the program when I get home =)
    What does Intel do in a Mac?
    A hole lot more then in a PC

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automator Script Ideas
    By ipadsandmac in forum OS X - Apps and Games
    Replies: 0
    Last Post: 06-25-2013, 03:03 PM
  2. Automator script graphic watermark
    By pstreet in forum Images, Graphic Design, and Digital Photography
    Replies: 0
    Last Post: 04-28-2010, 12:00 PM
  3. Making a maintenance script to run in automator
    By Gdog in forum OS X - Operating System
    Replies: 0
    Last Post: 02-19-2010, 12:33 PM
  4. Automator and Apple script error handling
    By BjZ in forum OS X - Operating System
    Replies: 1
    Last Post: 01-02-2010, 11:40 AM
  5. Automator Script Help
    By borovy3488 in forum OS X - Apps and Games
    Replies: 1
    Last Post: 07-14-2008, 08:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •