Applescript to create mail is not working correct in Lion

Hi all
When I run this applescript in Lion to send a mail with Apple Mail
tell application "Mail"
          set theNewMessage to make new outgoing message with properties {subject:"Subject text", content:"Content text", visible:false}
          tell theNewMessage
  make new to recipient at end of to recipients with properties {address:"[email protected]"}
  send
          end tell
end tell
It send the mail just fine
Go to Mail and you see it in send items
Now try to close Mail with cmd q and you notice that the mail popup ready to send a second time.
If you hit the send button it will be mailed again and when you use cmd q now it will close Mail.
As far as I know this will not happen in Snow
If it is possible I like to know I I am correct that it is working OK in Snow and that Lion is the problem
Thanks for testing
Regards, Ron de Bruin

I think setting visible always to true will be the solution, but I can't test in Snow anymore.

Similar Messages

  • Since installing Yosemite Mail will not work correctly.

    The number of unread e-mails is not showing correctly on the inbox icon, and doesn't show on the dock icon. Although i have set it to "do not store deleted e-mails on the server" every time it connects to the server it displays the e-mails i have just deleted. It is that bad that i am now using Outlook as my Mail software. Are you able to go back to your previous Operating System, in my case Mavericks, it was far far better than Yosemite!!!
    Thanking you in anticipation. Any help would be greatly appreciated.

    Back up all data. Rebuild the mailbox.

  • Mail notifications not working correctly on iPhone 5

    On my new iPhone 5 I have mail notifications set up as on in the notification center, alert style is banners, badge app icon is on and show preview is on, view in lock screen is off. It is set up the same way as when I had an iPhone 4. However, when I get a new email and the phone's screen is not on, the next time I turn it on I will not get the banner alert, all I see is the badge icon. This is kind of annoying as I would like to see the banner to know who the email is from before going into the mail app.
    The notifications for mail on my iPad running iOS 6 just like my iPhone 5 are set up the same way and work correctly.
    Why would they not be working correctly on my iPhone 5?

    Roshanalex
    I have tried what you are saying and all the above, I don't think you understand what we are saying is happening to us because you probably never used or use it. We understand that you can see the notification by pulling down the notification tab from the top of the screen but in the past for example on my ipad and iphone 4 it would show you a preview banner of your emails you have received for the day had you not unlocked your phone for any given amount of time and given you did receive any emails the next time you unlocked your phone it would bring up top of the screen a preview of each email you had in your inbox automatically one by one in the banners without having to go to the notification pull down. It is a bug because I guarntee if you turned it on you wouldn't see what were talkin about either and you wouldn't if you've never were setup for that intention either.

  • Trackpad not working correctly in Lion

    So been waiting anxiously to download and did so this morning.  I cannot get the gestures to work.  Is the software not working properly or am I not holding my tongue correctly while using the trackpad on my core 2 duo machine.

    Hi,
    After installing Lion on MacPro, I had no problems with trackpad, but than it suddenly stopped working. I realized that I have moved my trackpad to close to my MacBook pro and it got paired with it. Once I unpaired the trackpad with MacBook Pro, (in system preferences->Trackpad->Set Up Blootooth Preferences) and paired it with Mac Pro all was fine again. It might not apply to you, but it might help other people.

  • Mail does not work well with lion

    Cannot shut off my computer because Mail does not close since i installed lion

    Cannot shut off my computer because Mail does not close since i installed lion

  • Sort by To / From in Mail is not working correctly

    As an example: I move the mails from the Sent - Gmail folder to a folder I created  On My Mac
    In this folder the sorting was by TO but the system did not execute this
    Instead it sorted by From and the To was not shown at all !
    This is just one example . In general. it sometimes works, but mostly not
    It is f ex correct in the Sent Gmail folder or Inbox, but you but those are exceptions.

    see whether you find nested table parameter implantation option useful. Also supported by .net/java in case that's your calling appln.
    Below is plsql block having a procedure with input paramater of empid's. It returns a cursor( empno and ename) as out parameter.
    The empid's are hardcoded in the calling block.
    SQL> create type t_id is table of number
      2  /
    Type created.
    SQL> set serveroutput on
    SQL> declare
      2
      3   v_tid t_id;
      4   v_results sys_refcursor;
      5
      6   v_employee_id number;
      7   v_name varchar2(100);
      8
      9   procedure TEST (p_tid in t_id, p_empcursor out sys_refcursor)  as
    10   begin
    11    open p_empcursor for
    12    select empno, ename from scott.emp
    13    where empno in (select column_value from table (p_tid));
    14
    15   end;
    16
    17
    18  begin
    19   v_tid := t_id(7902,7934);
    20
    21   TEST(v_tid,v_results);
    22
    23   IF v_results IS NOT NULL
    24     THEN
    25        LOOP
    26           FETCH v_results
    27            INTO v_employee_id, v_name;
    28
    29           EXIT WHEN (v_results%NOTFOUND);
    30           dbms_output.put_line(v_name);
    31        END LOOP;
    32
    33        IF v_results%ISOPEN
    34        THEN
    35           CLOSE v_results;
    36        END IF;
    37    END IF;
    38
    39  end;
    40  /
    *FORD*
    *MILLER*
    PL/SQL procedure successfully completed.
    SQL>

  • Office 2013 Sent To Mail Recipient Not Working Correctly.

    I have Office 2013 running in a 2008 RDS farm. Im having a strange issue where if I right-click a file and use the Send To Option:
    It prompts me with this:
    The strange thing it works just fine when Outlook is closed. Any ideas on this strange issue? 

    Hi,
    I wasn’t able to see the issue with the prompted window. Are you able to send email message after input correct email account credentials?
    If you are wondering what the FIXMAPI 1.0 MAPI Repair tool is for, it is used to detect and aid in resolving conflicts with Messaging Application Programming Interface (MAPI) files that may affect your ability to send and receive mail and faxes from other
    programs.
    More information for you:
    Description of the Fixmapi.exe Tool Included with Internet Explorer 5
    https://support.microsoft.com/en-us/kb/kbview/228457
    You receive an error message if a file conflicts with the MAPI file on your computer when you start Outlook 2007 or Outlook 2003
    https://support.microsoft.com/en-us/kb/813602/id-id
    In addition, since we are not familiar with Outlook, if there is any Outlook/mail specific query, please refer to Outlook IT Pro Discussions forum below to get more efficient support:
    https://social.technet.microsoft.com/Forums/office/en-US/home?forum=outlook
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Z cube created on IC_C03 not working correctly

    Hello Friends,
    We are using 0IC_C03 cube in BI 7 for getting the Inventory data from R/3. And have created a query on this cube which shows us the stock on any posting date, basically a replica query of MB5B transaction in R/3. The cube and query is working fine, data matching with R/3.
    I have created a copy cube of 0IC_C03 and created a simillar query like Stock on posting date. Now when I loaded the data from 0IC_C03 into the copy cube, this new query on this Z cube is showing only the summation of the total issues and total receipts on any day and not the total stock or inventory. I understand that this is because an inventory initialization has not been done for this Z cube. Can anyone please tell me whether such a inventory initialization isrequired for this Z cube given the fact that it is pulling data from the standard 0IC_C03 cube.
    Regards,
    Prem.

    Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop for now...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.
    Any change?

  • Mail just not working correctly

    Right, i'm using a mac book OS X Leopard 10.5.6 version.
    Everything was going find, then i tried to send an email with some pic's attached. it was taking too long to sent so i cancelled it. It now has these stored in the drafts.
    I have tried to delete these but they wont shift.
    Every time i open mail it tries to sent them even thought i click cancel.
    Also the messages in my inbox will not delete.
    I have tried logging into my mobileme account and it deletes them on there, however on my macbook they are still there.
    This has totally messed my mail up as now i try and create a new message to send and it just takes forever, stating that only half of the mail it sent.
    I also can not receive any new mail.
    Total mess really....
    any ideas

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Mail update not working correctly

    Hi-
    In the last week, my macs have stopped updating (on mobileme) correctly. I can see new mail on all macs but only the iphone correctly updates any delete I make.
    If I view the mail on one mac and move some and delete some, when I open the second mac all of the original "new mails" are still in the inbox.
    Any ideas appreciated (it all started with the ipad 4.2 update
    thanks,
    tom

    no one actually answered, but enough time has passed to let it go...

  • Mail Drafts not working correctly

    The Drafts box in Mail is showing 3 items in two different email draft boxes.  All the emails were sent properly. I didn’t put the files in the Drafts box.
    They will stay there indefinitely, until I delete them.
    One box shows it has 2 drafts in it, but when I click on the box, there is only one file shown (long sent).
    I am getting to where I don’t trust Mail.  You would think Apple could get a mail client working right, but it has been years and they still don’t know how to make a decent mail client.

    Here is a screen shot of a message I got for the first time.

  • HT1277 what to do when mail is not working correctly?

    I dont know what to do. When I opened my mail from my Macbook pro, it only had my notes in my inbox. As if I had no new mail or any history mail at all. It just had my notes (the ones i make in my iphone which are automatically sent by iCloud to my laptop). I already updated my laptop today to see if that was causing the problem, but once it had updated there was no change at all. I opened safari, and went to yahoo to check on my mail. There I saw all my new and old mail. Can anyone help me please?! I'm new to this.

    Is this all being done in iPhoto? If so then backup your iPhoto library and depress the option and command keys and rebuild the library
    LN

  • Mail will not work correctly

    I seem to have to restart my 4s constantly to get my mail accounts to sync. Any thoughts?

    Back up all data. Rebuild the mailbox.

  • Mail group not working correctly

    I have built a group in my contacts that contain 32 emails, and when I mail to that group only 21 users end up in the list. Has anyone else had this problem?

    Hi there, did you get a fix for your issue?
    I have a similar issue and posted on another discussion: https://discussions.apple.com/message/18314162#18314162

  • DVD Drive not working correctly after Lion install

    Lion is doing something strange to the DVD drive in my Mac Pro. Sometimes it works, sometimes it just freezes up apps that are associated with it (such as finder, disk utility etc). The only way to eject is a reboot. It will not read the contents in this scenerio.
    I have tried different DVDs, repairing permissions - everything you can think of. I am 99% confident this is somehow related to a bug in Lion.
    Anyone else have a similar issue?

    I may have found it.
    I use Kepler 64b and I do have an Apple 1.6 JDK installed in the JavVirtualMachines folder.
    Below is my copy of /Applications/eclipse kepler/Eclipse.app/Contents/MacOS/eclipse.ini 
    -startup 
    ../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
    --launcher.library
    ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130 807-1835
    -product
    org.eclipse.epp.package.standard.product
    --launcher.defaultAction
    openFile
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    --launcher.defaultAction
    openFile
    --launcher.appendVmargs
    -vmargs
    -Dosgi.requiredJavaVersion=1.6
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx512m
    -Xdock:icon=../Resources/Eclipse.icns
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    You may notice the line that says “-Dosgi.requiredJavaVersion=1.6”.  I dont know if that is significant but our two systems are subtly different.

Maybe you are looking for

  • Why does my external hard drive unmount?

    Hi, I am having the new problem with my Seagate Free Agent Fire Wire external hard drive. (my other external hard drive is uneffected). The drive is is connected to my 2009 Mac ProQuad Core via FW800 port. It started happening consistnatly about 1 we

  • SelectMany PLINQ performance issue

    Hi, I have noticed a strange behaviour with PLINQ SelectMany: Sometime, I takes a very very long time to process (i am working on a tree where each node is processed with a selectMany querie) lets say 20 seconds instead of 100ms. When I do the same w

  • Solution to "An incorrect structure was found in the PDF file"

    I was trying to extract a page from a PDF file in Acrobat Pro 8.1.2 using Javascript, and got this error ("Incorrect Structure was found"). For future reference, here's what I did to restore the ability to extract/delete pages: Go to the View -> Navi

  • Having a strange problem with LOCALE.

    Hey im trying to run emelfm2 but when im trying to start this message comes up and it have showing up while using other apps to. Maybe it says what to do but i don't get it :( Last edited by Afnaf (2010-02-11 20:45:39)

  • MAC OS X V10.7 Lion Killed My Media Centre....

    Upgraded my Mac Mini I use as a media centre to Mac OS X 10.7 Lion and no Front Row??? What the ?????! What's the point of having a Mac Mini to use as a media centre with no more Front Row??? I don't know what Apple were thinking, or weren't thinking