Please help with a simple UI scripting of CoverFlow!

Hi, this should be so simple! all I want to do is use applescript to sort the iTunes library by artist (for instance) in CoverFlow mode. I could not see any way to do this using menus or hotkeys (I only found this in Grid mode.. God only know why..) so the only way is to click the "artist" column header.
The UI inspector tells me that this is
<AXApplication: “iTunes”>
<AXWindow: “iTunes”>
<AXSplitGroup>
<AXSplitGroup>
<AXScrollArea>
<AXOutline>
<AXGroup>
<AXButton: “Artist”>
Attributes:
AXRole: “AXButton”
AXRoleDescription: “sort button”
AXSubrole: “AXSortButton”
AXDescription: “(null)”
AXHelp: “(null)”
AXEnabled: “1”
AXFocused: “1”
AXParent: “<AXGroup>”
AXWindow: “<AXWindow: “iTunes”>”
AXTopLevelUIElement: “<AXWindow: “iTunes”>”
AXPosition: “x=456 y=747”
AXSize: “w=125 h=16”
AXTitle: “Artist”
AXSortDirection: “AXAscendingSortDirection”
Actions:
AXPress - press
and I thought that this applescript was the way to go:
tell application "System Events"
click button "Artists" of the first group of the first outline of the first scroll area of the first splitter group of the first splitter group of window "iTunes" of application "iTunes"
end tell
unfortunately it compiles but when I launch it is says that the button doesn't understand the "click" message:
iTunes got an error: «class butT» "Artists" of «class sgrp» 1 of «class outl» 1 of «class scra» 1 of «class splg» 1 of «class splg» 1 of window "iTunes" doesn’t understand the click message.
What am I doing wrong? (and yes, UI access is enabled)
please let me know asap
thanks in advance!
cheers

found, this does the trick
tell application "System Events"
tell application process "iTunes"
tell window "iTunes"
tell splitter group 1
tell scroll area 2
tell outline 1
tell group 1
tell button "Artist"
click
end tell
end tell
end tell
end tell
end tell
end tell
end tell
end tell
hope this is useful for somebody else.

Similar Messages

  • Please help with the simple servlet

    hi all......
    i am trying to write a servlet that accepts parameters from html and validates it against database and displays if the user is valid or not....
    but my code always displays invalid user..........i don't know where i am going wrong.........kindly help
    html code:
    <html>
    <body>
    <form action=/LoginServlet>
    <p><h1>
    username:<input type=text name=nm>
    <p>password:<input type=text name=pwd>
    <p>
    <input type=submit value=Login>
    </form>
    </body>
    </html>
    servlet code:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class name1 extends HttpServlet {
         public void doGet(HttpServletRequest req,HttpServletResponse
    res) throws ServletException,IOException {
         try {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection con =
    DriverManager.getConnection("jdbc:odbc:nmpwd");
         Statement stmt = con.createStatement();
         res.setContentType("text/html");
         PrintWriter out = res.getWriter();
         ResultSet rs;
         String r = req.getParameter("nm");
         String r1 = req.getParameter("pwd");
         String query="select * from namep";
         rs = stmt.executeQuery(query);
         String s="",s1="";
         while(rs.next())
              s = rs.getString(1);
              s1 = rs.getString(2);
         if(r.equals(s)&&r1.equals(s1))
              out.println("VALID USER");
         else
              out.println("INVALID USER");
         con.close();
         }catch(Exception e) { }
    }

    The JSP code is correct. Please change the servlet code. I have done the changes. It's Working correctly now.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet
    public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
              System.out.println("Entered Servlet");
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection con = DriverManager.getConnection("jdbc:oracle:thin:@bslblrora9i:1521:blrora1","javauser","javauser");
                   res.setContentType("text/html");
                   PrintWriter out = res.getWriter();
                   ResultSet rs=null;
                   String r = req.getParameter("nm");
                   String r1 = req.getParameter("pwd");
                   PreparedStatement stmt=con.prepareStatement("SELECT * FROM NAMEP");
                   rs=stmt.executeQuery();
                   int flag=0;
                   String s="";
                   String s1="";
                   while (rs.next())
                        s=rs.getString(1);
                        s1=rs.getString(2);
                        if (r.equals(s))
                             if (r1.equals(s1))
                                  flag=1;
                   if (flag==1)
                        out.println("valid User");
                   else
                        out.println("Invalid User");
                   con.commit();
                   con.close();
              catch(Exception e)
                   System.out.println("Error "+e);
    }

  • Please help with this simple scenario

    I have two tables in two different instances, these two are linked by database link.
    table A, base table
    table B, read_only view connected through link.
    I need them to be semi parallel in this way:
    user queries emp_id to query tableA, if emp_id is available in table A, then just display id and emp_name, if nothing found, check if available in table B, if so then insert it on table A. If not available in table B, then display message.
    I have tried, cursors, selects into, etc etc and no luck!, please if you time allows, write a sample code if possible.
    thanks a bunch!!
    joey

    Hi,
    fallow this,
    1) Create segment (WE31) Of course it will have naming convention for different company. Here are some tips: If you copy from existing or std segment eg: Z1E1EDP01_01. If not you can just put Z1u2026.but this is only the example.
    2) Create IDOC Types (WE30)
    3) Create message type (WE81)
    4) Link message type with basic type (WE82)
    5) Create FM In the FM all the attributes should be the same for Inbound or Outbound. Basically you can get an example from the std FM eg: Inbound - IDOC_INPUT_DELVRY Outbound - IDOC_OUTPUT_SHPMNT.
    6) Create Process Code (Inbound - WE41/ Outbound - WE42) IMPORTANT: Before you key in the FM, you are required to add the FM in this table V_TBD51.
    7) Link FM with Basic Type For testing go to WE19.
    Regard's
    Shaik.

  • Please help with 2 simple questions, im fairly new to mac.

    I have the macintosh hd icon on my desktop and can not get it off of there, it wasnt there before. I tried dragging it somewhere and everything but it wont go away.
    secondly ive had untitled dvd icon in finder sidebar under places for a while and cant get rid of that either, there is a black and white circle beside it,i dont have any disc in the drive and i cant even open the folder or right click it?

    And then there are these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Mac OS X keyboard shortcuts,
    MacTips, and
    Switching to the Mac: The Missing Manual, Snow Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist,
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • Please help with simple Drag N Drop

    I’m desperate and need some help with this simple drag
    and drop. Here is the scenario…this animation is for a
    kindergarten course. I have 6 different colored teddy bears on the
    floor and the bears are to be placed on the middle shelf in the
    room, in no particular order. I have the code in place to drag the
    bears, and they return to their original location if dropped in the
    wrong area. Everything works, except I can’t make the bears
    stick to the target area. The target area has to be the same for
    all 6 bears. Can someone help me out with this?
    I have a feeling that the problem has something to do with my
    instance names, but I have tried everything I can think of and
    cannot get it to work. Is there some way I can post, send, or
    attach my .fla file for someone to look at? I’m desperate.
    PLEASE HELP!

    var startX3:Number;
    var startY3:Number;
    var counter3:Number=0;
    vf_A.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_A.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_E.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_E.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_I.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_I.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_O.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_O.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    vf_U.addEventListener(MouseEvent.MOUSE_DOWN, pickUp3);
    vf_U.addEventListener(MouseEvent.MOUSE_UP, dropIt3);
    function pickUp3(event:MouseEvent):void {
    event.target.startDrag(true);
    reply2_txt.text="";
    event.target.parent.addChild(event.target);
    startX2=event.target.x;
    startY2=event.target.y;
    function dropIt3(event:MouseEvent):void {
    event.target.stopDrag();
    var myTargetName:String="target"+event.target.name;
    var myTarget:DisplayObject=getChildByName(myTargetName);
    if (event.target.dropTarget != null &&
    event.target.dropTarget.name == "instance112") {
    reply2_txt.text="Good Job!";
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN,
    pickUp3);
    event.target.removeEventListener(MouseEvent.MOUSE_UP,
    dropIt3);
    event.target.buttonMode=false;
    event.target.x=myTarget.x;
    event.target.y=myTarget.y;
    var mySound:Sound = new vowels_NAR_goodjob();
    mySound.play();
    counter3++;
    } else {
    reply2_txt.text="Try Again!";
    event.target.x=startX2;
    event.target.y=startY2;
    var mySound2:Sound = new vowel_NAR_nopetryagain();
    mySound2.play();
    if (counter2==5) {
    reply2_txt.text="Great Job! You did it!";
    gotoAndPlay(3300);
    vf_A.buttonMode=true;
    vf_E.buttonMode=true;
    vf_I.buttonMode=true;
    vf_O.buttonMode=true;
    vf_U.buttonMode=true;

  • HT5824 I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. Please help with turning my iMessage completely off..

    I switched over from an iPhone to a Samsung Galaxy S3 & I haven't been able to receive any text messages from iPhones. I have no problem sending the text messages but I'm not receivng any from iPhones at all. It has been about a week now that I'm having this problem. I've already tried fixing it myself and I also went into the sprint store, they tried everything as well. My last option was to contact Apple directly. Please help with turning my iMessage completely off so that I can receive my texts.

    If you registered your iPhone with Apple using a support profile, try going to https://supportprofile.apple.com/MySupportProfile.do and unregistering it.  Also, try changing the password associated with the Apple ID that you were using for iMessage.

  • How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore. Please help with proper steps, if any.

    How can I sync my iPhone on a different computer without erasing my applications? My iPhone was earlier synced with a PC which I don't use anymore.
    On the new computer, I am getting a message that my all purchases would be deleted if I sync it with new iTunes library.
    Please help with proper steps, if any.

    Also see... these 2 Links...
    Recovering your iTunes library from your iPod or iOS device
    https://discussions.apple.com/docs/DOC-3991
    Syncing to a New Computer...
    https://discussions.apple.com/docs/DOC-3141

  • Please help with "You can't open the application NovamediaDiskSupressor because PowerPC applications are no longer supported." I have seen other responses on this but am not a techie and would not know how to start with that solution.

    Please help with the message I am receving on startup ""You can't open the application NovamediaDiskSupressor because PowerPC applications are no longer supported."
    I have read some of the replies in the Apple Support Communities, but as I am no techie, I would have no idea how I would implement that solution.
    Please help with what I need to type, how, where, etc.
    Many thanks
    AppleSueIn HunterCreek

    I am afraid there is no solution.
    PowerPC refers to the processing chip used by Apple before they transferred to Intel chips. They are very different, and applications written only for PPC Macs cannot work on a Mac running Lion.
    You could contact the developers to see if they have an updated version in the pipeline.

  • Hi, please help with the installation of Lightroom 4, I bought a new Mac (Apple) and I want to install a software that I have on the album cd. My new computer does not have the drives. Can I download software from Adobe? Is my license number just to be ab

    Hi, please help with the installation of Lightroom 4, I bought a new Mac (Apple) and I want to install a software that I have on the album cd. My new computer does not have the drives. Can I download software from Adobe? Is my license number just to be able to download the srtony adobe.

    Adobe - Lightroom : For Macintosh
    Hal

  • [ETL]Could you please help with a problem accessing UML stereotype attributes ?

    Hi all,
    Could you please help with a problem accessing UML stereotype attributes and their values ?
    Here is the description :
    -I created a UML model with Papyrus tool and I applied MARTE profile to this UML model.
    -Then, I applied <<PaStep>> stereotype to an AcceptEventAction ( which is one of the element that I created in this model ), and set the extOpDemand property of the stereotype to 2.7 with Papyrus.
    -Now In the ETL file, I can find the stereotype property of extOpDemand as follows :
    s.attribute.selectOne(a|a.name="extOpDemand") , where s is a variable of type Stereotype.
    -However I can't access the value 2.7 of the extOpDemand attribute of the <<PaStep>> Stereotype. How do I do that ?
    Please help
    Thank you

    Hi Dimitris,
    Thank you , a minimal example is provided now.
    Version of the Epsilon that I am using is : ( Epsilon Core 1.2.0.201408251031 org.eclipse.epsilon.core.feature.feature.group Eclipse.org)
    Instructions for reproducing the problem :
    1-Run the uml2etl.etl transformation with the supplied launch configuration.
    2-Open lqn.model.
    There are two folders inside MinimalExample folder, the one which is called MinimalExample has 4 files, model.uml , lqn.model, uml2lqn.etl and MinimalExampleTransformation.launch.
    The other folder which is LQN has four files. (.project),LQN.emf,LQN.ecore and untitled.model which is an example model conforming to the LQN metamodel to see how the model looks like.
    Thank you
    Mana

  • Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs

    Want a complete migration guide to upgrade 11.1.0.7 to 11.2.0.3 database using DBUA..We are implementing R12.1.3 version and then have to migrate the default 11gR1 database to 11.2.0.3 version. Please help with some step by step docs

    Upgrade to 11.2.0.3 -- Interoperability Notes Oracle EBS R12 with Oracle Database 11gR2 (11.2.0.3) (Doc ID 1585578.1)
    Upgrade to 11.2.0.4 (latest 11gR2 patchset certified with R12) -- Interoperability Notes EBS 12.0 and 12.1 with Database 11gR2 (Doc ID 1058763.1)
    Thanks,
    Hussein

  • Welcome. At the outset, I'm sorry for my English :) Please help with configuration Photoshop CS6 appearance. How to disable the background of the program so you can see the desktop. (same menus and tools) Chiałbym to be the same effect as CS5.

    Welcome.
    At the outset, I'm sorry for my English
    Please help with configuration Photoshop CS6 appearance.
    How to disable the background of the program so you can see the desktop. (same menus and tools)
    i wantto be the same effect as CS5.

    Please try turning off
    Window > Application Frame

  • HT201210 cont contact apple server error please help with ipad touch 4. im just fed up with apple please help me because why is it only apple with these kind of problems?

    cont contact apple server error please help with ipad touch 4. im just fed up with apple please help me because why is it only apple with these kind of problems?

    If you mean updae server
    Update Server
    Try:
    - Powering off and then back on your router.
    - iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    - Change the DNS to either Google's or Open DNS servers
    Public DNS — Google Developers
    OpenDNS IP Addresses
    - For one user uninstalling/reinstalling iTunes resolved the problem
    - Try on another computer/network
    - Wait if it is an Apple problem
    Otherwise what server are you talking about

  • Please help me to correct the script

    I try to write a script by my slef, but not work
    app.findGrepPreferencest = firstLineIndent:8, leftIndent:8;
    app.changeGrepPreferences = firstLineIndent:8, leftIndent:16;
    app.changeGrep();
    app.findGrepPreferences = app.changeGrepPreferences = null;
    Can someone please help me to correct the script, please.

    both two script are working
    but waht if I change the script into this format?
    function(){
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "8 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "16 mm";
    app.selection[0].changeGrep();
    app.findGrepPreferences.firstLineIndent  = "8 mm";
    app.findGrepPreferences.leftIndent  = "16 mm";
    app.changeGrepPreferences.firstLineIndent  = "8 mm";
    app.changeGrepPreferences.leftIndent  = "24 mm";
    app.selection[0].changeGrep();
    and then so on,
    Can it works?

  • HT3209 Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    You will need to contact the movie studio that produced the DVD and ask if they can issue you a new code valid for Canada. Apple cannot help you, and everyone here in these forums is just a fellow user.
    Regards.

Maybe you are looking for

  • Outlook 2010 not finding all users in the "To" line

    I have a user that has an issue with searching in the "To" line when sending an email. She has sent an email to this person before, and with most users, she can type first or last name and come up with the users. But there are a select few that she c

  • Sound comes only from internal speaker in earpods?

    Or the last month my apple earpods were working fine, now the sound is coming out only from the internal speaker ( the one on the side of the earphone ) What can I do to fix it ? Thank you in advance !

  • BPEL Dehydration/Memory question

    I’m using Oracle BPEL PM 10.1.2.0.2 running on Oracle Application Server 10.1.2. My scenario is simple, I’m using manual tasks in my flows that can be open for several days, and therefore it won’t be good if the processes stay in memory, consuming re

  • OPEN button in the file_open_dialog window

    In 9i webutil, when "file open dialog" window is open, if we just click/select a folder and hit open, it used to show the contents of the folder. we recently upgraded to 10g and this is not working in 10g webutil, we have to double click to open a fo

  • Does processed date mean that my product is on it's way ho

    Now on my RMA update page it now says:[color="#33cc00">RMA was issued to customer:[color="#33cc00">?[color="#33cc00">3/5/2006 4:02:43 PM[color="#33cc00">RMA arri'ved at Creative:[color="#33cc00">?[color="#33cc00">3/20/2006[color="#33cc00">RMA was pro