Another mail applescript question...

Hi again!
I just posted a topic about how to auto-reply in Mail with an attachment by using Applescript and rules in Mail. I figured I should be able to do this via Applescript but I am having a problem. Nevermind the attachment for the moment but I can't even get a message to send. Take this example:
tell application "Mail"
make new outgoing message with properties {visible:true, subject:"My Subject", content:"My Body"}
end tell
If I run this in Script Editor it prepares a new message (although not yet sent). If I attach this to a rule in Mail nothing happens. As a test I changed the script to simple say display dialog "test" and it does work. So my rule in Mail.app is ok but when I use this simple script above nothing happens. I hope this makes sense and someone can help me to set up a rule in Mail that triggers a Applescript which will send a message...thank you!
Reg

Hi again VK!
Yes I do understand and maybe it's an error on my part but I couldn't get it to work. What I'm doing now is I use an applescript to gather the sender of the incoming message and save it to Address Book. Then I tell that applescript to launch a separate applescript saved as app to send a message to that same person using the info stored in Address Book. It's a bit sloppy too but it works. Occasionally though it seems to send out a blank message??? I will try to experiment more when I get the chance. Hopefully Apple will just fix this bug in 10.5.4???
Thanks again,
Reg

Similar Messages

  • Can I set up another mail account (AOL) in my Mail Application?

    Good day! This is my first time here and I have a question for all you power brokers Can I set up another mail account on my Mail Application? I want to add my AOL accounts mail box to show up in my Mail App along with the .mac mail I get too. Is there a way to set up additional mail accounts along side my .mac account? I would appreciate any help you can give me with this. Thanks again for your time and effort!
    regards,
    Eric
    i-mac 20"   Mac OS X (10.4.5)  

    Hi Eric!
    You're right! This is a great place!
    I notice that you have marked your question as answered, but have not utilized the Helpful or Solved options.That may be intentional, but if you are not aware of how those work, here is some information.
    When you mark posts that have helped you, or solved the problem, you are Thanking the contributor, by awarding them points.
    In threads with multiple replies, it also alerts other readers, to which answers may have helped, or solved the issue.
    Click on ? Help & Terms of Use, located under your login name, on all "Discussions" pages, then click on What are question answers?, for more info.
    ali b

  • How can I redirect all messages to 2 another mail servers?

    Hi all
    ./imsimta version
    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:54:45, Sep 1 2009)
    I wanted to redirect all messages(in and out) to another mail server, I configured as follows,
    - imta.cnf
    ! tcp_local
    tcp_local smtp mx single_sys ....... sourcefilter file:///backother.filter
    ! tcp_intranet
    tcp_intranet smtp mx single_sys ....... sourcefilter file:///backother.filter
    - backother.filter
    require ["fileinto"];
    if address :all :matches ["From"]["*"]{
    redirect "[email protected]";
    keep;
    stop;
    One e-mail account receives all messgaes and those messages will be kept in sender's or receiver's mail storage.
    I want , however, redirect all messages 2 or 3 mail servers.
    I tried several things to do this include edit backother.filter(this is written in Sieve ), but I failed.
    Is there any way to redirect messages to another mail servers?
    Any way would be good , using sieve script, make antoher channel or channel keyword
    Thanks
    Edited by: leeky41 on Mar 9, 2010 10:58 PM
    Edited by: leeky41 on Mar 9, 2010 11:06 PM
    Edited by: leeky41 on Mar 9, 2010 11:07 PM

    leeky41 wrote:
    Redirecting the message means it will not be delivered to the original recipient.I know so I wrote 'keep' keyword to deliver messages to the original recipient.
    capture "[email protected]";
    I tested it but the capture's behavior was very weird, subject had changed to something like,'deliverd status notice', sender had changed to postmaster and additional notice messgae inserted into mail body.The default sieve capture action encapsulates the email to keep a copy of both the envelope information and the original message. MS7u3 also supports the Exchange journal encapsulation format through the addition of the ":journal" parameter.
    I edited 'capture' like this..
    capture :message "[email protected]";
    The ":message" flag removes the encapsulation -- therefore you will have no idea of who the original sender/recipients were as the envelope information has been discarded.
    It worked fine. It was same as the result of 'redirect'.
    but the following line, sent10 messages to each recipients.(receive_01,receive_02)
    capture :message "[email protected],[email protected]";
    maybe there was some 'loop' actions happened.The email produced by the capture sieve action is being "captured" which is resulting in a loop. You can stop this by adding an envelope test e.g.
    require ["envelope"];
    if not envelope :is ["to"] ["[email protected]","[email protected]"]
            capture :message "[email protected]";
            capture :message "[email protected]";
    }Regards,
    Shane.

  • Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages?

    Topic area: Apple Mail.  Question:  How do I get the message preview window to display to the right of my list of email messages? i.e. to preview whatever message is currently highlighted in the center window list of messages?

    At present there is no preference option available to move the preview
    pane to right side of the mail window.
    Best.

  • HT3678 If I download a .mov file from gmail, I am not able to open the file. I reinstalled QuickTime 7.6.6, still unable to open the file. If I download the same file from another mail server I have no trouble. What is gmail doing to my file?

    If I download a .mov file from gmail, I am not able to open the file. I reinstalled QuickTime 7.6.6, still unable to open the file. If I download the same file from another mail server I have no trouble. What is gmail doing to my file?

    Also i have reinstalled the reader9 two  times and tried with reader8 also but in both the cases same problem.
    it would be gr8 help if someone can help.

  • Dictamus smtp mail server question - help!

    I'm just wondering if anyone else is having trouble using Dictamus on their iphone for sending dictations via email.
    I recently put OS 5 on my iphone and I have upgraded to Lion on my imac. I recorded a dictation the other day on my phone and I tell it to send and it looks like it does but no one is getting my dictations in their email. I have tried troubleshooting and checked my SMTP settings and they seem to be correct.
    I used to be able to send dictations no problem before I uprgraded - is anyone else having this problem of their emails not being sent?
    I use a me.com account and would like to use that to send the emails. I have the smtp sever set to smtp.me.com and I have also tried smtp.mail.me.com and still my emails will not go thru.
    Any suggestions or help is much appreciated.

    We have been getting reports from quite a few MobileMe customers who cannot send mails from Dictamus. According to our investigations, Dictamus does send those mails correctly, and the me.com SMTP server acknowledges having accepted them for delivery. This is as far as anyone can track outgoing e-mail over SMTP, so Dictamus flags the respective dictation as "shared successfully". The problem is that after that initial acknowledgement, MobileMe silently discards some Dictamus mails (not all) without notification to either sender or recipient. This can happen if either recipient or sender are on MobileMe, so sending from a MobileMe address to another mail provider is subject to this issue as well as sending from another provider to MobileMe. Therefore, we currently recommend against using MobileMe accounts for sending mails from Dictamus. We are unaware of similar problems with any of the other large e-mail providers.
    Michael Nagel
    JOTOMI

  • Another color management question

    Hi folks,
    Apologies for yet another color management question, but Im getting very confused and could do with some help. I use a Canon 10D and Canon 30D. Ive come to LightRoom from Pixmantec Raw Shooter.
    As Ive gotten more serious about producing high quality images for both the web and as prints, I thought Id invest in the Colorvision Spyder2 calibration product. So my monitor is now calibrated (quite a difference from what I was seeing!) and I have a calibration profile applied.
    My needs are pretty obvious I want my images to look the same wherever theyre viewed including exported files (such as JPEGs) whether this be on my monitor (in LightRoom, a web browser, Paint Shop Pro, whatever) and on a printer.
    Perhaps Im getting confused because Im trying to compare what LightRoom does with what RawShooter does.
    In RawShooter, when exporting from RAW to JPEG, I can specify the RGB Working Space Im using and then select my monitor profile. I think that what happens is that the export mechanism takes this profile into account and, low and behold, the JPEG looks fine when viewed in any web browser - the colours are exactly the same as in RawShooter. In Paint Shop Pro they look fine too unless I enable Color Management in which case (Im guessing) the monitor profile is, essentially, applied twice! But the upshot is I seem to get the results I want.
    What I cant figure out is how I do this in LightRoom. I can make the same adjustments to the RAW image as I did in RawShooter, but there doesnt seem an option for me to select my profile on export to JPEG only the standard 3 color spaces. Anyway the result is a JPEG that looks somewhat different when viewed in a web browser, or Paint Shop Pro with Color Management turned off. However, if I turn Color Management on in Paint Shop Pro, then it looks fine. So Im assuming that my profile isnt accounted for when exporting JPEGs from LightRoom.
    So any pointers or explanations would be really appreciated. I also acknowledge that this is my first foray into color management, and feel free to tell me to go and read some introductory article (link please!) and then come back with a sensible question if thats whats needed!
    Thanks in advance.
    - Pete

    Lightroom color management.
    a.) Monitor profile used: The profile set as the default in your operating system (e.g. Windows xp). (your monitor profile software usually does this when you calibrate/profile your monitor).
    b.) Working space: ProPhotoRGB
    c.) Export color space: You can choose one of the following sRGB; Adobe RGB or Pro Photo RGB.
    There is no option (afaik) to change a.) or b.) the option you choose in c.) will affect how the exported image will be displayed in color managed applications or non-color managed applications.
    Non-color managed applications are not able to display Adobe RGB or Pro Photo RGB correctly. I guess if you wish a consistent display of your images in color managed and non-color managed applications then the only common factor is sRGB and you should export your images in sRGB color space.
    The benefits of the other expanded color spaces are in printing and you also would have to get this end of your color management correct. Printing profiles to match your printer and each paper being used etc.
    Until you can get this all sorted out you will get better results from sRGB, this is also applicable when using most commercial printing services.

  • I can't add another mail account since it's grey/locked out, any solutions?

    I can't add another mail account since it's grey/locked out, any solutions?

    Have you checked in Restrictions...
    See Pages 158 & 159 here  Ipad User Guide

  • Add another mail login page besides the default mail login page

    I want to add another mail login page besides the default mail login page(http://mail.mine.com). This should be accessed as:http://mail.mine.com/soo.htm.
    I will keep the default page available too.
    Is this possible? where to put this new page? How to config this?
    Thanks!!!

    If it works, then you have found it.
    I make no claims to be a javascript programmer, nor do I claim to program html code.
    If it doesn't work, you may need to remember that Messaging Express isn't really a web server, it's only a piece of one. . .

  • I got another mail regarding mountain lion free upgrade program !! But its saying OS X server not able to download ?

    I got another mail regarding mountain lion free upgrade program !! But its saying OS X server not able to download ?
    Plz Help

    You are not alone in this, Maddy. I had the same thing happen. Apple obviously sent incorrect codes that redeemed for OS X Server instead of Mountain Lion. I called Apple Care who said that it must be some server fluke and that they would get back to me within 24 hours.

  • Mail applescript not working

    I'm writing a script using the Mail applescript template (File > New from template > Mail > Mail Rule Action.scptd) but it doesnt seem like the examples in the template are working
    using terms from application "Mail"
              on perform mail action with messages these_messages for rule this_rule
                        tell application "Mail"
                                  set the message_count to the count of these_messages
                                  repeat with i from 1 to the message_count
                                            set this_message to item i of these_messages
                                            try
                                                      set this_subject to (subject of this_message) as Unicode text
                                                      if this_subject is "" then error
                                            on error
                                                      set this_subject to "NO SUBJECT"
                                            end try
                                    say this_subject
                                  end repeat
                        end tell
              end perform mail action with messages
    end using terms from
    It says "no subject" even if the message has a subject. I'm using OS X 10.7.2 and Mail 5.1. Any suggestions?

    Pierre,
    Are you using os 10.7.2?  The reason I ask is that my code does not have the word unicode in it and it still does not work.  Works fine when I select apply rules from the menu.  Does not work when mail processes rules as the email is first received.
    using terms from application "Mail"
              on perform mail action with messages theMessages for rule theRule
                        try
                                  tell application "Mail"
                                            set theText to "Still not working!"
                                            repeat with eachMessage in theMessages
                                                      set theSubject to subject of eachMessage
                                                      set theBody to "Voice message --> " & return
                                                      set messagePhone to rich text ((offset of "(" in theSubject) + 1) thru ((offset of ")" in theSubject) - 1) of theSubject
                                                      tell application "Address Book"
                                                                set myList to every person
                                                                repeat with i from 1 to number of items in myList
                                                                          set thePerson to item i of myList
                                                                          tell thePerson
                                                                                    set phoneList to every phone
                                                                                    repeat with i from 1 to number of items in phoneList
                                                                                              set this_item to item i of phoneList
                                                                                              tell this_item
                                                                                                        set thisPhone to value as string
                                                                                                        ignoring hyphens and punctuation
                                                                                                                  if thisPhone is equal to messagePhone then
                                                                                                                            set theSubject to "Voice Message From " & name of thePerson & " " & thisPhone
                                                                                                                            set theBody to theBody & return & name of thePerson & " --> " & organization of thePerson
                                                                                                                  end if
                                                                                                        end ignoring
                                                                                              end tell
                                                                                    end repeat
                                                                          end tell
                                                                end repeat
                                                      end tell
                                                      try
                                                                set theAttachments to every mail attachment of eachMessage
                                                                set theAttachment to item 1 of theAttachments
                                                                set thisFilePath to "/Users/Tom/Downloads/" & theSubject & ".wav"
      save mail attachment 1 of eachMessage in thisFilePath
                                                                set theFile to POSIX file thisFilePath as string
                                                                set theMessage to make new outgoing message with properties {subject:theSubject, content:theBody}
                                                                tell theMessage
                                                                          make new recipient at end of to recipients with properties {name:"Tom Moore", address:"[email protected]"}
                                                                          tell content of theMessage
      make new attachment with properties {file name:thisFilePath} at after first paragraph
                                                                          end tell
                                                                          send
                                                                end tell
                                                                tell application "Finder"
                                                                          delete theFile
                                                                end tell
                                                                set theText to ""
                                                      end try
                                            end repeat
                                            if theText is not equal to "" then
      display dialog theText buttons {"OK"} default button 1
                                            end if
                                  end tell
                        on error
      display dialog theText buttons {"OK"} default button 1
                                  beep 2
                        end try
              end perform mail action with messages
    end using terms from

  • Another Mail question about certificates.

    Hi all
    I know there have been a lot of posts on that but I didn't find any answer working. I have an IMAP account whose certificate is said to be invalid by Mail.app. I tried ticking the always trust box, it did not change anything. Mail won't trust even without restarting it.
    The detailed message is "The certificate for this server is invalid... etc." and then in the display under it "Unable to display certificate." It also works perfectly well in thunderbird.
    Thanks if you have any answer.

  • Another mail question

    Wow i wonder what is the most used of all the new apps.
    anyway, with the new app can you just click email links and the mail app will open for you to compose an email.

    Yes if i recall i did that yesterday, the email client is great

  • Another AppleScript question

    How would one make a password, let me explain more about this,
    So pretty much I have it where you enter and set a password; it's all good.
    So my question was how would I make it so it opens up a dialog after you set it telling you to enter the password you just set, if it's wrong it'll tell you to write it again, if it's right it'll open up whatever I put, here is my current code.
    property firstRun : true
    if firstRun then
        set pass to text returned of (display dialog "Choose your password." with title "Pass Select" default answer "" buttons {"Cancel", "Select"} default button 2 with hidden answer)
        set firstRun to false
    end if
    Thanks to everyone who replies to this and helps me.

    Here:
    property firstRun : true
    property the_pass : ""
    if firstRun then
    set the_pass to text returned of (display dialog "Choose your password." with title "Pass Select" default answer "" buttons {"Cancel", "Select"} default button 2 with hidden answer)
    set firstRun to false
    else
    set pass to text returned of (display dialog "Provide the password." with title "Pass Select" default answer "" buttons {"Cancel", "Select"} default button 2 with hidden answer)
    repeat
    if pass is the_pass then
    exit repeat
    else
    set pass to text returned of (display dialog "Incorrect password." with title "Pass Select" default answer "" buttons {"Cancel", "Select"} default button 2 with hidden answer)
    end if
    end repeat
    end if
    (102371)

  • InDesign and Applescript - Another place asset question.

    I am trying to place an asset on page but am having some problems.  If I have an asset in my library and it has a few items in like a couple text boxes and images and they are grouped together, it places fine but then I have a problem with trying to change styles for any individual items withing that asset because seems to treat group as item 1 of that asset and can't seem to get to reference individual items of asset that has grouped items.  Tried things like "item 1 of placed asset" but treats that like group which is good for move but not when wanting to reference individual items.  When I create placed asset with all individual items ungrouped then it does allow me to apply styles on individual items but then can't move everything to location as a group so allignment all stays correct.  Thinking that maybe I could either ungroup all items in first scenerio after moving then apply styles but not sure how to refernence that group and then the items within that group when ungrouped.  Or, doing second scenerio where load asset ungrouped then apply styles then group and move but since number of items in assets can be different, not sure how to dynamically create group using repeat or something?  Thanks, Joe
                 repeat with i from 1 to count csvEntries
                        set csvEntry to csvEntries's item i
                        set {fldElement, fldLocationX, fldLocationY} to csvEntry's text items
                        set placedAsset to place asset asset fldElement of library "GTElements.indl" on myDocument
                            move placedAsset to {fldLocationX, fldLocationY}
                        -- apply styles to individual items os asset
                        -- Then, can I create group dynamically for all items in asset if ungrouped?
                        -- set myGroup to make group with properties {group items:{ placedAsset}}???
                        -- then move group to location?
                        -- Or
                        -- can I ungroup asset if comes in already with all items grouped
                        - First, move to location everything as a group then ungroup
                        --    tell placedAsset
                        --           ungroup
                        --    end tell
                        -- Now apply styles to individual items.   

    I was working on script which uses dialog window. When you run script window with listbox pop up and than you can choose asset with shortcut. This is fastes way for placeing assets from library.
    Did you try this
    var myplacedasset=app.libraries[libIndex].assets.item(assetName).placeAsset(app.activeDocumen t);
    Do what you want to do (apply object syles etc)
    app.select(myplacedasset);
    In this case you don't need to group item, you just select them and move selection to desired position.

Maybe you are looking for

  • How use a proxy consumer web service in ABAP Program with local interface

    I generate a proxy class based on a WSDL file. I want to use this class in an abap programm without a connection but using XML files in local. I see with the class CL_PROXY_LOCAL_ADAPTER that it is possible to execute without connection but for use t

  • Using a Macbook as an extra display

    I have a MacBook Pro i7 2.66GHz. Can I use a first generation, white MacBook as an external display? If so, how would I go about doing that? Thank you =D

  • Wifi disconnect issue w new Mac

    I bought a new Mac about a week ago.  Right away I started experiencing wifi disconnect issues.  I called customer support line and they had me reset the eprom.  I don't recall the key sequence now. The problem went away for a week but has now return

  • Tutorial: Azure AD integration with Cornerstone OnDemand

    Click reply and tell us what you think: Azure AD integration with Cornerstone OnDemand Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation

  • HTTP web server disappeared ?

    Hi there, please help me as I cannot connect to the HP HTTP Server in my own LAN any more. My HP 8500 a910g is connected to LAN with a static IP 10.0.0.1 assigned.  Up until now, I always used http://10.0.0.1/# to access the web server and a dyndns w