Why is the applescript action in a mail rule always pushed last?

Hi,
I try to create a rule in Mail such that an Applescript is executed and then other things are done to the message (such as move it to a folder, for example). I want this to be the preceise order of things: first, do script, next, do other things.
I create my rule in the Mail preferences, and it all goes fine. But when I reopne the rule to examine it again, I see that the Applescript part of the actions has now been pushed to the end of the action list.
I wonder if anyone can explain the logic of this? I didn't find any reference in the help for why is this happening. Is it because of the possible time-out associated with the applescript (so as not to hang the rest of the rule evaluation)?
Thanks for any insights.
-- ivan
PM DC 2Ghz G5, PB 1.5GHz G4   Mac OS X (10.4.5)  

I don't know exactly but it might be that Mail has no way of knowing that the Applescript has completed in order to continue. So, making it the last step ensures that the complete rules will work everytime.
What are you trying to do with your messages? Perhaps we can figure out a workaround.
Bronson

Similar Messages

  • Why is an applescript always pushed to end  of action list in Mail rules?

    Hi,
    I try to create a rule in Mail such that an Applescript is executed and then other things are done to the message (such as move it to a folder, for example). I want this to be the preceise order of things: first, do script, next, do other things.
    I create my rule in the Mail preferences, and it all goes fine. But when I reopen the rule to examine it again, I see that the Applescript part of the actions has now been pushed to the end of the action list.
    I wonder if anyone can explain the logic of this? I didn't find any reference in the help for why is this happening. Is it because of the possible time-out associated with the applescript (so as not to hang the rest of the rule evaluation)?
    Thanks for any insights.
    -- ivan
    G5 DC 2GHz, G4 PB 1.5 GHz Mac OS X (10.4.1)

    I don't know exactly but it might be that Mail has no way of knowing that the Applescript has completed in order to continue. So, making it the last step ensures that the complete rules will work everytime.
    What are you trying to do with your messages? Perhaps we can figure out a workaround.
    Bronson

  • Why is the refreshing button on iCloud Mail all the way below at the left corner?

    The refreshing button on iCloud Mail service is at the left corner in the bottom. I sometimes click the windows start button instead of refreshing button. They are so close. At all e-mail services, the refreshing button comes at the top and close to all other most necessary buttons. It has to be changed because it *****.

    Welcome to the Apple Community.
    This is a user to user community, Apple are unlikely to read your comments, if you have any suggestions that you think might enhance iCloud you can send Apple your feedback here.

  • Applescript to activate a Mail rule

    Hi I have set up an out of office rule for someone in our studio but it needs to be activated and deactivated every Monday. I have CronniX which can handle the activation of the script but i'm banging me head trying to find a script that activates a Mail rule they all seem to be the other way round. (rule activating the script)
    Any help is appreciated.
    Thanks

    This is exactly what I need as well, could you share the link. I've registered for MacScripters now, but I haven't received my password, so I can't seem to search.

  • IOS 5 Mail app always push mail

    hi there,
    I have set 2 mailbox with Exchange settings in the mail app on my iPhone 4S (iOS 5.0.1)
    As I was on holiday I have set the mail settings to disable PUSH and enable FETCH with the schedule "hourly"
    BUT I have figured out that I am receiving the email still as push and not only downloaded hourly.
    Now I am back in the office and I have tested it.
    If the mail app is running I am receiving the email even faster (2-3 seconds) than my computer with Outlook running and connected to the Exchange server local...
    If the mail app is NOT running I am receiving the emails a little bit later, like 20-30 seconds after they arrive in Outlook.
    BUT not JUST only hourly.
    Here are my settings:
    How is it?! Bug?
    or
    Works as designed? If push is available it doesn't count what are the other settings it will drain battery and use as push?
    That cannot be, if I am on holiday or in the office before my laptop I didn't want to receive my business mails with push.
    If I am abroad yes, for this I will use "push ON"...
    But for other just "fetch hourly"
    Is this possible?

    Thanks Allan.
    Good suggestion. Tried it but unfortunately it didn't work. it recreates the Outbox directory in ~/Library/Mail/Mailboxes when I open it. The directory no longer has anything in it (ie no info.plist of Massages folder).
    But when I am in Mail.app it still has a message in the outbox. I have to delete it quickly when I open Mail.app, otherwise it will send it.
    After I delete it, the window has no messages in it, but on the left the mailbox has a '1' in circle next to it. When I click on another mailbox then click back on Outbox, a 'new' (but previously sent) email is there ready to resend.
    I'm using IMAP and my Mail.app at home does not have this problem (both machines are using Leopard 10.5.3)

  • Please help with troubleshooting Applescript invoked by Apple Mail rule

    I set up an account with Boxcar to get push notification of incoming email on my iPhone. I did this because I passworded my iPhone and cannot see incoming messages without entering the password. Now all I need to do is glance at the screen to see whether it's worth it or not to look at the email. In order to use the Boxcar service, I needed to set up a rule to redirect all incoming mail to my private address on Boxcar. The issues that I have are two-fold. First, I do not like blindly forwarding email content to Boxcar regardless of their stated claim that they strip out the sender and subject of a message and discard the rest. Second, if I get a large incoming email, then My method will have to send the large content out again - a waste of resources. To get around this, I tried to write an Applescript for Apple Mail that is invoked by a rule applicable to all messages. The script redirects all messages to my private Boxcar email address and strips out the content of the message. The script follows:
    using terms from application "Mail"
    on perform mail action with messages selectedMessages
    set AppleScript's text item delimiters to ""
    repeat with theMessage in selectedMessages
    set boxcarMessage to redirect theMessage
    tell boxcarMessage
    make new to recipient at beginning of to recipients with properties {address:"[email protected]"}
    set content to " "
    set subject to theMessage's subject
    end tell
    send boxcarMessage
    end repeat
    end perform mail action with messages
    end using terms from
    The problem with this script is that it still sends out the content even though I thought I was setting it to a single space. Other than that, it does just what I need it to do. Any suggestions on corrections, an easier Applescript, or another way to approach the whole issue? One drawback to this approach is that I need to have a Mac running at home that processes the rule for the incoming messages - probably there is no way around this?
    Thanks!

    That makes sense, but then that gets back to your original comment:
    "redirecting the message will send the entire message, as-is."
    I tried to eliminate the attachments by adding the line:
    delete boxcarMessage's attachments
    but it did not work - the attachments were redirected also. So here is the script as it stands now:
    using terms from application "Mail"
    on perform mail action with messages selectedMessages
    set AppleScript's text item delimiters to ""
    repeat with theMessage in selectedMessages
    set boxcarMessage to redirect theMessage
    delete boxcarMessage's attachments
    tell boxcarMessage
    make new to recipient at beginning of to recipients with properties {address:"[email protected]"}
    end tell
    delay 3
    send boxcarMessage
    end repeat
    end perform mail action with messages
    end using terms from
    I appreciate the input. Intuitively it seems like this is doable, but the solution escapes me.

  • Applescript to trigger a Mail Rule

    I'm trying to do something I thought would be simple ... but I can't figure it out.
    My goal is to get specific messages from one mailbox and put them into my Inbox. I've used a rule with a MailTags deadline to get the messages into the box, and I have created a rule to move mail with a deadline of today or earlier back to the Inbox. I would like to automatically apply the "move to inbox" rule to the contents of the other mailbox, so I can have iCal move my messages every morning.
    I am not very good at scripting, and I can't figure out how to write a script to apply the move to inbox rule to every message in the other mailbox. Can someone help me or point the way to a script that I can adapt? Everything I've found works the other way (using a rule to call a script — I want a script to call a rule).
    Or, is there a better, easier way to do this? It is important that the process can be set to run automatically. This whole thing is to get messages that are "on hold" out of my inbox until the time when I can deal with them. If they don't come back automatically, I'll forget about them.
    I did try using a SmartFolder — but creating a SmartFolder that works off MailTags rules makes my system slow to a crawl, and the badge counts are all off.
    Thanks in advance

    I'm trying to do something I thought would be simple ... but I can't figure it out.
    My goal is to get specific messages from one mailbox and put them into my Inbox. I've used a rule with a MailTags deadline to get the messages into the box, and I have created a rule to move mail with a deadline of today or earlier back to the Inbox. I would like to automatically apply the "move to inbox" rule to the contents of the other mailbox, so I can have iCal move my messages every morning.
    I am not very good at scripting, and I can't figure out how to write a script to apply the move to inbox rule to every message in the other mailbox. Can someone help me or point the way to a script that I can adapt? Everything I've found works the other way (using a rule to call a script — I want a script to call a rule).
    Or, is there a better, easier way to do this? It is important that the process can be set to run automatically. This whole thing is to get messages that are "on hold" out of my inbox until the time when I can deal with them. If they don't come back automatically, I'll forget about them.
    I did try using a SmartFolder — but creating a SmartFolder that works off MailTags rules makes my system slow to a crawl, and the badge counts are all off.
    Thanks in advance

  • Why is the First Item Moved by a Rule is Grayed Out

    Howdy,
    When rules are applied to move e-mails from my Inbox to some other folder the first item in any of those folders is either grayed out and not listed as new or has the Junk Mail Flag set even though Mail doesn't think it's junk mail (i.e., the thimbs down button is active rather than the thumbs up button to reset to not junk). This is with Mail in 10.8.1.

    Hi,
    For this issue, I would suggest you update to the latest printer driver, if you have any other related printer\scanner programs installed, please make sure that you have the latest version or reinstall as a test.
    It's recommended to contact the manufacture for members there are more familiar with this product
    Brother Support
    http://www.brother-usa.com/askus/#.VA_jdFscSM8
    NOTE
    This
    response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft
    does not control these sites and has not tested any software or information found on these sites.
    Yolanda Zhu
    TechNet Community Support

  • Why does the iPhoto slideshow I exported as a movie only last 5 seconds?, How do I save an iPhoto slideshow as movie?

    I followed the instructions for exporting an iPhoto slideshow as a Qucktime movie, but when I drag it onto my iWeb page, it only plays for 5 seconds.  What am I doing wrong?

    I started having this problem last week. It affects new and old photos. Maybe one in several hundred photos has this problem. Some of them were fine earlier and have been in iPhoto for years.
    This seems to be a rendering problem of some sort. When I click on the thumbnail, a fuzzy low-rez image comes up full size, but instead of resolving to full resolution the screen just goes black.
    I imported 30 images yesterday. Jpegs created from RAW files by Nikon Capture. All but one are fine. The actual file in the library seems OK (I tried the suggestion above). I can export the photo and it's fine in mail or other viewers. It's just that Iphoto can't seem to display it at full/high resolution. At first I thought that it might be due to the size (12Mpxl) but the other ones are fine, and some of the old images this happens to are small (2mpxl) and taken as jpgs by an old canon point and shoot.
    I'm using Iphoto8 7.1.3(364) and the only thing that's changed on my computer recently is adding the latest 10.4.11 java and security updates.
    I tried to duplicate the photo, and the problem also occurs with the duplicate. I can't do the revert trick, since I haven't edited the file in any way since import.
    Any help would be appreciated. I'm happy to send the affected photo if it helps.
    Thanks.

  • When using classic dialog controls in labview 7.1 why does the text color that I have selected always stays black?

    I have an older program created in LV 6.0.2 that uses dialog buttons. The text color is red or blue. When I load it into LV 7.1 the color stays black. When I edit text I can see that the color is correct but it will not display the color when I leave edit mode on the control. Even if I select a new button from the classic tools pallete "dialog controls" I am unable to change the text color.
    What is happening? Why does LV 7.1 prevent this text color change?
    Roger

    The dialog control colors are set by the operating system so they match other controls that the OS generates. So in LabVIEW 6, they were actually not behaving correctly.
    The following text is from the LabVIEW help on Dialog controls.
    "You cannot customize the appearance of the dialog spin control, slide controls, or progress bars because the controls and indicators use platform-specific drawing functions that do not support customization. You also cannot use Property Nodes and Invoke Nodes to customize the appearance of these controls and indicators."
    If you need different text color, you'll have to use the non dialog controls.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Why do the electrical adapters for Apple mobile devices always develop a crack in the wire casing?

    Almost every Apple mobile adapter I've had must be replaced after a year or so.
    You'd think that if they can create such brilliant products, they could supply us
    with a durable cord which cannot cause shocks or shorts.  I've spent hundreds
    on replacement laptop adapters.  It's highly irritating.

    Your obviously a huge apple fan and going to defend it's lack of functionality. A print function is not going to effect battery life, nor decrease hard drive space. If it was intended purely as a toy then why include software to write documents and create spreadsheets. I don't know many people who create spreadsheets for fun.
    What about people wanting to print photo's. 'There's an app for that'
    I personally think it's a huge oversight and a major disappointment for the iPad. If it is capable of it why not include it.
    I agree. I think a camera is a ridiculous thing to have on the iPad.....but you should be able to connect a camera o it and upload photo's.
    If apple hadn't left so many features off of the original iphone i would probably just accept that this is what apple intended the product to be used for and tough luck if it doesn't do what i want it to. But Apple left so many simple features off of the iphone it was ridiculous. They revolutionised the mobile phone but at the same time took it back 5 years in functionality. No MMS, No multi delete, no multi sms recipients.........etc.
    For a company so keen on selling top notch products to as many people as possible it seems crazy not to have a print function. Loads of businesses would use this if it had. I'm not the only one that thinks it's crazy not having a print function....just do a google search and there are thousands more asking the same thing.
    Adding a print function could probably sell a couple of million more units.
    It is a computer by the way....it runs an OS system. It has programs......it's just not a fully functional computer!
    Apparently Stove Jobs has said via an email that printing will come.......if it;s going to come then why wasn't it here to start with!
    Message was edited by: ChrisRianPhillips
    Message was edited by: ChrisRianPhillips

  • Why do the options for a new Home page always appear first when I sign in when I already have a Home page?

    The screen page for creating a new Firefox Home page always shows up first when I sign on.....but, I already have a Home page and have to click again to get there.
    How can I get Firefox to go directly to my actual Home page?

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • Why is the FROM field in Task Details not always populated on in-flight BPs

    On a BP, the Task Details section contains a "From:" and a "To:" field.
    1. If I am the assignee, the From and To fields are populated.
    2. If I am NOT the assignee, the From field is empty, but the To field is populated. The behavior is the same whether the assignee accepted the task or not.
    This becomes inconvenient, for example, on a coordination step with multiple inflows and outflows. If the From field were always populated, I could readily get a sense of the context of the current step without fishing through the timestamps of the Process Details, particularly if this step is revisited multiple times.
    Granted, it's minor, but our users have noticed. Is there any reason for this?

    Thank you for your reply.  I changed the error handling as you suggested on the 2nd lookup to redirect to unmatched rows.  Now I get all greet.  I don't have the conditional split as in your diagram.  But also, nothing appears to have
    happened in the DB.  Aren't the rows in my text file supposed to be added to the FactCurrencyRate table?
    How do I get a conditional split?
    Rich P
    OK, sorry I forgot to reply you back.
    Conditional Split was just dummy task. Ignore it.
    Manipulate the data in such way that you get matching records.
    Inside Source, for first 2 rows I put the dates which are available in DimDate.
    1.00010001,ARS,7/1/2005 0:00,0.99960016
    1.00010001,ARS,2/5/2006 0:00,1.001001001
    1.00020004,ARS,9/5/2001 0:00,0.99990001
    1.00020004,ARS,9/6/2001 0:00,1.00040016
    1.00050025,ARS,9/7/2001 0:00,0.99990001
    1.00050025,ARS,9/8/2001 0:00,1.001001001
    Then in OLE DB Destination, I loaded the rows to TestFactTable.
    (Now, you don't even need NO MATCH OUTPUT as there are matching records here)
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Why does the Battery life of my iPhone 4 doesn't last as long as it used to before updating my software to iOS 6? Can this problem be fixed?

    Hey there,
    I have upgraded the iOS on my iPhone 4 to the iOS 6 and now my battery life doesn't last as long as it use to. I read something about Safari syncing some currupted bookmarks and whatnot. I basically need to know how could I fix this problem. I know that the iphone needs to have a decent perfomance regarding the battery life, since I've had it for less than 6 months now.
    Any help will be appreciated!

    Hey there,
    I have upgraded the iOS on my iPhone 4 to the iOS 6 and now my battery life doesn't last as long as it use to. I read something about Safari syncing some currupted bookmarks and whatnot. I basically need to know how could I fix this problem. I know that the iphone needs to have a decent perfomance regarding the battery life, since I've had it for less than 6 months now.
    Any help will be appreciated!

  • Why does the Avast online security tab now suddenly always open when I start Firefox, it never use to happen?

    As above sentence. Suddenly, every time I start Firefox it opens with the Firefox tab and the Avast online security tab. This didn't use to happen. I've tried disabling it via Firefox (as it was loaded on the computer long before I had Firefox) which solves that problem but then the large green tick icon doesn't show next to the search list to show the site is safe. It's very annoying that it has started doing this and certainly don't want it!

    Sorry you might as well as written it in double dutch. I didn't understand it at all. Previously I have said I don't understand computer speak.

Maybe you are looking for

  • How to get J2SE Adapter?

    Hi all, I am planning to use J2SE adapter with NW2004s 7.0. Where do I get the adapter? Thanks, Prabhu.

  • Compressor DPX output from Prores (4444) QT is washed out, can I fix this?

    Hi all, I've been trying to use compressor to convert quicktimes to DPX, but have noticed that the DPX files rendered out are all washed out. I imagine this is because compressor is doing a video/lin to log conversion. Is there anyway to avoid this?

  • Oracle Text index hangs(Oracle 11g linux enterprise edition)

    Hi guru, One very criticial and showstopper issue coming in Oracle Text Indexing. I have table ResourceTable(ResId,Contents blob ,docformat) I am creating text index on Contents column by using follwing command: create index [IndexName] on [TableName

  • How to create a database with full import

    Any other way to create a database without using below steps : 1)create database 2)use show=y and then create all the tablespace 3)and last imp full=y and ignore=y

  • Adsense and other ads not showing up in Firefox or Safari

    I've got a pretty irritating error coming up, no matter what I do I cannot for the life of me get ads to display in FireFox OR Safari. I've tried using different connections, and no dice. I've tried nixing every open process expcept a browser, and st