I need an AppleScript to change folders in Mail

I know the issue of rules sorting your mail, but the folder counts not changing, is an issue that has been addressed several times. I have most recently posted in this thread asking for a solution: http://tinyurl.com/abgog7
I am thinking that there may be a solution (albeit a messy one) using AppleScript. Can someone advise me if it would be possible to write an AppleScript that would actually touch the folder that messages are filtered into when a rule is run? Actually touching the folder is the only way to make the new message count update.
Unfortunately, I have zero knowledge of AppleScript & a search has turned up nothing that could be used or even modified to do what I want. I am hoping someone out there can at least tell me if this is possible.
THANKS!

Well, that was fast! I found a batch of Mail Scripts very originally called Mail Scripts 2.9 (http://tinyurl.com/jgrlv). In the batch of scripts, it has a specific script that will do exactly what I wanted it to do which is move to the mailbox a message is filtered into.
Now I need to see what happens when multiple rules are run at the same time filtering into several folders & hopefully it will not break the script.

Similar Messages

  • After downloading IOS 8.0.2 on my iPhone 5, my email messages are not automatically coming through.  I have to open my mailbox and wait for messages to download.  Do I need to reset or change settings for mail?  Please help.

    After downloading IOS 8.0.2 on my iPhone 5, my email messages are not coming through automatically. Before, my email messages would come through automatically and my iPhone would alert me each time an emial message was recevied.   I now have to open my mail in-box and wait for my email messages to download.  Do I need to reset or change my mail settings?  This issue is delaying my abiliy to receive and respond to email messages in a timely manner.
    Please Help.
    Jesse

    Hi Chris.  Thanks, for the suggestions re: my email issues.  They were helpful and yes I did check all items you referenced.  I even contacted Apple support and spent about 40 minutes on phone checking all settings.  However, after all these efforts, my mail and calendar issues were not resolved.  Apple Support finally recommended deleting the mail account and then reloading it - and it worked!  I am now receiving my emails and calendar appts. in real time again.
    Just wanted to share this in case anyone elest has a similar problem with mail/calendar after downloaing i.O.S. 8.1 onto iPhone 5.
    Thanks, again.
    Jesse

  • I cannot change folders in Mail.

    A few weeks ago, Mail stopped opening, but I fixed it by looking through posts that were similar to my problem. However, once I got mail working again, I was no longer able to do anything to the account. I can't create or delete mailboxes. Any mailbox I select is highlighted in gray. Also, under the Trash mailbox, there are now two "sub"trashes: "On My Mac" and "[email protected]" (my mac.com email account). These were not there before. I created my mac.com account with set up assistant, and it organized Mail automatically. Any advice would be helpful. Thanks.
    MacBook   Mac OS X (10.4.8)  

    I can't create or delete mailboxes.
    What do you mean?
    Any mailbox I select is highlighted in gray.
    I don't understand this either. The mailbox is supposed to be highlighted if you select it, so what exactly is the problem here?
    Also, under the Trash mailbox, there are now two "sub"trashes:
    "On My Mac" and "[email protected]" (my mac.com email account).
    This is normal. There is a Trash mailbox for each account, plus one for local "On My Mac" mailboxes.
    These were not there before.
    This is normal too. Most mailboxes used by Mail are created only when needed to actually store something in them.

  • Applescript to change Pages underline to italic

    I need to scan 85,000 words in a Pages document and change all underlined words to italic.  I have the following code:
    tell application "Pages" to tell front document
              repeat with i from 1 to (count every word)
                        tell word i
                                  if underline type is in {single underline, double underline} then set properties to {underline type:none, italic:true}
                        end tell
             end repeat
    end tell
    This works great as far as it goes.  The only problem is that this changes only the words in the document, but not the spaces between them.  So it will turn this: (The quick brown fox)  into this: (The_quick_brown_fox).  But what I want is this: (The quick brown fox).
    So how would this Applescript need to look to change the formatting of the space after the word, as well as the formatting of the word itself?  Or maybe the code should add a delete and space after each changed word?  I'm not sure.
    Any help is HUGELY appreciated!

    I need an Applescript to change the desktop picture using a file on the web.
    You can't do this directly - the OS won't use an internet-based image for your desktop picture (think about it - what would it do if your machine were offline?)
    All is not lost, though - all you need to do is download the image to your machine first, then you can set it as your desktop image:
    tell application "URL Access Scripting"
      download "http://www.geekpedia.com/gallery/fullsize/apple-pink-blue-wallpaper.jpg" to file (path to desktop as text) & "wallpaper.jpg"
    end tell
    Now you have a file wallpaper.jpg on your desktop (adjust the file name/path as you like), which you can use before your existing code to set it as your desktop.

  • I need applescript to change all files in a folder and its subfolders ending in .xlsx changed to .xlsb

    I need applescript to change all files in a folder and its subfolders ending in .xlsx changed to .xlsb

    try something like this:
    with timeout of 3600 seconds
      -- long timeout to because the Finder is horribly slow
              tell application "Finder"
      -- collects the files from a folder called "whatever" in your user home folder
                        set xlsbFiles to every file of entire contents of folder "Whatever" of home whose name extension is "xlsb"
                        repeat with thisFile in xlsbFiles
                                  set name extension of thisFile to "xlsx"
                        end repeat
              end tell
    end timeout
    you could make a more efficient script using System Events.app, but this will get the job done with a minimum of thought.

  • Create an Applescript to change focus order in browser

    Hey all,
    I'm curious if it is possible to create an Applescript to change the order focus within a browser.
    I have a bulk of data that needs to be entered into a database online.
    The focus order of the website design is not logical hence pressing tab to move from one field to the next results in confusion.
    (It includes buttons in headers, footers and empty fields making this extremely frustrating as I have to continuously use the mouse)
    Google search has not really given me any results, so I was hoping to build one.
    Thanks,
    Cheebs

    I think it is unlikely that you will get far with AppleScript as this normally involves reverse engineering the web page HTML/JavaScript and perhaps having a modified local copy of some or all of it.
    Are you able to paste the URL here without security implications?
    You could try looking at the source HTML of the web page.
    I am not sure if anybody makes a special web page viewer which has more control than a standard browser.

  • I can't delete photos from my Ipad I have tried already removing and changing folders in photos app

    I can't delete photos from my Ipad I have tried already removing and changing folders in photos app

    If photos were synced from your computer then they can't be deleted directly on the iPad, you will need to remove/de-select them from where you synced it from on your computer and re-sync.
    http://support.apple.com/kb/HT4236

  • HT202905 Applescript is exporting folders with a space after the foldername.

    Applescript is exporting folders with a space after the foldername. This is causing problems with an FTP upload of ours. Is there a way to ensure Applescript doesn't insert spaces on the end of folder names?
    Thank you!

    one4truth wrote:
    i bought a used 2 year old macbook pro last week did an erase and install with leopard and once that was done with nothing transfered firewire the drive had over 20 gigs of used space on it so i started snooping around and saw a number of folders in a folder labeled base system that have a solid red circle with a white dash in the middle next to them after clicking on them it says i do not have permission even though i am in under admin?
    the fact that you are an admin doesn't mean that you automatically have access to everything. those folders are owned by the system and have restricted permissions. you should not mess with them. those permissions are mostly restricted to prevent curious users with itchy fingers from damaging the system. as an admin user you can change those permissions and give yourself access to those folders but as i said you shouldn't.
    any ideas to what it is what to do or why it took over 20 gigs to install?
    20 Gigs sounds like a bit too much. have you installed any programs besides leopard itself?

  • I need to change my e-mail address in the app store to enable me to get updates and buy more. How does this happen??

    I need to change my e-mail address in the app store, how does that work??

    On apple website, seraching on support, the article HT1918 explains.
    Log into your apple ID and edit your personal information, where email can be changed as well. All applications as itunes stores, apple store and icloud use this same apple ID, so be aware of this.
    I hope I was helpful !

  • When my husband and I got these iPhones . We had the same Apple ID .(not good) that has changed . We have a iCloud acct. how or what do I need to do to change on my setting under iCloud it has his Apple ID  and also on r PC it has only his info none of mi

    When my husband and I got these iPhones . We had the same Apple ID .(not good) that has changed . We have a iCloud acct. how or what do I need to do to change on my setting under iCloud it has his Apple ID  and also on r PC it has only his info none of mi

    To change the iCloud account on your phone you have to go to Settings>iCloud, tap Delete Account, provide the password when prompted to turn off Find My iPhone.  When you delete the account you will be given the option to either keep or delete the iCloud data from your phone.  This also, only deletes the account and the iCloud data from your phone, not from iCloud.  Your husband's phone won't be effected by this.  Then, to create a separate account, sign back in with a different Apple ID (you can continue to share the same ID for iTunes).
    If you have any photo stream photos that you want to keep on the phone, save them to your camera roll before deleting the account. 
    If you're sharing the same ID for iMessage and FaceTime you'll end up getting each other's text messages and FaceTime calls.  To prevent this, go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with your new iCloud ID.  Then do the same thing in Settings>FaceTime.

  • I have changed my e-mail address and therefore need to change my apple ID. When I change it to my new address it says it is already my rescue address and cannot be used. Any ideas how to change my rescue address?

    I have changed my e-mail address and therefore need to change my apple ID. When I change it to my new address it says it is already my rescue address and cannot be used. Any ideas how to change my rescue address?

    To change the iCloud ID ("email address") you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Is it possible to change the color of the folders in Mail

    I just tried to change the color of the IMAP folders in Mail.
    I want to mark some of the folders to find them easier.
    so it would help if i can chance the color of the Name or Icon.
    Thanx

    Sorry, but i found some old discussions like this...
    please delete

  • Precautions i need to take when changing the Character set

    Hi,
    ORACLE VERSION: 10G Release 1 (10.1.0.3.0)
    I am going to change my database's characterset from AL32UTF8 to WE8MSWIN1252 character set and AL16UTF16 NCHAR character set. So i have few questions for you.
    1. What is the difference between Character Set and National Character set? Do i have to set both?
    2. What are precautions that i need to take while changing the characterset?
    3. What are JOB_QUEUE_PROCESSES and AQ_TM_PROCESSES parameters in Plain English? Why do i have to set these parameters to 0 as mentioned in this post below.
    Storing Chinese in Oracle Database

    1) The database character set controls (and specifies) the character set of CHAR & VARCHAR2 columns. The national character set controls the character set of NCHAR & NVARCHAR2 columns.
    2) Please make sure that you read the section of the Globalization manual that discusses character set migration. In particular, going from UTF-8 to Windows-1252 is going to require a bit more work since the latter is a subset (and not a strict binary subset) of the former.
    Justin

  • Need help On Triggers/Change pointers in SAP

    Hi Experts,
    I Need help On Triggers/Change pointers in SAP.
    I have a requirement  as soon as an entry is created in one of the  Standard SAP  table it should check against my Ztable and update and create the corresponding entry in another Ztable.
    Can some one help me out on this with the syntax and how to do it

    Hi,
    Check whether you have any enhancement option (BADI, user exit, Customer enhancement etc) in the program which is used to save the data in the SAP standard table. If so, then try to write your code in that appropriate enhancement.

  • I need a list of all folders created in Profile folder by Excel 2013

    I am having issues with Excel 2013, I have noticed some folders are missing .e.g xlstart.  So I need a complete list of folders created by Excel 2013 to compare

    Are you sure you are looking in the right place, paste the following in the Immediate window in the VBE and hit enter
    ?application.StartupPath 
    If there isn't an XLSTART probably you haven't yet created a Personal file

Maybe you are looking for