Mail script not working since Mavericks (set preview pane is visible)

Anyone have an idea?
Here's a script which worked on Mountain Lion, but fails on Mavericks.  It fails when trying to "set preview pane is visible to false":
FYI - This script mimics a behaviour of Sparrow.
tell application "Mail"
     tell message viewer 0
                    if preview pane is visible then
                                   set mailbox list visible to false
                                   delay 0.1
                                   set preview pane is visible to false
       (* I don't know why this delay is necassary.  It wasn't
                                      when I first wrote this script …cb *)
                                   delay 0.1
                                   tell application "Mail"
                                                  set bounds of window 1 to {0, 0, 400, 1058}
                                   end tell
                    else
                                   tell application "Mail"
                                                set bounds of window 1 to {405, 0, (405 + 1200), 1058}
                                  end tell
                                  set mailbox list visible to true
                                  delay 0.1
                                  set preview pane is visible to true
end if
     end tell
end tell

This post gave me the idea of the following script, which seems to work properly with version 7.1 (1827) of Mail under OS X 10.9.1. The script uses GUI Scripting.
tell application "Mail"
    activate
    tell message viewer 1
        if (preview pane is visible) then
            tell application "System Events" to tell process "Mail"
                tell menu bar item "Mail" of menu bar 1 to ¬
                    click menu item "Preferences…" of menu 1
                tell window 1
                    click button "Viewing" of toolbar 1
                    click checkbox "Use classic layout" of group 1 of group 1
                    click checkbox "Use classic layout" of group 1 of group 1
                    click button 1 -- close window
                end tell
            end tell
        else
            if mailbox list visible then
                set mailbox list visible to false
                delay 0.5
                set mailbox list visible to true
            else
                set mailbox list visible to true
                delay 0.5
                set mailbox list visible to false
            end if
        end if
    end tell
end tell

Similar Messages

  • HT6114 My Apple 7.2 mail does not work since I upgraded to OS X Mavericks, what has gone wrong?

    My Apple 7.2 mail does not work since I upgraded to OS X Mavericks, what has gone wrong?

    Have you tried using http://support.apple.com/kb/HT4505 guidance for scanning?  Has always worked for me with my Epson scanner.

  • BASH] mail-script not working

    Hi,
    Taking first steps in bash-scripting in making an autoreply-script to go along with an email-filter.
    However, this:
    /usr/bin/mail -s "Re: $1" "$2" < $EMAILMESSAGE
    Seems to give the OK-status (in an if-structure, the 'then'-statement is shown), but the mail never arrives, although it is a local mail-address. I have checked the vars (I print them in the then-statement), and they are all good.
    On the other hand, executing
    /usr/bin/mail -s test [email protected] text
    will only show me a blinking cursor. So it might be related to the mail-bin?
    Zl.

    This post gave me the idea of the following script, which seems to work properly with version 7.1 (1827) of Mail under OS X 10.9.1. The script uses GUI Scripting.
    tell application "Mail"
        activate
        tell message viewer 1
            if (preview pane is visible) then
                tell application "System Events" to tell process "Mail"
                    tell menu bar item "Mail" of menu bar 1 to ¬
                        click menu item "Preferences…" of menu 1
                    tell window 1
                        click button "Viewing" of toolbar 1
                        click checkbox "Use classic layout" of group 1 of group 1
                        click checkbox "Use classic layout" of group 1 of group 1
                        click button 1 -- close window
                    end tell
                end tell
            else
                if mailbox list visible then
                    set mailbox list visible to false
                    delay 0.5
                    set mailbox list visible to true
                else
                    set mailbox list visible to true
                    delay 0.5
                    set mailbox list visible to false
                end if
            end if
        end tell
    end tell

  • Addressbook actions do not work since Mavericks Update

    I had some nice addressbook actions in my Contacts-App.
    by clickin on email or telephone-action I was able to perform some specific actions like doing a phone call via iphone, ...
    since the 10.9 update these actions don't work anymore. By perfoming these actions nothing happens and I get no error message nor any output in apple script
    the scripts are stored in ~Library/Address Book Plug-Ins
    the scripts look similar to this (assumin the app TK-Suite-Client is installed):
    on cleanString(str, chars)
              set tid to AppleScript's text item delimiters
              repeat with c in chars
                        set AppleScript's text item delimiters to {c}
                        set chunks to text items of str
                        set AppleScript's text item delimiters to ""
                        set str to chunks as Unicode text
              end repeat
              set AppleScript's text item delimiters to tid
              return str
    end cleanString
    on ApplicationIsRunning(appName)
              tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
              return appNameIsRunning
    end ApplicationIsRunning
    using terms from application "Contacts"
              on action property
                        return "phone"
              end action property
              on action title for aPerson with phoneNumber
                        return ("anrufen : " & (value of phoneNumber as string))
              end action title
              on should enable action for aPerson with phoneNumber
                        return true
              end should enable action
              on perform action for aPerson with phoneNumber
      (* remove ignored phone characters *)
                        set phoneNumber to my cleanString(value of phoneNumber as string, {" ", "-", ")", "(", "."})
      set volume 0
                        using terms from application "TK-Suite-Client"
                                  activate application "TK-Suite-Client"
                                  delay 0.5
                                  tell application "TK-Suite-Client" to dial phoneNumber
                        end using terms from
                        return true
              end perform action
    end using terms from

    very easy... in Mavericks AddressBook.app was changed. with that came some changes.
    you need to take ALL scripts from  ~/Library/Address\ Book\ Plug-Ins
    and copy them to NEW location: ~/Library/Application\ Scripts/com.apple.AddressBook
    restart Address book and your scripts should work.
    good luck.
    Leon

  • Router Port Forwarding not working since Mavericks

    I have an iMac sat behind a BT Home Hub 3 (an ADSL router, if you're not aware), with several ports (POP3, SSH, HTTP, etc) from the outside world forwarded via the hub to my Mac. Since installing Mavericks (from Snow Leopard), NONE of these ports are now open.
    They're open on the Mac, and another machine on my home network can use them locally, but from outside the network, they're hidden. Shields Up shows them as Stealth.
    Things I've tried:
    Rebooting everything.
    Setting the Home Hub up again, forwarding all the ports again.
    Turning all the sharing off in Mavericks and then back on.
    Trying the same services on different ports.
    Trying different services.
    Turning off the Mac firewall.
    Turning off the router firewall.
    Trying the Mac on another IP address and reforwarding everything to the new one.
    Putting the Mac in the DMZ.
    I can forward ports to other devices on my network (e.g. my NAS) and they work fine, so port forwarding isn't completely broken on the router
    Here's the thing though...
    On a completely separate network, on a separate Mac (a 2012 MacBook Pro) that went from Mountain Lion to Mavericks, also behind a BT Home Hub 3, EXACTLY the same thing is happening. No ports can be forwarded to the MacBook Pro, but all the ports are open to the local network.
    Any ideas? I'm pretty sure this must be a bug in Mavericks as I can't see anything else it can be.

    It's not just single port forwarding that has bugs, the entire router has bugs and simply does not work as advertised. I have found the following bugs/aspects of this router that just does not work correctly: 1. If you have to open ports, and who doesn’t, this router will eventually stop accepting packets from WAN>LAN. You will still have Internet access but no open ports. A reboot will fix this problem. Oh, by the way, this router has no scheduled reboot option! <--That would be a workaround but a welcome one for this router. 2. Firewall Access rules do not work!! Yep, a Cisco router and basic functionality simply does not work. I called Cisco and even though the tech saw the router not working denied it was a bug! Said we have to do port mirroring, setup a workstation with WireShark and capture packets so we can debug the issues.  That would take several hours. I told him I would have appreciated if Cisco would have debugged the issues with their router BEFORE they shipped the units. Stay away from Cisco Small Business Routers. I wish I had. And if there are any Cisco die-hards out there willing to prove me wrong, just reply to this and please, prove me wrong that the RV series and specifically the RV215W is not JUNK.

  • Mail app not working since reinstall

    Hi,
    My mail application has stopped working and reports that the version is not compatible with the installed version of OSX. If I compare this to another mac, the problematic mac is one version behind the operational mac. This is since I lost the application and was told to reinstall it by Apple from the install disk.
    Problem mac
    OSX: 10.5.8
    Mail: 3.5
    Working mac
    OSX: 10.5.8
    Mail: 3.6
    Software Update reports that there are no updates available and I'm unable to find the latest mail app anywhere on the Apple site.
    Apple support tried to get me to download the 10.6.2 download, but I don't believe that this is right for my current system. Especially as Software Update reports no update available.
    Any ideas on where I can download the correct / latest version of the Mail application and how I can ensure that when it's installed, my previous mail settings are restored?
    Thanks in advance
    Peter
    imac   Mac OS X (10.5)    

    You can try downloading and running the 10.5.8 combo updater:
    http://support.apple.com/downloads/MacOS_X_10_5_8_ComboUpdate

  • HT6030 mail search not working on mavericks

    I have just updated to maverick on my mac book pro (2010 model) and the search option in my mail account is not working.
    I use this function constantly so this probelm is extremly frustrating!! HELP!

    Don't work!!!!
    https://discussions.apple.com/thread/5674231?start=15&tstart=0
    https://discussions.apple.com/thread/5673556?start=45&tstart=0
    https://discussions.apple.com/message/24152902#24152902

  • E-mail account not working since Z10 software update 10.2.0.424

    I’m having a technical issue with my company e-mail account on my blackberry device. The phone had recently updated [5-days ago] its operating system to version 10.2.0.424
    Ever since the software update, I have not been able to send or receive any e-mails on my work email account. But my gmail account is working normally on the phone.
    I deleted the account completely from the phone and tried to reconfigure it, but the message is always the same: “The server for account XXX – [email protected] [mail.xxx.com, port: 143] can't be reached.  The settings might be incorrect or the server could be temporarily offline.  Check your settings and try again."
    Our company's web-mail is provided by Bluehost and i have checked and rechecked that the configurations match the specs instructed by Bluehost. Moreover, these are the exact same settings I was using on the phone before the software update and it was working fine.
    Please advise.
    Thanks,
    Joe

    Hi,
    I am having the very same issue, and also done everything you have said.

  • My E-mail is not working since I got Mountain Loin

    I update to Mountain Loin and my e-mail does not load any more. I have to go on line to look at my e-mail

    This forum is for discussing an application called Front Row.
    If you would please state what Mac you have and what version of OS X I will ask the hosts to move your post to the correct forum.

  • Mail simply not working since installing maverick

    I have tried everything. All the recommended fixes. I am not using a Gmail account but an old eircom account. I can see nothing, the app opens but then that's it.
    If I could go back and uninstall this update I would.
    I'm resorted to mail on my Iphone and can't access the stored mails on my laptop.
    I need a magic wand here pronto...please

    In fact, if you push the Option Key in the Finder and enter the upper menu "Go to" (i think it speel like this in english, my system is localized in germen, sorry), you will see an option "Library" appearing in the submenu. Just play a bit with it (push and release the Option Key while in the submenu) and you notice that something changes. It's the option "Library" appearing and disappearing. It's another way to get to the User Library, alternive to teh way i described.
    I think your Mail Library is screwed. Here's on thing you could try, but depending on how many messages you have, it could be a big amount of work because you will have to reconfigure your accounts en import you old messages:
    Quit Mail
    Go to the User Library (CMD+Shift+G and paste following path: ~/Library/ or use the approach given by hands4)
    Move, dont copy, the "Mail" folder to another place (like your desktop)
    Open Mail. It will act as if no account is configured.
    Configure all your accounts
    Check if everything is working fine (in- and outgoing messages)
    If everything is ok, go to "File"->"Import Mailboxes" (i think it spells like this in english)
    In the appearing window, choose "Apple Mail" and click next
    Now choose the Mail folder you relocated earlier
    Let Mail import all the Messages
    In Mail there will be an new Mailfolder "Import" or "Imported Mailboxes". If you browse it, you should find all your old messages.
    Just reorder them and put them into the right place.
    Let me know if that sorted it out for you...
    Keep in mind: if it dont works, just replace the new Mail folder in the User Library with the one you relocated. It will revert Mail to the initial state. I suggest you then "copy" the relocated folder to the User Library, just in case, to have a backup.

  • HT1338 outgoing e-mail server not working since upgrade to mountain lion

    unable to send mail on one of my e-mail accounts since upgrading to mountain lion

    I had this problem as well after upgrading to 10.8.
    For all e-mail accounts SMTP servers seemed to be unavailable to Mail, regardless of setting TSL/SSL on or off. It turned out, even Thunderbird was unable to send any mail.
    After trying every hint on this forum twice – and to no avail; I found the culprit to my problem. Upgrading my iMac to Mountain Lion had changed the name, that my machine was using in my home network. The new machine name had "(2)" added to the old name. The brackets seem to have disturbed the SMTP servers I use. After changing the name back to anything w/o special characters I was able to send mail again.
    Very strange, since no error message lead to this direction, and only the SMTP was affected, everything else on the internet worked like a charm.
    So if you run into this problem, and no other solution works for you, make sure your LAN-name is not including any special characters, just letters, numbers and "-".
    Mind you: the name I am relating to is not necessarily the one you give your Mac in System Preferences > Sharing. It is the name your home router derives from that name. I am using a Fritzbox as a router and DSL modem; and had to access its web interface to check the actual name that my iMac was using to communicate to the web. That's also where I had to change the name back again.
    Don't know why ML caused the name to change in the first place, maybe the whole thing was unrelated and purely incidental to upgrading to 10.8. Using another router your mileage may also vary. You may still give it a try.

  • App store login - not working since Mavericks update

    All,
    Since I updated to Mavericks, I find I am unable to log into the App Store. I get the login pane OK, enter my credentials, then get a spinner that waits... and waits... And never works.
    The Apple ID I am using is good - iTunes likes it fine, and I'm using it to post this. Just the App Store, and only since the Mavericks update; indeed I used the Apple ID to install Mavericks...
    Google tells me I am not the only one seeing this - but the suggested fixes do not seem to work for me. Do we know if a "proper" actual official fix wil be forthcoming?
    Indeed, do Apple acknowledge that some folks are having a problem with this?
    Anyway, in case anyone else stumbles onto this one:
    - There are many threads suggesting that deleting the network plist helps (though did not for me)
    - For some, deleting /Users/ian/Library/Preferences/com.apple.appstore.plist helps (though not for me...)
    - and so on.
    What "works" for me, albeit as a workaround, is to create a new user account on the machine, and use that to access the App Store - with the same ID etc., but this time it works. At least one time, so far!
    I'd much rather my regular account Just Worked.
    Any of the accounts (myself, wife, etc.) on the machine before the Mavericks upgrade however; they can not log into the App Store any more.
    No Idea why not; presumably "something" changed in the updates and that broke the login in some way; though why iTunes et al appear unaffected is less clear!

    Just an update to note that, after leaving it alone for a while, I tried the app store again today and it now works from my regular account once again.
    Which is nice...
    No idea what changed in the meantime, but at least it appears to be working.

  • Mail does not work in Maverick

    After upgrading to Maverick, it was all good until I tried to open Mail and recieved teh following message:-
    The last time you opened Mail, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?
    If I try to reopen as instructed I get into a loop that only ends in frustration.
    Has anyone else experienced this?
    Has anyone found a solution, or is it a known bug and will be fixed in the near future.
    My son did not have this problem when he upgraded and the only difference we can see is that he uses a single screen and I use dual screens.
    Thanks
    Dave R

    Found a solution to my problem by reading some other posts, the solution was to key
    "defaults delete com.apple.mail"
    into "Terminal" and enter.
    and I have Mail working.
    Now a happy Mac user again!
    Regards,
    Dave R.

  • Mail program not working since upgrading to Leopard 10.5.6

    We have loaded the new Leopard system now twice, and both times the Mail program fails to launch from the taskbar, but stays open in the background. The program will not close, and fails to open to even try to check email. It seems other programs are working just fine, but nothing right with Mail. Anyone know if there is a fix to this?
    Thanks,
    lldowney

    Hello, and welcome to the Discussions.
    While the other poster's cited article references certain issues with 10.5.6, they are when updating a system that was already on Leopard. If, as it appears, you were Upgrading an earlier version of OSX, such as 10.4.11, then the relevant article is:
    http://support.apple.com/kb/TS2537
    Where an even earlier OSX than Tiger once generated the Mail folder, two other MessageSorting files will need to be removed, also.
    Ernie

  • CD Drive not working since last set of updates

    Anyone else have the problem? It affected my CD drive on my iMac G5...the drive scans and scans blank or recorded CDs then after a while spits them out.
    I guess it could be something wrong or dirty with the drive, but was suspicious since ih just happened after that last set of quicktime and iTunes updates.....

    655321 wrote:
    Can you please explain? you mean mounting the cd-rom drive using fstab???
    thanks for the help
    ewaller@odin:~ 1015 %
    ewaller@odin:~ 1015 %ls /mnt/cdrom
    ewaller@odin:~ 1016 %ls /dev/sr0
    /dev/sr0
    ewaller@odin:~ 1017 %ls /dev/sr0/
    ls: cannot access /dev/sr0/: Not a directory
    ewaller@odin:~[2] 1018 %sudo mount /dev/sr0 /mnt/cdrom
    mount: block device /dev/sr0 is write-protected, mounting read-only
    ewaller@odin:~ 1019 %ls /mnt/cdrom
    AUDIO_TS VIDEO_TS
    ewaller@odin:~ 1020 %
    I would not use fstab, because the removable media would require an entry per disk.  I show the classic way, but nowadays. udev can handle this for you.

Maybe you are looking for

  • Mailscript doesn't work in Tiger

    Hallo allemaal. (That's hello everybody, in Dutch...) At my work, I used a combination 'rule/applescript' to send an autoreply e-mail to clients from a certain group from my addressbook. The applescript worked like a charm with Tiger but since I've b

  • App store download error *****...:@

    I keep downloading mac os x lion upgrade in app store and when the download reaches above 2GB it says "errorr has occured". I've got a low interet connection and so it takes 12 hours for me to download 2GB and each time I get this error and I've down

  • How to deply icons on forms services 10g (10.1.2)

    Hi. I've been trying to do a couple of "simple" things on forms services and have not yet succeded: - Deploy Icons on the web. - Specify an alternate path for fmx,pll and mmx files. The installation is Application Server Forms and Reports Sevices. Ac

  • Canon 6D Raw to CS2 Camera Raw

    Is there an update for Photoshop CS2 that will allow me to download Raw files from my Canon 6D directly into PS Camera Raw? Thanks!

  • No Aperture photos show up in Desktop & Screen Saver System Prefernences

    For some time I have experienced an issue wherein no photos from my Aperature library appear in my Desktop & Screen Saver System Preferences on the Desktop tab. "Aperture" appears in the left-hand column list of photo sources, but clicking it produce