Applescript to fix Messages application - close transcript window

The new Messages application (which replaced iChat in Mountain Lion) has an annoying habit of opening a transcript window whenever the program is opened or the icon is clicked-on in the dock.
[When iChat was started, it simply opened the Buddy list.]
I'm assuming an Applescript could be used to automatically close the unnecessary Messages' transcript window (Command-zero does this).
The Applescript below throws the syntax error "Expected end of line but found identifier."
tell application "Messages"
          keystroke "0" using {command down}
end tell
Assistance with the Applescript would be appreciated.
Thanks!
P.S. In the preferences for Messages, there is an option to run an Applescript upon login - and that might be another option. That might provide a more elegant way to initiate the process of closing the window.

tell application "System Events" to tell process "Messages"
          tell menu "Window"
            click menu item "Buddies"
          end tell
end tell
I'm not familiar with Messages.app. However, under OS X 10.8.2, there doesn't seem to be any menu item named "Buddies" in the "Window" menu bar item of the Messages application.
tell application "Messages" to activate
tell application "System Events" to tell process "Messages"
    name of menu items of menu 1 of menu bar item "Window" of menu bar 1
end tell
--> {"Minimize", "Minimize All", "Zoom", "Zoom All", missing value, "Select Next Conversation", "Select Previous Conversation", missing value, "Messages", missing value, "File Transfers", "Contacts", missing value, "Bring All to Front", "Arrange in Front"}
Message was edited by: Pierre L.

Similar Messages

  • [svn:fx-trunk] 5313: Application, WindowedApplication, and Window background color changed to white.

    Revision: 5313
    Author: [email protected]
    Date: 2009-03-13 19:10:24 -0700 (Fri, 13 Mar 2009)
    Log Message:
    Application, WindowedApplication, and Window background color changed to white.
    QE Notes: None
    Doc Notes: None
    Bugs: sdk-16721
    Reviewer: Ryan
    tests: checkintests, cyclone build tested
    Ticket Links:
    http://bugs.adobe.com/jira/browse/sdk-16721
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/airframework/defaults.css
    flex/sdk/trunk/frameworks/projects/framework/defaults.css
    flex/sdk/trunk/frameworks/tests/checkinapp/checkinapp.css

    Hi,
    When system is in a sleep mode or hibernate mode, it will save the data ans settings in memory or hard disk, so I suggest you run a memory check and a harddisk check and see if it can detect any errors.
    Memory check (instruction is similiar to windows 8\8.1, type "memory" in the search charm bar)
    http://windows.microsoft.com/en-in/windows7/diagnosing-memory-problems-on-your-computer
    Hard disk check
    http://technet.microsoft.com/en-us/magazine/ee872425.aspx
    Meanwhile, please check event viewer to find more information, useful path: event viewer\Windows logs or event viewer\Applications and Services Logs\Kernel-power
    Yolanda Zhu
    TechNet Community Support

  • How can i close a windows application that works under vmware in am applescript

    Hi there,
    On my roof I have a set of solar panels. The daily score of these panels are only visible by using a Windows application.
    So I use vmware on my Imac to start Windows 7 on Bootcamp, this all by using a applescript in the automator app.
    In the script vmware is starting up and then i made a task in Windows that starts up the specific application after the Windows startup. After a delay of 180 seconds the script fills in a password an gives a return. That works well.
    Unfortunately it runs perfect the first tim a and then the second time, the specific application does not start. Only Windows starts up, the rest of the script does not work the right way, exempt closing the vmware, that goes as expected. So I think that the closing command that I give in the script:
    tell application "VMware Fusion"
    quit
    end tell
    causes a problem. The closing of the application within Windows is perhaps not done on a proper way.
    Therefore I am looking for a way to close that application first and then closing Windows 7 and then VMware.
    Thanks in advance for your help.

    As a completely different approach, I'd have a look at the raw network traffic with tcpdump or equivalent, and see if I could figure out how to access this data — if you're lucky, it's a fairly standard interface of some sort; HTML queries, possibly. 
    Start with a port scan of the controller for the panels (using Network Utility.app in OS X, or another tool), and see what IP ports are open and active.
    Is there a vendor and model associated with the controller for the panels?  That might turn up some software other than this Windows application/

  • When I open Itune, I have this message from windows: l'exception instruction privilégiée (0xc0000096) s'est produite dans l'application à l'emplacement 0x02fb21d4. After I close the message, Itune close.

    When I open Itune, I have this message from windows: l'exception instruction privilégiée (0xc0000096) s'est produite dans l'application à l'emplacement 0x02fb21d4. After I close the message, Itune close.

    I think we might try the following document with that one, madubc:
    iTunes 10.2 for Windows: Quits unexpectedly with "Unknown software exception (0xc0000409)" alert
    (The theory with that procedure with installing Safari 5.0.5 is that it updates your Apple Application Support. Apple Application Support contains single copies of program files used by multiple different Apple programs (such as iTunes, QuickTime and Safari) so the effect of updating it is that iTunes and QuickTime program files will also be updated.)

  • I am trying to download firefox5 and the download failed, and getting message To close the application -Rundell32.exe and Ox0000142

    Trying to download firefox 5 and the download failed i am getting message to close the application and cod number Ox0000142, is have any way to fix the problem with out removing window 7

    Open the Java pane in System Preferences. A separate application will launch. In the Security tab, check the box marked
    Enable Java content in the browser
    If necessary, adjust the Security Level slider, but if you must reduce the level, do so only temporarily and only if you are absolutely sure of what you're doing. Don't do this to play a game or because a stranger on the Internet asked you to. Java can be dangerous.
    If your browser is Safari, you may also need to make changes to the plugin settings in the Security tab of its preferences window.

  • WHEN I OPEN ADOBE ACROBAT THE APPLICATION CLOSES BECAUSE IT IS NOT REGISTER! HOW DO I FIX THE PROBLEM?

    WHEN I OPEN ADOBE ACROBAT THE APPLICATION CLOSES BECAUSE IT IS NOT REGISTER! HOW DO I FIX THE PROBLEM?

    What is your operating system?  What is your Acrobat version?
    What is the exact message you are getting?

  • [svn] 4628: Fix FB-15947: Terminating debug session closes Safari window including tabs not launched by debugger

    Revision: 4628
    Author: [email protected]
    Date: 2009-01-22 15:45:06 -0800 (Thu, 22 Jan 2009)
    Log Message:
    Fix FB-15947: Terminating debug session closes Safari window including tabs not launched by debugger
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-15947
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/appleScriptCloseSa fariWindow.txt

    Revision: 4628
    Author: [email protected]
    Date: 2009-01-22 15:45:06 -0800 (Thu, 22 Jan 2009)
    Log Message:
    Fix FB-15947: Terminating debug session closes Safari window including tabs not launched by debugger
    Ticket Links:
    http://bugs.adobe.com/jira/browse/FB-15947
    Modified Paths:
    flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/appleScriptCloseSa fariWindow.txt

  • Windows Vista, Itunes 10.7, ipod Classic, scan and fix message - why?

    I am trying to connect my wife's Ipod Classic to our Windows Vista computer.  I get a Scan and Fix Message for the Ipod from Windows.  I don't let it scan and click continue.  Itunes is frozen and won't recognize the ipod.  This has happened since upgrading to Itunes 10.7.  Also Itunes is choppy in playing all video content since upgrading to Itunes 10.7.
    I have checked system requirements and driver upgrades.  So far I have no fix.  One site recommended turning off WiFi sync for all devices in Itunes.  But of course the device must be connected, and mine won't connect.  All my itunes video is languishing.  :-(

    Wi-Fi sync won't apply since you have an iPod Classic and it doesn't contain any Wi-Fi hardware.
    To get rid of the Scan and Fix error, see this page: http://www.yourlocaltech.com/resolve-vista-scan-and-fix-error-when-plugging-in-i pod-or-other-devices/
    We'll start there for now.
    B-rock

  • Once I close all windows and try to open another I get a message saying"Firefox is still running, you must close all browers before opening a new window. Why is this happening? I have the 3.5.10 Version

    I close all Firefox windows. When I try to open another window later I get a message telling me that Firefox is still running and that I need to close all windows or restart my computer. I have this about 3 times a day this past week but prior to that it was maybe every one or 2 weeks. I had the 3.5.10 Version of Firefox, but have just updated to see if this stops this from happening. But what do I do if it doesn't stop it?

    There are a few possible causes for that error, for details see [[Firefox is already running but is not responding]]

  • Regarding the alert Message when i try to close the window

    Hi All,
    I am trying to give the alert message when the user tries to close the window.
    For this i have coded a jsp in which i have written
    <html>
    <head>Test in the Page Ajay</head>
    <body onUnload="alert('Test UnLoad')">
    </body>
    </html>
    and in the portalapp.xml i have given as jspnative.
    then if i try to unload the page the alert message is not executing.
    Plz help me out in this.
    Thanks
    Ajay

    Delete the iPod photo cache, as described here:
    http://support.apple.com/kb/ts1314

  • Get rid of message: "If you close the window, your changes will be lost..."

    Whenever I enter text, then close the window, I get the message, "if you close the window, your changes will be lost. Do you want to close the window anyway?"
    Yes, I do want to close the window, and I want to get rid of this message from popping up. Can't find it anywhere in Safari. Please help me out. Please, how do you configure Safari so this message will not pop up?

    HI David,
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset. Relaunch Safari. If you still see that dialog...
    Go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
    Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash.
    Carolyn

  • HT3529 OS X Mountain Lion Messages - after receiving picture in texting, when you click on the picture of enlarge and then close that window to go back to texting, the picture disappears.

    In OS X Mountain Lion Messages, after receiving a picture in a text, when I click to enlarge the photo for viewing and then close that window and go back to texting, the photo is gone from the text.

    In OS X Mountain Lion Messages, after receiving a picture in a text, when I click to enlarge the photo for viewing and then close that window and go back to texting, the photo is gone from the text.

  • Close browser window of mozilla Firefox with popup message in ADF

    below code is working in "Internet Explorer " browser but I want to excute this on "mozilla Firefox" browser with popup message when I click on browser cross Cancel button in ADF. Please help me how can I achieve this ?
    <af:resource type="javascript">
    function closeWindow(event){
    window.opener = self;
    window.close();
    </af:resource>

    Hi,
    thats not possible...
    you can't close the parent browser window(except IE).. you can only close the window that is opened by you... with window.open('');

  • Using windows 8 and trying to install photoshop cs6 but keep getting message to close cs5 bridge

    using windows 8 and trying to install cs6 but keep getting message to close adobe bridge cs5 which I do not have open. Is this a bug in windows 8???

    bridge.exe is probably running in the background. Trying closing it via the Task Manager.
    See http://helpx.adobe.com/creative-suite/kb/error-installation-cannot-continue-bridge.html

  • How to close running applications listed in Application tab of Windows Task Manager

    Hii,
    I am using Labview7.0. I want to close all running applications except my labview based exe in Applications tab of Windows Task Manager. So pl help me how can I do it through labview7.0 Programmatically.
    Vijtin....

    You can use the utilities attached, when you unzip it you can open the lvwutil32 folder and then you will find Winevent.llb inside it is the Quit Application.vi  is very easy. There is also a Get Task List.vi which help you too.
    I hope this info will help you, let me know if you need more help
    AJJR
    Attachments:
    lvwutil32.zip ‏685 KB

Maybe you are looking for