| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Sep 10, 2008
Location: Sweden
Posts: 114
![]() |
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 |
| QUOTE Thanks | |
![]() Member Since: Dec 13, 2007
Location: United States of America
Posts: 256
![]() Mac 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
Last edited by nabl; 12-03-2009 at 03:34 PM. |
| QUOTE Thanks | |
![]() Member Since: Sep 10, 2008
Location: Sweden
Posts: 114
![]() |
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 |
||||
| QUOTE Thanks | |||||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| need help to amend a script so that it only runs if iTunes is running | nick_harambee | OS X - Operating System | 1 | 07-20-2009 11:15 AM |
| Script for adding users | i_eat_short_ppl | OS X - Operating System | 0 | 06-04-2009 06:01 PM |
| How to use QuickSilver to run my script | yinglcs | OS X - Operating System | 0 | 02-09-2009 08:54 PM |
| Really Need Help Regarding MAC Script | MACSCRIPT | OS X - Apps and Games | 2 | 08-13-2008 07:15 AM |
| apple script to greet me off stand by | jakeroberts | OS X - Development and Darwin | 0 | 04-29-2007 12:34 PM |
All times are GMT -4. The time now is 08:02 PM.
Powered by vBulletin