Applescript to shift focus from sheet's pane to the table

Cmd + Option + return shifts focus from the table to the sheet's pane. However, I haven't found a key that shifts focus back to the table. Therefore, I would appreciate an applescript that selects column A of the last row of the table, no matter which sheet has focus in the shift's pane.
Thanks
Fred

Hello
The script below will select the cell in the first table if only the sheet is selected.
Also I noticed the name main is somehow reserved in Automator and so replaced main() with _main() for use with it.
Hope this helps,
H
_main()
on _main()
    tell application "Numbers"
        activate
        set obj to my get_selected_container(document 1)
        tell obj
            if its class = table then
                set selection range to row -1's cell 1
            else
                tell table 1
                    set selection range to row -1's cell 1
                end tell
            end if
        end tell
    end tell
end _main
on get_selected_container(doc)
        reference doc : source Numbers document
    tell application "System Events"
        tell process "Numbers"
            -- bring Numbers to front
            set frontmost to true
            -- bring target document window to front
            tell (window 1 whose title = doc's name) -- only based on window title (not so reliable)
                perform action "AXRaise"
            end tell
            -- open new inspector window
            tell menu bar 1's menu bar item 9 -- view
                if menu 1's menu item 11's enabled then
                    tell menu 1's menu item 11 -- new inspector
                        click
                    end tell
                else
                    tell menu 1's menu item 10 --  inspector
                        click
                    end tell
                end if
            end tell
            -- get sheet name and table name
            tell (window 1 whose subrole = "AXFloatingWindow") -- front inspector window
                tell radio group 1
                    tell radio button 2 -- sheet
                        click
                    end tell
                end tell
                tell group 1
                    tell text field 2 -- name
                        set sheet_ to value
                    end tell
                end tell
                tell radio group 1
                    tell radio button 3 -- table
                        click
                    end tell
                end tell
                tell group 1
                    tell text field 4 -- name
                        set table_ to value
                    end tell
                end tell
                tell (button 1 whose subrole = "AXCloseButton") -- close
                    click
                end tell
            end tell
            --return {sheet_, table_}
        end tell
    end tell
    -- return object specifier of table or sheet if table_ is ""
    tell application "Numbers"
        tell doc
            if table_ = "" then
                return sheet sheet_
            else
                return sheet sheet_'s table table_
            end if
        end tell
    end tell
end get_selected_container

Similar Messages

  • How to retrieve data from domain(Value Range)  of the table

    hi
    how to retrieve data from domain(Value Range)  of the table
    thanks

    Hello,
    You can try using the FM: DOMAIN_VALUE_GET TB_DOMAINVALUES_GET.
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 24, 2009 10:08 AM

  • PI sheet does not show the table of materials to be consumed.

    Hello,
    Weu2019re trying to customize the pi-sheet on SAP 4.7 (SAP-APPL Release 470) and weu2019re having some problems.
    On transaction O12C (Define Process Instruction Categories), weu2019ve created an Instruction Category for Material Consumption using Type of the process data request equal to Repeated process data request. Doing this, when we create a Process Order, the PI sheet does not show the table of materials to be consumed.
    If we use Type of the process data request equal to Simple process data request instead of Repeated process data request, the PI Sheet works well (The table of materials to be consumed are showing).
    Thanks in advance.

    Hi,
    Is the issue resolved...? If yes then how...
    If not, then can you please elaborate more on the process instructions charateristics you have used. Just list first ten characteristic and there values.
    Regards
    Neeraj

  • Value coming from query is chaing in the Table view

    Hi experts,
    I am new to VC and developing a basic model by using a BI query as a data service.
    I have a field "Project Code" which can return value numeric or alpha numeric or Character.
    for example
    Project Code= 14000000000000002782007 or
    ATROVASTATIN
    When i am right clicking the query and doing the test query function its displaying correctly but when i am draging from the output port of this query and using a Table view to display the data the numeric values like in our example "14000000000000002782007" is displaying as 1.4e+23 its displaying the same value where ever i have some numeric value in the field.
    But its displaying the Char value right "ATROVASTATIN" as it is.
    In the table view the field which is getting this value is with Datatype Text.
    How can i solve this problem.
    Thanks and regards
    Neel

    Hi Neel,
    Have a look at this link,
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/sizeof_key+values&

  • Vertically-aligned tables shift down when entering/editing text within the table.

    Hi all,
    We have a sudden problem that is occurring, and I've done a lot of searching without finding anything close to this happening elsewhere.
    If there is ever a table that is aligned vertically within a text frame, you cannot edit the text without having it shift down one line break for every letter you type, until it's bottom-aligned within the frame. You can then click "align center", and it will re-align itself. Then, if/when you need to change even one letter again inside the table, it will shift down one line.
    We've tested it with two different docs on both Mac and PC, with the same problem. I've cleared my prefs on the Mac to see if that would make a difference, and it hasn't done anything.
    Any thoughts here? I can't recall anything that would have changed since this started happening, but it won't leave us alone now!
    Thanks!!

    Very interesting. I do lots of tables but don't vertically justify so I have never run into this. However I can confirm this behavior on a new clean test page I made, using InDesign CS5 (7.0.3) on Mac OS 10.6.6. I have no other problems with InDesign; it is running flawlessly. And no weird plug-ins or system hack software.
    My test file uses my default font (Adobe Minion Pro) and the default table (Insert > Table).
    It also shifts down when I delete a character in a cell. And the shift for me is more than one carriage return. I can get it back to center-aligned by top aligning and then choosing center align again.

  • Reading from XML file and updating the table ????

    Hi
    I have package which reads the hier.XML file and does Update inserts into the 5 tables
    i have table called MAIN_tbl with the column cur_date.
    The package kicks if this cur_date is one day less than the hier.XML file DT.
    Currently i m manually checking this date's to make sure the Main_tbl cur_date is n sync with
    hier.XML file DT.
    for example :- hier.xml file DT is "20091020" then main_table cur_date should be 10/19/2009
    in order to kicks of the pakage.
    what i m looking to do ??
    compare the hier.xml DT with the main_table cur_date,
    if cur_date is -1(Preivous day) of hier.xml DT then run hier_pkg(Package)
    if not then update main_table cur_date to -1(previous day) of the hier.xml DATE
    Then later write the above logic to update the main_table in a procedure, and
    then call the package from the procedure.
    below are the top few lines of the hier.XML file which is relevant to the one which we are trying to do
    <?xml version = '1.0'?>
    <HIER_POSTING num ="111" HIER_TYP="CD" DT="20091020" Global="Y">
    FYI : The hier.XML file is located in UNIX space.
    How do i accomplish this. any idea ????
    Thank you so much in advance. For giving a thought on this problem!!!

    Any thought on this guys ???
    Thanks!!

  • Analyze and Specify 'From Date' why need TDMS the table TKEB ?

    Hi all
    one Question i start for a new customer TDMS, the Customer don't use Management for Operating Concerns therefore we don't have records on table TKEB. But TDMS search fix on these Table on the call function 'CNV_TDMS_01_EVALUATE_INCONSIST'
    check_common_entries: t001  'T001',
                                              fm01  'FM01',
                                              t242v 'T242V',
                                              tkeb  'TKEB'.
    now i have always the Error messages " Inconsistent customizing of org. units and their fiscal year variants"
    "Evaluation failed. Required customising data not available".
    Should I have to customize one record for table TKEB ?
    Thanks for feedback
    René

    Hello,
    At what SP you are ? if you are on old SP like 12 or less then you can pass this step by pressing the enter button once you get the warning after you hit analyse button.
    if you are on higher Sp then you need to raise a OSS message to SAP explaining your concern. The developers will make the required changes in the coding.
    Best Regards
    Niraj

  • [Flex 4.5.1] How to remove focus from TextInput on mouse click outside of it?

    For me clicking outside of a TextInput should always remove focus from it, only only if you click on another TextInput or Button.
    I don't see any simple event like MouseEvent.MOUSE_CLICK_OUTSIDE - which would definitely simplify things.. I wonder why there isn't such event. Well anyway I can't find any other similar event and I can't figure out an easy way to do this. I also wonder why I couldn't find a solution to this on the web easily... Well anyway...
    Does someone know how to do that in a convenient way?
    Thanks!

    ok I understand why is that. For example I have a TextInput now where the user enters number through buttons which have mouseFocusEnabled = false, so the TextInput doesn't lose focus. But on a TabBar I had to set mouseFocusEnabled = true or when I switched between tabs -> switches between states, I could still type in the TextInput in the previous tab cause it didn't lose focus. Maybe TabBar's default value of that property is wrongly set to false.
    Anyway, not losing focus when clicking outside is still weird. Take for example this forum, if I click outside of the box I am currently writing this, I lose focus. It's how things usually work. And flex focus is designed to work backwards to what people are used to, no matter as I already pointed out I understand there are cases it comes in handly. I hope I don't sound bad but take it just as a suggestion please that maybe if it is redesigned like this: clicking on component gets focus, clicking outside loses focus. But if you click on a button for example and you want to keep the focus on a TextInput cause you add some text, you should be able to set a property on the Button like maintainCurrentFocus = true (false by default), which would make clicking on the Button not shift the focus to it or set it to null if the component is a group that has some rect background for example, but maintain the focus on the TextInput.
    I could be missing something about the current design of how the focus works in flex, but from my point of view at the moment, the design I describe to use is just like how I am usually used to be working with focus as a user, not as developer.
    Maybe you could agree or maybe you know some reason by which things are how they are at the moment that I don't see. But if you think I make sense please let me know, maybe I could fill a minor enhancement request for that ?

  • Using AppleScript To Pull Data From Number & Create Calendar Events

    Today I tried running an AppleScript that I created a few years back that works with Number ’09 [version 2.3 (554)].  The script collects information from the active numbers table and creats an event in my calendar for each row of data in the table.  For some reason its not working with the current version of number.
    Here is the script:
    on run
      set cr to ASCII character 13
      set newline to return
      local dName, sName, tName, rowCount, workingCalendar, maintenanceType
      -- get general document information like document name, active sheet name, active table name & the number of rows in the active sheet
      set {dName, sName, tName, rowCount} to my get_document_information()
      -- get information needed to update a calendar in the calendar application like the calendar that needs to be updated and the type of maintenance that will be completed
      set {workingCalendar, maintenanceType} to my get_calendar_update_information()
      -- update calendar maintenance type so the computer can say it
      if maintenanceType = "add" then
      set maintenanceTypeChanged to maintenanceType & "ed"
      set lastpartofsentence to "to calendar"
      else if maintenanceType = "update" then
      set maintenanceTypeChanged to maintenanceType & "d"
      set lastpartofsentence to "in calendar"
      else if maintenanceType = "delete" then
      set maintenanceTypeChanged to maintenanceType & "d"
      set lastpartofsentence to "from calendar"
      end if
      say "Events will be" & maintenanceTypeChanged & lastpartofsentence & workingCalendar
      --determine if calendar already exists.  If it does not create it
      tell application "Calendar"
      set allCalendarTitles to the title of every calendar
      if allCalendarTitles contains workingCalendar then
      --do nothing
      else
      create calendar with name workingCalendar
      end if
      end tell
      set timedifferance to 4
      -- get event information for each row in active table
      say "table name is " & tName
      repeat with rownumber from 1 to rowCount
    tell application "Numbers" to tell row rownumber of tName to set {cell04, cell05, cell06, cell07, cell08, cell09, cell10} to {value of cell 4, value of cell 5, value of cell 6, value of cell 7, value of cell 8, value of cell 9, value of cell 10}
      set cell07 to SearchReplace(cell07, "|", newline)
      tell application "Calendar"
      activate
      if maintenanceType = "Delete" then
      tell calendar workingCalendar to delete (first event whose summary contains cell04 and start date is equal to (cell05 + (timedifferance * hours)))
      end if
      if maintenanceType = "Update" then
      tell calendar workingCalendar to delete (first event whose summary contains cell04 and start date is equal to (cell05 + (timedifferance * hours)))
      tell calendar workingCalendar to set test to make new event at the beginning of events with properties {start date:cell05 + (timedifferance * hours), end date:cell06 + (timedifferance * hours), description:cell07, summary:cell04, location:cell10}
      end if
      if maintenanceType = "Add" then
      tell calendar workingCalendar to set test to make new event at the beginning of events with properties {start date:cell05 + (timedifferance * hours), end date:cell06 + (timedifferance * hours), description:cell07, summary:cell04, location:cell10}
      end if
      end tell
      end repeat
      say "Events have been " & maintenanceTypeChanged
    end run
    on get_document_information()
      -- Get general document information for later use
      local d_name, s_name, selectedTable, t_name, row_count
      tell application "Numbers" to tell document 1
      -- get document name
      set d_name to name
      -- get sheet name
      set s_name to name of active sheet
      -- get table name
      tell active sheet
      set the selectedTable to (the first table whose class of selection range is range)
      end tell
      tell selectedTable
      set t_name to name
      set row_count to row count
      end tell
      return {d_name, s_name, t_name, row_count}
      end tell
    end get_document_information
    on get_calendar_update_information()
      local strCalendarToWorkWith, strMaintenanceType
      tell application "Numbers"
      activate
      tell document 1 to tell sheet "General Information" to tell table "Table 1"
      copy value of cell "C9" to strCalenderToWorkWith
      copy value of cell "C12" to strMaintenanceType
      end tell
      return {strCalenderToWorkWith, strMaintenanceType}
      end tell
    end get_calendar_update_information
    on SearchReplace(sourceStr, searchString, replaceString)
      -- replace <searchString> with <replaceString> in <sourceStr>
      -- return SearchReplace(theString, ".", "<PERIOD>")
      set searchStr to (searchString as text)
      set replaceStr to (replaceString as text)
      set sourceStr to (sourceStr as text)
      set saveDelims to AppleScript's text item delimiters
      set AppleScript's text item delimiters to (searchString)
      set theList to (every text item of sourceStr)
      set AppleScript's text item delimiters to (replaceString)
      set theString to theList as string
      set AppleScript's text item delimiters to saveDelims
      return theString
    end SearchReplace
    When running the script in the current version of Numbers [version 3.2 (1861)] I receive the following error message:
    Here is what the table looks like:
    Can anyone help me correct this error/issue?
    Thank you,
    Brian

    The error ocurs right after it speaks the table name?  The error is highlighting the suspect line in the first screenshot.
    I think the "T" in the error is coming from the Table name, so try  replacing the line in question with this mess
              tell application "Numbers"
                        tell document 1
                                  tell active sheet
                                            tell table tName
                             set {cell04, cell05, cell06, cell07, cell08, cell09, cell10} to {value of cell 4, value of cell 5, value of cell 6, value of cell 7, value of cell 8, value of cell 9, value of cell 10}
                                            end tell
                                  end tell
                        end tell
              end tell
    NB original was
    tell application "Numbers" to tell row rownumber of tName to set {cell04, cell05,cell06, cell07, cell08, cell09, cell10} to {value of cell 4, value of cell5, value of cell 6, value of cell 7, value of cell 8, value of cell 9,value of cell 10}
    I don't know Numbers & Applescripting so you'll probably need to work on it some more, I gleaned the 'tell document & tell active sheet, tell table' from the script near the bottom.
    http://www.macosxautomation.com/applescript/iwork/numbers/table-populate.html
    It's a little unclear to me where the 'get document' info comes from, since you are not telling Numbers within that part.

  • Something is stealing focus from my active window

    Hi,
    Something frequently steals focus from my Mail, Keynote and other active windows. I'm having trouble figuring out what it is as the focus doesn't 'go' anywhere. It's quite annoying as I frequently get the error-ding, and have to go to the mouse to return focus to the window I was working in.
    Does anyone know how to resolve this issue? Below please find the system informaiton.
    Hardware Information:
              MacBook Pro (15-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,2
              1 2 GHz Intel Core i7 CPU: 4 cores
              16 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 512 MB
              AMD Radeon HD 6490M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 6:23:0
    Disk Information:
              ST1000LM014-1EJ164 disk0 : (1 TB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macbook SSD (disk0s2) /: 999.35 GB (578.21 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple, Inc. Keyboard Hub
                        Apple Inc. Apple Keyboard
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Thunderbolt Information:
              Apple Inc. thunderbolt_bus
    Kernel Extensions:
              com.symantec.kext.internetSecurity          (5.2f2 - SDK 10.6)
              com.symantec.kext.ndcengine          (1.0f2 - SDK 10.6)
              com.symantec.kext.ips          (3.5f2 - SDK 10.6)
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [System] com.adobe.SwitchBoard.plist 3rd-Party support link
              [System] com.frogdesign.ardon.daemon.plist 3rd-Party support link
              [System] com.frogdesign.disableautologin.daemon.plist 3rd-Party support link
              [invalid] com.frogdesign.renamecomputer.daemon.plist
              [invalid] com.frogdesign.renamehost.daemon.plist
              [invalid] com.frogdesign.renamelocalhost.daemon.plist
              [System] com.frogdesign.sshon.daemon.plist 3rd-Party support link
              [System] com.microsoft.office.licensing.helper.plist 3rd-Party support link
              [System] com.symantec.liveupdate.daemon.ondemand.plist 3rd-Party support link
              [System] com.symantec.liveupdate.daemon.plist 3rd-Party support link
              [System] com.symantec.sharedsettings.plist 3rd-Party support link
              [System] com.symantec.symdaemon.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.frogdesign.screenpwddelay-host.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwddelay.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwdon-host.agent.plist 3rd-Party support link
              [System] com.frogdesign.screenpwdon.agent.plist 3rd-Party support link
              [System] com.symantec.uiagent.application.plist 3rd-Party support link
              [System] jp.co.canon.CUPSiPF.BackGrounder.plist 3rd-Party support link
              [System] jp.co.canon.CUPSiPF.PreviewDaemon.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Login Items:
              UNKNOWN
              iTunesHelper
              Dropbox
    Internet Plug-ins:
              QuickTime Plugin: Version: 7.7.3
              AdobePDFViewerNPAPI: Version: 10.1.9 3rd-Party support link
              AdobePDFViewer: Version: 10.1.9 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              MeetingJoinPlugin: Version: (null) - SDK 10.6 3rd-Party support link
              JavaAppletPlugin: Version: 14.8.0 - SDK 10.9 Outdated! Update
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    3rd Party Preference Panes:
              Symantec QuickMenu  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              Microsoft Language Register:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
              iPF Support:          Version: 2.36 - SDK 10.4 3rd-Party support link
                        /Library/Printers/Canon/GARO/Utilities/iPF Support.app
              Solver:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              Microsoft Lync:          Version: 14.0.7 - SDK 10.5 3rd-Party support link
              /Applications/Microsoft Office 2011
                        Microsoft PowerPoint:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Outlook:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Word:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Document Connection:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              dynamiclinkmanager:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclink/CS6/dynamiclinkmanager.app
              /Applications/Microsoft Office 2011/Office
                        Microsoft Graph:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Utility:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Office Reminders:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Upload Center:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        My Day:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        SyncServicesAgent:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Open XML for Excel:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Alerts Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Database Daemon:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Chart Converter:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
                        Microsoft Clip Gallery:          Version: 14.3.9 - SDK 10.5 3rd-Party support link
              dynamiclinkmediaserver:          Version: 6.0.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Adobe/Common/dynamiclinkmediaserver/1.0/dynamiclinkmediaserver.app
              SyLinkDrop:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Symantec/SMC/tools/SyLinkDrop.app
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
    Time Machine:
              Time Machine not configured!
    Top Processes by CPU:
                  24%          mds
                   3%          WindowServer
                   3%          EtreCheck
                   2%          iTunes
                   1%          coreaudiod
    Top Processes by Memory:
              721 MB          SymDaemon
              541 MB          Finder
              524 MB          Keynote
              410 MB          Mail
              311 MB          mds_stores
    Virtual Memory Information:
              3.60 GB          Free RAM
              6.10 GB          Active RAM
              4.55 GB          Inactive RAM
              1.75 GB          Wired RAM
              2.74 GB          Page-ins
              0 B          Page-outs

    Hello,
    I have the same problem (probably because we work for the same company )
    The problem is with Symantec Endpoint Protection. I ran a script and found out that's causing the problem. I don't have a fix yet though unfortunately.
    Kevin

  • How to stop preview window from automatically getting focus when you move up/down the message list.

    Since updating (my TB was a few versions old) to 31.2, the preview window automatically gets focus when I move up/down the message list. I'm assuming this is a new "feature". Is there a way to shut this off and leave the focus on the message list so I can navigate up/down like before?

    You are referring to the 'Message Pane' which displays selected opened emails below the list of emails. It is not a 'preview'.
    When you select an email by either using mouse to click on an email in the list or using the arrow keys to select emails up and down the list, you are selecting an email to open and read. That is why it is being opened in the Message Pane so that you can read it.
    If you select an email in the list and then cllck anywhere else including in the Message Pane, then you will have moved focus away from the list and the strong highlight on email in list is reduced to paler highlight.
    When you click on an email in the list, the email becomes highlighted, at this point you can use eg: arrow keys to move up and down the list.
    If you are performing single left click on email in list and then do nothing else and the strong highlight auto changes to paler highlight.
    Check you do not have a conflict with an addon by starting Thunderbird in Safe Mode.
    Help > select 'Restart with addons disabled'

  • How to capture the event on changing focus from a JTextField?

    Hi All,
    I have got a problem...
    I want to do something (say some sort of validations/calculations) when I change the focus by pressing tab from a JTextField. But I am not able to do that.
    I tried with DocumentListener (jtf01.getDocument().addDocumentListener(this);). But in that case, it's calling the event everytime I ke-in something in the text field. But that's not what I want. I want to call that event only once, after the value is changed (user can paste a value, or even can key-in).
    Is there any way for this? Is there any method (like onChange() in javascript) that can do this.
    Please Help me...
    Regards,
    Ujjal

    Hi Michael,
    I am attaching my code. Actual code is very large containing 'n' number of components and ActionListeners. I am attaching only the relevant part.
    //more codes
    public class PaintSplitDisplay extends JApplet implements ActionListener
         JFrame jf01;
         JPanel jp01;
         JTextField jtf01, jtf02;
         //more codes
         public void start()
              //more codes
             jtf01 = new JTextField();
              jtf01.setPreferredSize(longField);
              jtf01.setFont(new Font("Courier new",0,12));
              jtf01.setInputVerifier(new InputVerifier(){public boolean verify(JComponent input)
                   //more codes
                   System.out.print("updating");
                   jtf02.setText("updated value");
                   System.out.print("updated");
                   return true;
              //more codes
              jtf02 = new JTextField();
              jtf02.setPreferredSize(mediumField);
              jtf02.setEditable(false);
              jp01.add(jtf02, gbc);
              //more codes
              jf01.add(jp01);
              jf01.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              jf01.setVisible(true);
              //more codes
         public static void main(String args[])
              PaintSplitDisplay psp = new PaintSplitDisplay();
              psp.start();
         public void actionPerformed(ActionEvent ae)
              //more codes
    }As you can see I want to update the second JTextField based on some calculations. That should happen when I change the focus from my frist JTextField. I have called jtf02.setText() method inside InputVerifier. But it's giving error...
    Please suggest...
    Ujjal

  • Read data from excel sheet and then perform the required operations.

    Hi all
    I need to write a procedure which can read data from excel sheet.I have excel sheet in which i have to options one is modification and other is addition.so if it reads modification then i need to read the concerned table name then check its availability in pl-sql datbase.If table exists then reading the realated column in that row to fire the querry. The excel sheet is saved in local disk c.
    can anybody help me with this.How i need to start specialy to read the data from excel sheet saved in local disk c.
    Edited by: user13334062 on Jun 30, 2010 3:45 AM

    Hi
    If you can convert the excel to a csv format, then it can be simply query from DB Creating Oracle External Tables. Best part is that you may still change the CSV using EXCEL.
    Following action Points can be adopt;
    *1. Convert Excel File to a csv. File Save as CSV*
    *2. Create Oracle Directory* ( This has to be the location of your excel file )
    SQL> Create directory mydir as 'C:\testdb'; --- "testdb" is the location folder in win for your excel sheet.
    *3. Create the External Table*
    SQL> create table my_ext_tab (
    Field1 Datatype,
    Field2 Datatype,
    Field3 Datatype,
    Field4 Datatype,
    Field5 Datatype
    Organization external
    (type oracle_loader default directory mydir
    access parameters (records delimited by newline fields terminated by ',')
    location ('my_ext_tab.csv'))
    reject limit 100;
    *4. Now you can query the table "my_ext_tab"*
    Select * from "my_ext_tab";
    Please avoid the reformat the data column inside the spreadsheet (CSV).

  • Applescript: open Pages doc from Templete, change filename and replace text

    Hi!
    I just got started with applescript and i want a script that does the following:
    1. open "choose from list" dialog to choose the topic of my document
    from 4 possibilities (here for example A, B, C, D)
    2. open document from TemplateXY
    3. set document name with date and topic (dd.mm.yyy) "16.02.2011 - A"
    4.inside of document: replace text "date" with the currend date (dd.mm.yyy)
    and the text "topic" with the topic chosen in (1.) "A"
    this is what i already did:
    here as colored screenshot:
    http://i55.tinypic.com/2mnhxkm.jpg
    set datum to do shell script "date \"+%d.%m.%Y\""
    --choose topic:
    set chosentopic to choose from list {"A", "B", "C", "D"}
    --text "topic" becomes replaced throug variable topic
    set searchstringT to "topic"
    set replacestringT to chosentopic
    --text "date" gets replaced by currend date (variable datum)
    set searchstringD to "date"
    set replacestringD to datum
    --open pages, define filename & do search&replace of the strings defined above
    tell application "Pages"
    activate
    set DocName to datum & " - " & chosentopic
    set (every text where it is searchstringT) to replacestringT
    set (every text where it is searchstringD) to replacestringD
    end tell
    the "choose from list" dialog works and the variables like topic, datum and the search&replace strings get defined as well
    my problems are:
    i only get an error that the text could not be replaced
    i dont know how to get a new document from a template and how to get its filename changed
    i really just started doin things with applescript for a day so i hope you can help me
    regards
    DaNylz
    Message was edited by: DaNylz

    Try something like this:
    set myFoundItems to change text text of all page items of pages 3 thru 5 of document 1
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • How to stop Firefox windows stealing focus from other Firefox windows?

    I am using Firefox 26.0 on Windows 7 and tend to brows using multiple windows instead of tabs. Frequently when I click on a link in one window, the new page will begin to load and suddenly a firefox window that is in the back ground pops to the front, stealing the focus from the window I had been browsing in.
    There is no consistent pattern as to which websites or pages are loaded into the background windows that suddenly decide to steal focus. Likewise there is no pattern as to which links or actions I use that seem to cause this to happen.
    Is this a known issue? It is driving me absolutely nuts!

    It could be a bug in the Flash Player plugin, caused by the protected mode feature. This thread has the background on that and known workarounds: [https://support.mozilla.org/questions/955659 Opening New Windows and Shockwave Flash].

Maybe you are looking for

  • How to run a concurrent progarm from a Form personalisation?

    I use: Type: Builtin Builtin Type: Launch SRS Form Program Name: One custom program. It gives me an error : Function not available to this responsiblity. Change responsiblities or contact your System Administrator. FYI : The custom program is attache

  • How can I add append text to a text box?

    I want to have it so I can add data to the textbox, through my program, and not overwrite what's currently in there. I'd also like to have new lines indented. Ex. I have: cp C:\Test C:\Test2 I want to just add a console response as such: cp C:\Test C

  • Why does Quicktime not play this mp4 correctly

    I can create an mp4 file (recording) from Belkin's @TV app but that file will not play correctly in Quicktime (or RealPlayer or iMovie, etc.).  While the video playback seems fine, the audio plays a couple of seconds, at "chipmonk" speed, and then th

  • Third Party Purchase

    Hi all , As a business requirement we have following process - Retailers raise indent for various products to our company - Our company consolidate all the indents and raise the PO to manufacturer ( vendor )- Vendor will send the delivery directly to

  • HELP!! Cisco RV180 Port Forwarding

    Someone please advise as to this is the first time I've tried to setup port forwarding using the Cisco RV180 Router. I have a Cisco RV180 Router, a Ruckus 7055 access point and a power distribution unit. I'd like to be able to access the router remot