Applescript script being called for new mail does not recognise MessageID

I have come across the same issue referred to in a previous message in this forum (http://discussions.apple.com/thread.jspa?threadID=926080) but it does not go the extra step that I need.
I need a script that will run on incoming mail messages and be able to create a text file with a completely unique name. I found that using the message subject and the receive date was not sufficient as I occasionally get messages that would create duplicates (and hence loose all but the last message). I tried to add in the MessageID value into the text file name but it would appear (based on the referenced previous posting) that the MessageID is not actually assigned at the time the script is triggered (but is if the script is run after the message is visible in the InBox).
Is there another unique value that I could use (such as MessageID) that IS available on an incoming message?
Thanks
Susan

Thank you for the suggestion. I actually did have the date/time down to the second, but the speed with which the web site that generates these mails works (I am looking for work and extracting the job listing for further processing), especially if there are only a few jobs, means I can get emails that have the same timestamp to the second. I thought that this would be enough but when I saw 2 emails in my inbox and then say only one file in the extract folder, I investigated further and found that the timestamp was not sufficient.
I also owe you all an apology in that I realised after I found the original message and posted this one, that it was the Tiger forum, whereas I'm running Leopard. Therefore I cross-posted my message and referenced this one form the other forum but not vice versa.
Anyway, the solution turns out to be to use
set UniqueName to do shell script "uuidgen"
as provided in http://discussions.apple.com/message.jspa?messageID=9512884.
Susan

Similar Messages

  • HT3702 how do I cancel an application that I am being billed for monthly that does not work

    How do I cancel an application that I am being billed for monthly that does not work anymore?

    How to report an issue with Your iTunes Store purchase
    iTunes Store: Purchasing and managing auto-renewing subscriptions

  • "Include when checking for new mail" option not working

    Hi,
    I have 2 email accounts set up on mail, but I only want 1 of them to pull down mail (the other will only be used for sending). For the account I don't want to get mail I deselect the box "include when checking for new mail".
    However, Mail still pulls down messages from that account. When I put in the correct server settings for the incoming, it pulls all of my mail (in this case gmail), and when I put in bad settings (as a way of avoiding getting the mail) I get an annoying error message.
    Does anyone know of a way to make that function of Mail work?

    Hi feuerstein.
    How have you set up the Gmail account in Mail (POP, IMAP), and under which circumstances does Mail check for new mail on that account? More info, please.
    BTW, Mail doesn’t automatically check when launched every account if Include when automatically checking for new mail has been turned OFF. That happens with IMAP accounts only (and only if they’re “online”), not with POP accounts, but it isn’t clear at all whether that’s what you’re talking about...

  • Mail does not recognise Business e-mail address in the recipient field.

    In Mail, when I start typing a name in the To: field, and it's not a physical person but a Company from my Address Book, then it's not recognised as a recipient at all (no Autocomplete etc.)
    This is very frustrating as I have to remember the business' owner's name and enter that instead.
    What is the point to register a new Contact as a Business if you are not able to email it by typing its name in the To: field?
    Are you aware of this problem? Is there a workaround?
    Thank you,

    Does seem a bit odd if not frustrating behavior.
    Work around.  Put the Company name in the "First" place. Forget the company checkmark.
    http://www.apple.com/feedback/macosx.html

  • Align to pixel grid for new object does not work

    I have set my document to align new objects (shapes) to pixel grid under the advanced settings
    I have gone into the options on the transform panel and set the check box to say all new objects should also align to pixel grid
    But when I create a shape it doesn't work, I end up with shapes with 3 digit decimal sub pixel sizes. eg. 34.536px
    If I want an object to align to pixel grid I'm having to set it individually for each object.
    Is this a bug that will get fixed or is there some work around, it's frustrating to have to set the feature for every single object I create

    Align new Objects to pixel grid setting works perfectly for all tools in Adobe Illustrator CC (17). In Illustrator 2014 CC (18) the rectangle and rounded rectangle tool do not automatically align to pixel.
    This thread says it's because of the new Live Rectangle tool objects are exempt from the Align to Pixel grid until you release them by expanding them.
    Bug? Illustrator CC 2014 and Pixel Grid settings not working.
    I'll be using the old version until Adobe 'fixes' this.

  • Mail search feature for Yahoo mail does not work in Firefox

    the search box in yahoo mail is unresponsive. Had to open Yahoo mail in Chrome to do the search. I have the latest version of Firefox running on Vista.

    Hello,
    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

  • My new iMac does not recognise an iso image of windows install disk in boot camp

    I have the iso file for win7 64bit but when I run bootcamp I do not get the option to use a USB stick, so loaded the file onto a DVD-R disk.
    When I load the disc the iMac tries to read it then stops and asks to me to put the disk in.
    I am logged in to the machine as the administrator.
    As a registered MSDN member I downloaded the iso file direct from the Microsoft MSDN website only a couple of weeks ago.
    Any asisstance will be most appreciated, as I am a Mac newby and I really want to dump my old windows laptop and desktop machines1

    Hi I'd recommend re-posting in the Boot Camp forum, that is where the Boot Camp & Windows guru's hang out.
    Good luck.

  • New Macbook does not recognise Airport Express

    Hello -
    My new Macbook doesn't seem to see my Airport express despite rebooting and resetting the Airport Extreme and Express hardware.
    Can anyone advise me what might be going wrong please?
    Many thanks..

    Thank you. I have finally got Airport Utility to recognise the Airport Express.
    In the next step (when i select the Airport Express station) it asks me if i want to switch wireless networks and issues the following warning:
    Setting up this Apple wireless device requires switching wireless networks. Switching wireless networks may interrupt your connection to the Internet.
    What do I do? I still want Airport Extreme to work. I just want Express to work with it.
    I'd be very grateful if you could offer any advice.
    Thanks...

  • Checking for new mail icon next to mailbox seems to have disapeared

    After upgrading to OS X Mountain Lion I noticed that the icon next to each mailbox that shows when checking for new mail is not there.  I wonder if anyone else has noticed this, and if they have found a fix?

    Yes, the little "spinner" is gone with Mountain Lion.  It's checking mail, you just don't see it.

  • NEW_FORM call from menu module does not close previous form window

    We run Forms 9.0.4 and I just developed three new form screens. The problem is that when new screens are called with NEW_FORM call from menu module:
    New_Form(p_form_to_open,TO_SAVEPOINT,NO_QUERY_ONLY,NO_SHARE_LIBRARY_DATA,Menu_Globals.v_form_parml);
    the window from previous form is visible in the background.
    Strangely enough same call from the same menu module using exactly same NEW_FORM call for old screens does not leave previous window visible. I've checked Form level properties, Window Level Properties, Different Menu Properties, and could not find anything that would fix it.
    Any pointer would be appreciated.

    I've figured it out:
    The old screens have main window named ROOT_WINDOW. As soon as I named the window on new screen to be ROOT_WINDOW the background window disappeared.
    How stupid is that. Wasted my whole day on this.

  • Stationary credated in Mail does not appear properly when viewed in Outlook, is there aroundthis?

    Stationary credated in Mail does not appear properly when viewed in Outlook, is there around this? Or, can I export (as a PDF) the email drafted in Mail with stationary that does not have the meail info on top of the page . Thanks so much for your help.

    No real solution to problem 1, stationary tends to look different depending on the client, as for 2 Mail does not export to pdf but can print to pdf, however you still get the mail headers.

  • Latest version does not recognise my playlist or libraries!!Help

    Looks as though the latest version of i-tunes has loaded itself onto my pc. I was happy with the old version....because it worked! can I download and use a previous version?
    New version does not recognise my Playlists , libraries and i cant locate newly downloaded songs.
    I've tried following i-tuned help to restore libraries. i.e removing the library file to desk top and then the old one to trash, still nothing ...any help greatly appreciated.
    Driving me nuts.

    Is your iTUnes up to date? I believe the iPhone 5 requires iTUnes 11.

  • Automatically checking for new mail in IMAP folders.

    Here is my relatively simple issue with Mail.
    I use an IMAP email provider called Fastmail and use their server-side rules to automatically direct incoming emails into separate IMAP subfolders.
    My question is when Mail polls for new mail; it only seems to poll for new mail messages in the main Inbox but not in any of the sub folders. I then have to manually click on each of the other IMAP folders to see if they have received new mail messages.
    I am recent convert from Windows and can confirm that I did not have this problem when using MS Outlook.
    I was wondering if any one else has experienced a similar problem and more importantly come up with a solution!

    I was wondering if any one else has experienced a
    similar problem and more importantly come up with a
    solution!
    Yes, this is a problem I've had with Mail.app from day one. The closest thing that I have come across as a solution is a to write an AppleScript script to convince Mail.app to check all of my folders. However, this is far from an optimal solution for many obvious reasons. I can only hope that Apple will fix this in the future, but it's been a few years with no solution in sight yet.
    15 Aluminum PowerBook   Mac OS X (10.4.7)  

  • Mail does not create new emails based on the highlighted mailbox, but rather the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part?

    Mail does not create new emails based on the highlighted mailbox, but rather according the receiving mailbox of whatever individual email happens to be highlighted. This was not the case prior to Lion. Is this a bug or an error on my part? (I do have the setting for creating new emails from the highlighted mailbox checked.)

    The questions about time was not only because of thinking about the Time Machine, but also possible impact on recognizing which messages remaining on a POP server (doesn't apply to IMAP) have been already downloaded. In the Mail folder, at its root level, in Mail 3.x there is a file named MessageUidsAlreadyDownloaded3 that should prevent duplicate downloading -- some servers may not communicate the best with respect to that, and the universal index must certainly be involved in updating that index file. If it corrupts, it can inhibit proper downloading. However, setting the account up in a New User Account and having the same problem does not point that way, unless your POP3 server is very different from most.
    That universal index is also typically involved when messages are meant to be moved from the Inbox to another mailbox -- in Mail 3.x the message does not move, but rather is copied, and then erased from the origin mailbox. That requires updating the Envelope Index to keep track of where the message is, and should keep track of where it is supposed to have been removed after the "Move".
    Ernie

  • Check for new mail not working on one account

    For a number of months now I have been having trouble getting new mail. I have my Apple Mail 2.1 preferences set to check for new mail every minute and play a New Mail Sound when something arrives. This seems to be working for my earthlink POP account but not my dot.mac e-mail account. The only way to get new dot.mac e-mail on my G5 tower is to alternately click on the left most icons for the different incomming tray icons in my in box, then the InBox icon itself. I dont have to do that for my second e-mail account--an earthlink POP account, or on either account on my laptop. Also, When I do click on the specific in box for my dot mac account, it takes forever to load that new mail, and the activity monitor shows that it is caching every attachment that is already in my in box even though it is already old mail.
    Also, Mail seems to be following Smart Mailboxes arbitrarily. For instance, I have a smart mailbox set up to display any incoming mail from someone in my Family Group from address book, however it seems to ignore about half of these, but display the other half accurately.
    Anyone know whats going on or how to fix it so I dont have to mannually keep checking for new mail? Again, I have my preferences set to check for new mail every minute and to play a new mail sound, and new mail does work fine from my Earthlink POP account.
    Thanks for your help.
    LANNY
    Dual 2GHz G5 Power PC; Titanium PowerBook   Mac OS X (10.4.8)  

    If this happens to your .Mac account only, try rebuilding the mailbox, i.e. select it and do Mailbox > Rebuild.

Maybe you are looking for