Switch tabs in XCode "Organizer"

Dear everyone,
I recent wrote a very small AppleScript as part of my whole automation script. What I wanna do it start Xcode -> choose "Window" from the menu -> click on "Organizer" from the menu -> click on "Device" button from "Organizer" -> choose "Editor" from menu -> Click on "Refresh from Developer Portal". The incomplete code is provided in the following.
Actually the only problem I have got so far is this step "click on "Device" button from "Organizer"" because sometime the focus is not on "Device" but other tabs (don't know how to attach a screenshot to this forum) and I have no idea of how to switch between them. I know I can use "Select Next Tab" menu item to switch to the next one but how to decide which tab (maybe by tab name) I have already switched to?
Actually I even do not know whether I should call them "tabs". They maybe "button". I tried using "button" but it did not work for it.
Any hint is much appreciated!
Cheers
Daniel
tell application "Xcode" to activate
#Activate "Organizer"
tell application "System Events"
    tell process "Xcode"
        tell menu bar 1
            tell menu bar item "Window"
                tell menu "Window"
                    click menu item "Organizer"
                                        ***************In here, I need to switch between tabs and choose the tab "Device"***************
                end tell
            end tell
        end tell
    end tell
end tell
delay 2
#tell application "System Events"
#    tell process "Xcode"
#        click button "Devices" of button group of window "Organizer"
#        #click button "Radio On" of tab group 1 of window "Wireless Utility"
#    end tell
#end tell
#Refresh the provisioning profile
tell application "System Events"
    tell process "Xcode"
        tell menu bar 1
            tell menu bar item "Editor"
                tell menu "Editor"
                    click menu item "Refresh from Developer Portal"
                    delay 2
                    keystroke (ASCII character of 13)
                end tell
            end tell
        end tell
    end tell
end tell

Hi Gamelot,
That solved my problem. Thanks a lot for that. "tool bar" should be used in that case.
BTW, do you know anywhere to know more about the terminologies used in AppleScript?
The whole code is:
tell application "Xcode" to activate
#Activate "Organizer"
tell application "System Events"
          tell process "Xcode"
                    tell menu bar 1
                              tell menu bar item "Window"
                                        tell menu "Window"
                                                  click menu item "Organizer"
                                        end tell
                              end tell
                    end tell
          end tell
end tell
delay 2
tell application "System Events"
          tell process "Xcode"
                    click button "Devices" of tool bar 1 of window 1
          end tell
end tell
#Refresh the provisioning profile
tell application "System Events"
          tell process "Xcode"
                    tell menu bar 1
                              tell menu bar item "Editor"
                                        tell menu "Editor"
                                                  click menu item "Refresh from Developer Portal"
                                                  delay 2
                                                  keystroke (ASCII character of 13)
                                        end tell
                              end tell
                    end tell
          end tell
end tell

Similar Messages

  • Is it possible to sort or filter the switch routes under the switching tab?

    In Teststand 3.1, is it possible to filter the switch routes under the switching tab in Action Properties?  Since I have a large amount of routes that have been created in Switch Executive, how can I filter out some of the routes from the "Routes to Connect" section?

    The TestStand Switching does not provide any inherent filtering capabilities.  You do have a couple of options, however.
    (1)  NI-Switch provides the ability to set up route connections in
    different groups.  The Switch Page in TestStand allows you to
    select Routing groups as well as specific Routes.  It may be
    easier for you to organize your Connections as groups and choose
    between different groups.
    (2)  The Property page also allows you to build route connection
    string and use that string  for your Switching actions.  It
    may be easier for you to build a Route string and easily change that
    string rather than selecting your routes everytime from within the
    TestStand window.
    Good Luck!
    Tyler T.
    Applications Engineer
    National Instruments

  • I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    I am doing two people's jobs and I need to use two separate log-ins on the same website. How can I keep both log-ins open at the same time. Everytime I switch tabs I have to log in again.

    Try one of these extensions for multiple cookie sessions.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • Switching tabs while working with Premiere Pro CS5

    Hello there.
    I am currently working with Adobe Premiere Pro CS5 and I notice that when I'm reproducing/previewing the timeline or am recording, for example, an audio track, everytime I switch tabs (switch to another window or to desktop), in this case the recording stops. I've searched around Preferences and in help files and I cannot find an option to make Premiere continue what he's doing despite me changing windows. Is this even possible? It would be very helpful.
    Cheers!

    >Is this even possible?
    No... PPro must have full control of the computer to work... shift to another program and PPro stops

  • When I'm on youtube and I'm watching a video, and I switch tabs or look at something else, the video from youtube will appear in the corner of my screen and won't leave.

    Alright, lets say I'm watching a video on youtube. If I switch tabs, the video from youtube will appear in my top left screen and won't go away. Or if I go to any other site or program and try to open a file from my computer, the video will pop up in the corner again and I won't be able to see anything I need to. This sounds like a glitch or something. I just need to know how to fix it.

    Does this only happen on specific pages?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can try to disable notifications as a test (you may want to reverse this).
    You can try to set the dom.webnotifications.enabled pref to false on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • Cannot switch tabs past a tab viewing a PDF

    When I have a tab open with a PDF in it (using Adobe Acrobat 9.3.0.148 plugin) I cannot switch tabs using Ctrl-Tab and Ctrl-Shift-Tab past that particular tab. Ctrl-W won't close the tab with the PDF in it either. It looks like if you dont click within the PDF document or one of the viewer plugin toolbars etc it will let you tab past, as soon as you click within the PDF it no longer works, even if you change to a different tab and then try going past it again. Using the mouse scroll wheel to scroll through the document does not cause this behaviour to kick in either. Also in this state you cannot use Ctrl-F when you tab onto the PDF tab unless you click on the PDF itself (same goes for cursor keys and page up/down keys). FF2 used to allow you to tab past the PDFs without any issue, i noticed this on 3.5.1 while upgrading to 3.6.3. So its like keyboard focus is lost somewhere between FF and the PDF plugin.
    I remember in FF2 you used to get a faint rectanglular highlight within the tab so you could tell the focus was on the tab not within the page. Thats also gone now.
    I havent been able to find an existing bug specificaly on this issue, or any other potential work arounds. So just want to check before i log a bug, of course this could be an Adobe plugin issue, although it does appear to be linked with how the focus is maintained on components within FF.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8)

    This is a known item - a plugin steals keyboard focus - happens with Flash in addition to PDFs (Relevant bug report appears to be [https://bugzilla.mozilla.org/show_bug.cgi?id=93149]

  • How do I prevent firefox from switching tab groups when closing a tab?

    I really like the tab groups feature, as it helps cut down on the number of tabs I have open at once. The problem is that when I close a tab, I sometimes get shunted to another random tab group. It is then a pain to get back to where I was before. Is there a way to force Firefox to choose among the current tab group for a tab to open?

    This problem persists in Firefox 5.0 on all of my computers (Windows 7, OS X 10.6, and *any* Linux distro). It would be nice if Firefox was forced to remain within a single tab group until no more tabs remain. Also, if we have pinned tabs, closing the last non-pinned tab should select the nearest pinned tab, without switching tab groups.
    This issue is pretty annoying. It would be nice to see a remedy. For reference, here is another post with the same issue: http://support.mozilla.com/en-US/questions/828677

  • What are the gestures for switching tabs in safari

    Subject says it: are there gestures for switching tabs in Safari under Lion? (I'm using a MacBook Air.)
    Thanks.

    djdannyjacko wrote:
    bring your pointing and index finger together to swipe tabs
    Kind of cool, but I think I'd like to just be able to move them with one gesture.

  • Call a Function when switching tabs in TabbedPanel

    I am using Allan Jardine's DataTables javascript library , along with the Spry TabbedPanel. I have one table in each of a number of Tabs. The table in the tab opened by default (or if I use ShowPanel()) is fine. However, if I switch tabs, the other tables, which were hiden when the page was opened,  are not correctly initialised, and don't display correctly. Doing anything that causes the displayed table to be redrawn results in the table displaying correctly, and from then on I can switch tabs and the tables are fine.
    DataTables has an API function fnDraw(), which will cause a specified table to be redrawn. Is it possible to cause TabbedPanel to call a user specified function when the tabs are swapped, so I can call fnDraw()? I think this woiuld solve my problem.
    Thanks
    Ron

    Thanks.
    But I found a simpler way. At the end of the jQuery(document).ready(function(), which initialises the datatables, I added
    var ret=TabbedPanels1.showPanel("expiredquotes");
    oTable2.fnDraw();
    var ret=TabbedPanels1.showPanel("confirmedquotes");
    oTable3.fnDraw();
    var ret=TabbedPanels1.showPanel("openquotes");
    Which opens each of the "other" tabs and redraws the respective DataTable while they are "visible". Then at the end I display the 'default' Tab. I only need to do this once, when the page is opened, after which the tables are correctly formatted.
    Regards
    Ron

  • Firefox29 cannot close or switch tabs on OSX10

    clicking on a tab no longer switches to corresponding tab window
    no way to close tab; the 'x' is gone and right clicking the tab just shows the customize menu for the browser
    this rendered it unusable for me and I had to switch back to FF 28

    Problem with frozen / unselectable tabs applies to PCs as well, the extension that was affected by Firefox 29 is
    <br>'''[https://addons.mozilla.org/firefox/addon/how-many-times-can-i-back/ How Many Times Can I Back?]''' :: Add-ons for Firefox
    You will have to disable the extension for now. I see you went back to Firefox 28 (a lot easier on your health). It was really a pain trying to switch tabs strictly through the "List all tabs" drop-down, and use Ctrl+T, and Ctrl+W (or for you with the Mac Cmd key ⌘ ).
    I had the same problem, it is now reported in
    <br>[http://kb.mozillazine.org/index.php?title=Problematic_extensions Problematic extensions - MozillaZine Knowledge Base]
    Firefox 29 made changes to Tabs, and removal of the Addons Bar. since you also show Status-4-Evar in your "MORE SYSTEM DETAILS" you use the Addons bar and have a problem there as well. You also have another extension one with the word "tab" in it "Old Firefox Tab 1.0" which could be affected as well.
    Either of these extensions will restore the addons bar, I prefer
    [https://addons.mozilla.org/firefox/addon/the-addon-bar/ The Addon Bar (restored)] which I prefer because I have tabs on the bottom.
    Those who can stand tabs on top and the hugh Firefox button may prefer <br>[https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ Classic Theme Restorer (Customize Australis) :: Add-ons for Firefox]
    <br>I see you did try that when you were on Firefox 29.
    Both extensions preserve "Ctrl+/" shortcut to toggle the Add-ons bar.
    To restore Tabs on the bottom (in Firefox 29)
    <br>[https://addons.mozilla.org/en-US/firefox/addon/fdgueux-tabs-on-bottom/ Tabs on Bottom (Australis) :: Add-ons for Firefox]
    If you look in your "'''MORE SYSTEM DETAILS'''" in the right hand panel you can see what see of the extensions and plugins that you have. For instance
    <br>'''How Many Times Can I Back?''' 0.2.2011012001 ([email protected])
    <br>'''Old Firefox Tab 1.0''' ({b4b3e886-52d2-11e3-b4ad-f2ea6188709b})
    <br>'''Status-4-Evar''' 2013.10.31.22 ([email protected])
    I'm working through my own problems and will be able to use Firefox 29 even though some of my toolbar buttons are almost invisible (only my own styles are affected by that).
    <br>http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx29

  • Shortcut for switching / tabbing between open documents?

    Hi. In Mac OS in general, you can switch between open documents or windows in the same program via the shortcut COMMANDO + >. Like for instance different windows in Firefox. But in Numbers and Pages, this means zoom in or out.
    Does anybody know a shortcut to switch / tab between the open documents in Numbers and Pages?
    I have searched google, here and e-mailed for help and found nothing.
    Thank you!

    Hello Jerry.
    There ARE keyboards like that:
    http://www.ergoblog.com/2006/09/keyboardwithe.html
    http://www.sspdirect.com/large-letter-keyboard.html
    You see, just google for "Large letter keyboard" and maybe add Mac. But ones without Mac symbols works just as fine, you just have to learn which key is which.
    Seems there is no solution to my tilde-problem...
    Thank you my french friend, for the understandning of the swedish problem
    Regards,
    Kip

  • Switching tabs in a tabstrip

    I have a tabstrip with two tabs. Under the first tab i am displaying a table. The user has the option of selecting one or more rows of this table, and hit an "Edit" button. At this time, the selected rows will be picked and transferred to a second table displayed under the next tab, and the user can make changes in this table. I am not sure how I can switch tabs programmatically. I searched the documentation but was not able to find much. Any guidance is appreciated.
    Murtaza.

    Create a context attribute "selectedTab", type "String".
    Bind TabStrip.selectedTab property to attribute "selectedTab".
    In event handler, set attribute value to ID of tab to be selected:
    wdContext.currentContextElement().setSelectedTab("ID-of-Tab");
    Armin

  • Problem with switching tabs in top level navigation for Roles

    Hi,
    I've created two tabs (based on two roles) in the portal top level navigation menu. When clicking the first one it opens as it should. Then when clicking on the second tab it will not open, instead the first tab open up again, it sort of switches back automatically.These  two roles  are  basically consists of worksets and iviews(accessing to r/3).
    Does anyone have any expericene with this type of problem?
    please  suggest me
    Thanks
    Aravinda

    Hi Aravinda
    Please check this link
    Re: Problem with switching tabs in top level navigation
    Regards
    Geogi

  • Select project file (to open editor), Run Script - XCode Organizer

    Hi,
    I'm new to AppleScript, but I'm trying to automate a number of login processes. I have most of my needs worked out, but there are still a couple of loose ends which will save me substantial time if I can get them running. I'm not finding documentation of such processes, so maybe I'm barking up an empty tree. Is this possible; and were can I find the necessary documentation:
    1.
    I have a Ruby project maintained in the XCode Organizer. I'm striking out on blind tries. What I need to do is equivalent to selecting a document *in the organizer*. It has to have the same effect as manually negotiating the file/directory tree, because selection of the file further enables running an Action Script in the Organizer, the name of which is "START MONGREL SERVER."
    I have opened the target document, application_controller.rb, in the conventional manner you might open a document, but this has only opened the document in a separate editor window. This doesn't suffice, because it is the selection of a project document which makes the related Action Script available for further running.
    How then might I do this?
    2.
    After this file is selected, I need to run the action script, "START MONGREL SERVER." How likewise can I do this?
    3.
    Thirdly, is it possible to wait until threads invoked by previous script statements are finished? If so, how? Otherwise, can we insert a "wait" statement of some kind to delay execution of further instructions? If so, how?
    Much thanks in advance,
    m

    Hi,
    ODP doesnt have anything built in to run sql scripts. You'd likely need to parse the script yourself and execute the commands one by one, or you could shell out and run the script via sqlplus.
    Hope it helps,
    Greg

  • Firefox freezes when I switch tabs or write in a form.

    Every time I switch tab by clicking on them(and sometimes when using the short cut, ctrl+tab ctrl+2 etc) or when I start writing in the awesomebar/a form Firefox freezes. It just visual freeze so I can still go to a website, click on stuff and so on. But when I resize the window by pressing F11 or something like that it returns to normal. I've tried to disable all the plugins and add-ons and i've tried to make a clean reinstall, and when I say clean, I mean clean (deleted all the mozilla/firefox folders in /AppData etc) . Two things that's not affected by this freezes is
    1. Flash objects
    2. The title of the page. (the tabs title still freezes)
    I'm using a ProBook 4330s and I have tons of friends using the exact same model with firefox who's not experiencing this problem. Also note that I don't have this problem with Chrome or Explorer.

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for

  • HTTPS from JDK1.2.1 to JDK 1.4.1

    We are trying to connect application running on JDK1.2.1 to application in JDK 1.4.1. Both applications are in Oracle 9ias application server but with different JDK and different physical machines. We are getting following error while trying to acces

  • How many domains can Prime Collaboration Advanced manage with the BE6000?

    The BE6000 Administration guide states that "Most BE6K deployments have a single domain as part of a Standard Prime installation. Multiple domains are available with Prime Collaboration Advanced (available for purchase) that can be used for complex B

  • Photoshop CC does not see the full RAM

    I just installed Photoshop CC and I see in the performace that it only sees 3255 MB.  But I have 32G RAM on my PC and Photoshop CS6 sees the full 32G of RAM.  How can I solve this?

  • Screensaver images (portrait) don't scroll anymore...

    Ever since the introduction of Lion my Screensaver only shows the centre of photo's shot in portrait mode. Where as in the past, these images used to scroll (or flow) either up or down using the zoom and fill screen functions in system preferences. L

  • Ticker problem

    Hello! I've got a problem with the Ticker-function. I don't want my Ticker to reset (start over again) when i change between an application's Displayables. Does anybody know how to avoid this? I supply an example where the Ticker will be reset if you