When does a selection in a text field in a Finder window lose focus?

Hello,
this problem has emerged on account of an Applescript file that needs to access a text selection (portion of a filename highlighted) in an open Finder window.
The bare minimum code to demonstrate the problem is this:
*tell application "System Events"*
* *tell process "Finder"*
* *set selText to value of attribute "AXSelectedText" of text field 1*
* *end tell*
*end tell*
other variants also exist, using "keystroke" but that does not work either. I am not asking help with Applescript here, it is here only to give a sense of the problem.
My conclusion thus far is that the selection lose focus before the script process can access it. In the best case I get the full filename by using "attribute" and copy of the alias onto the clipboard by using "keystroke".
So my problem is this:
It seems that the focus stays alive when one clicks on a menubar item, any click on any other item on the desktop, including windows of irrelevant applications, changes the focus from the selection within the text field corresponding to a filename, to the filename itself.
And my question is this:
Is there a changeable setting within the OS that has to do with how long the focus stays alive on a selection within a text field corresponding to a filename? If yes, how do I change it?
Thanks

baltwo wrote:
Thanks for clarifying. Never heard it called a text field, just a label. So, exactly what are you trying to accomplish? Is it that you want AS to select the file, highlight its label so you can edit/change it with some other text? If so, have you checked out the Finder scripts installed on the machine, especially the Finder script *Add to Finder Names*?
UI Element Inspector calls the activated/editable filename a text field.
Actually I want to modify one of the stock Finder scripts. I want to be able to select part of the file name in the active text field of the Finder window, then activate the script, *have the script pick up the selection* as a text string then use it internally.
The bolded step is the one in question.
Every attempt fails on the fact that the focus is lost from the "text field" and it reverts to the label for the filename, if I may use this distinction, (or to "FinderItem" in the parlance of UIEI) as soon as another process begins, it seems. So when the script becomes active, but before any of the commands is executed, the selection disappears.
My guess is that it is not some absolute necessity but a setting that perhaps can be changed somehow.

Similar Messages

  • Cursor Comes Into Text Field then open a window with Values.

    hi,
    i have to create a form with some items.there are two text field item :p1_item_group and :p1_item_name.
    i want to design these form like telly Form .eg in a telly form like if we want to enter state in text field and cursor come on State text field then open a window with all state name in right side and user select state from these window and state come in to text field.
    So i want to this type of action on p1_item_group when cursor come in to this item p1_item_group then quickly open a window with all item group name.
    MY table is
    CREATE TABLE "ITEM_GROUP_DETAILS"
    (     "S_NO" NUMBER,
         "ITEM_GROUP" VARCHAR2(500),
         CONSTRAINT "ITEM_GROUP_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
    insert into ITEM_GROUP_DETAILS values(1,'A');
    insert into ITEM_GROUP_DETAILS values(2,'B');
    insert into ITEM_GROUP_DETAILS values(3,'C');
    insert into ITEM_GROUP_DETAILS values(4,'D');
    I want When Cursor Comes in to p1_item_group text Field Then Open a window with
    A
    B
    C
    D
    Item Group List.
    How can i do this.
    Thanks
    MANOJ KAUSHIK

    hi manoj,
    you can write onFocus event on your textbox from which you want to call a pop up window
    write a javascript function and call it onFocus event of textbox. In that function call a new popup page using window.open function.
    on that page you will have a values as you mentioned eg A,B,D etc.
    then user will select value from there and textbox will get that value.
    regards,
    Chetan

  • No Data when doing multiple selection of sub-brand in the cube

    Hey everyone.
    I am having a very strange situation.
    No Data when doing multiple selection cube.
    The thing is that the situation is created only in the transition between the servers, who have a different Build but both of them are SQL 2008R2 servers.
    The Build of one of them is 10.50.2789.0 and the other one is 10.50.4000.0 (SP2).
    The other properties of the cube are the same, it's Not possible to retrieve data from the cube on the server with the "SP2 when we  the slicing is at the level of sub-brand and removed even one item  mean we passed a multiple selection ,
    This is possible only if we connect the cube as Admin .
    While the server with the older "Build" the problem to perform the above operation when connected as a user not exist.
    What can cause this problem,and how can we fix it?
    thank's a lot.

    Hi Doron2Bull,
    According to your description, there are two servers in your scenario, and you cannot retrieve data from one of the cube, right? Are there any differences between the two cubes on different? You can import the database on the server into BIDS and explore
    Data on the fact table on the Data Source View to check if there are any data. If we can see the data when we do Explore Data on the fact table on the Data Source View (DSV), but when we browse the cube here is no data. Then there are many possibilities for
    this issue.
    On the cube's Dimension Usage, the relationship between this measure group and the dimension is not correctly defined.
    On the relational database, the dimensional key column on the fact table does not correspond to the key column on dimension table.
    There is a Default Member on another dimension, and there is no fact table row that satisfy this condition.
    If I have anything misunderstood, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

  • My DW CC latest version does not show me the text field option when trying to make a form!!! P

    So when I youtube the same version as mine it still show to other users the text field option but on my insert panel under forms it does not give me the option
    PLEASE HELP

    Hi Taatueeyy,
    As this sound weird issue, I'll suggest you to clear preferences and then try launching.
    How to clean preferences, please check the below link
    http://forums.adobe.com/thread/494811
    If this doesn't resolve your problem. please reveret.

  • How to make dropdown menu selection create more text fields?

    I did some searching and am unable to find an answer for this. It could be because I don't know the name of what I'm trying to do (I'm a total LiveCycle Designer noob). I tried to find guides but they seem to be for newer versions of Designer (I'm using 8.2) so I'll ask here:
    I'd like specific text fields to appear after a pulldown menu option is selected (empty fields w/ the captions already filled in). How can I go about doing this?
    Thanks in advance!

    The script I see when I click on the dropdown menu in question:
    form1.#subform[0].DropDownList4::initialize - (FormCalc, client)
    form1.#subform[0].DropDownList4::enter - (FormCalc, client)
    form1.#subform[0].DropDownList4::exit - (FormCalc, client)
    form1.#subform[0].DropDownList4::calculate - (FormCalc, client)
    form1.#subform[0].DropDownList4::validate - (FormCalc, client)
    form1.#subform[0].DropDownList4::preOpen - (FormCalc, client)
    form1.#subform[0].DropDownList4::postOpen - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseEnter - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseExit - (FormCalc, client)
    form1.#subform[0].DropDownList4::change - (FormCalc, client)
    form1.#subform[0].DropDownList4::full - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseUp - (FormCalc, client)
    form1.#subform[0].DropDownList4::mouseDown - (FormCalc, client)
    form1.#subform[0].DropDownList4::click - (FormCalc, client)
    form1.#subform[0].DropDownList4::preSave - (FormCalc, client)
    form1.#subform[0].DropDownList4::postSave - (FormCalc, client)
    form1.#subform[0].DropDownList4::prePrint - (FormCalc, client)
    form1.#subform[0].DropDownList4::postPrint - (FormCalc, client)
    form1.#subform[0].DropDownList4::preSubmit:form - (FormCalc, client)
    form1.#subform[0].DropDownList4::postSubmit:form - (FormCalc, client)
    form1.#subform[0].DropDownList4::docReady - (FormCalc, client)
    form1.#subform[0].DropDownList4::docClose - (FormCalc, client)
    form1.#subform[0].DropDownList4::ready:form - (FormCalc, client)
    form1.#subform[0].DropDownList4::ready:layout - (FormCalc, client)

  • Mandatory is checked when exiting radio groups, but not text fields?

    I have a form with many questions, and most all of them are required.   When tabbing out or otherwise exiting a radio group, the user gets warned if they did not select an item.  When tabbing out of a text field, nothing happens.  The user does get warned about the empty text fields if they try to submit the form.

    The following is a very basic/general script used to check/test if a field's value is null after the user exits out of the field. Note that it will not prevent the user from submitting the form, however, it seems you are covering that "validation" via other means (i.e. field property).
    if (this.rawValue == null){
    xfa.host.messageBox("Please enter a value in this field. It can't be left empty", "REQUIRED", 0, 0);
    else{

  • Word Mail Merge does not accurately import a Text field in Excel with more than 15 numbers

    Hi, I've looked through some of the discussions regarding importing numbers from excel into word mail merge. I'm having a problem. In Excel I have a column that includes numbers with more than 15 digits. In Excel, I have made this column a text format, so
    now in Excel those long numbers show up correctly. However, when doing a mail merge in Word, again the numbers past 14 digits change to zeros. I've read many help articles about this but am still not finding a solution. I even tried going the DDE route and
    that didn't do it either. I checked out this answer: http://www.techsupportforum.com/forums/f57/mail-merge-data-corruption-429351.html which was the most helpful, but again, DDE seemed to work for this person but not for me. I hope someone can offer a solution.
    I was hoping that I could do a picture switch, but that does not seem to be an option for this particular problem. I don't know why importing it in DDE format did not solve the problem. Thanks for any help!

    Wow! After all my searching and just after posting this I figured out the solution! I originally had { MERGEFIELD Field_Name \# # } But then I just removed everything after the field name, as is normal for any other text field, so not indicating it was
    a number, and now it shows up correctly even if the number (from a Text formatted field in Excel) is longer than 15 digits. Hope this helps anyone else who has a problem. I did not use DDE to solve this problem.

  • Pulldown selection creates new text field in a form

    I have a set of dynamic select menus that are built using Kaosweaver's http://www.kaosweaver.com/extensions/details.php?id=88
    Thanks to Kaosweaver, it works fine.  However, I was wondering how someone could have an extra text field popup in a form if certain values from a list/menu are selected.  In my case it would be from the 2nd half of the dependent drop down but I would assume the logic would be the same even if someone was not using a dynamic select but instead just a regular list/menu.
    Is this possible?  I am using Dreamweaver CS4.  Also if there is an alternate strategy to use in this situation then I would like to hear suggestions.  The basic premise is that a couple values in a select list would need an additional text field to be collected for the form.

    Thanks for replying!
    You know the weirdest thing just happened....I opened the PDF again to make sure it's the correct one to upload and have you take a look and as if by magic, I typed into the fields and now it doesn't disappear!!! I didn't restart any App, nor did I reboot my Mac....weird!!!!! Anyhow, I guess there is no longer an issue. I need a few minutes to finish the form and then I'll check to see if the issue comes up again. If it does, I will definitely upload the PDF and have you take a look at it.
    Thanks again!!

  • Dynamic Action in Apex - Select list to Text field

    Hi,
    I have two text items. Need to create dynamic action for the following,
    1. Order_type - Drop down values having CONSUMER & WHOLESALE.
    2. Order_number - Text field
    When a user selects CONSUMER, order number should automatically change to '1-' and user can enter only 14 characters (1-236666666666).
    When a user selects WHOLESALE, order number should automatically change to '2-' and user can enter only 12 characters (2-2155555555).
    Can someone please help to resolve this issue.
    Thanks in advance.

    Hi Gayathri,
    Gayathri Venugopal wrote:
    Thanks Kiran. Actually ,order number should be disabled. only on selection of  order type, order number should be enabled, how do I do that?can you please help
    I can do fire on page load and disable order number .But how do i enable it again on selection of order number
        Let's say '1-' is prefix for Order Number when Order Type is 'CONSUMER' and '2-' is the prefix for Order Number when Order Type is 'WHOLESALE'.
        So a solution to your issue would be:
    Go to Page Attributes -> CSS -> Inline CSS and add the following class:
    .item_disabled {
      cursor: default;
      opacity: 0.5;
      filter: alpha(opacity=50);
      pointer-events: none;
    Create three elements PXX_ORDERNUM_PRE, PXX_ORDERNUM_SUF(as text Items) and PXX_ORDER_NUMBER(as hidden. Set Value Protected -> No).
    Arrange the PXX_ORDERNUM_PRE and PXX_ORDERNUM_SUF on one row.
    Set the "HTML Form Element Attributes" for PXX_ORDERNUM_PRE to this:
    readonly="true"
    Set the "HTML Form Element CSS Classes" for PXX_ORDERNUM_PRE to this:
    item_disabled
        NOTE : The above two points are to make the PXX_ORDERNUM_PRE element readonly, because if we disable the element we can't assign it a value.
    On the change event of PXX_ORDER_TYPE select list create dynamic action to populate PXX_ORDERNUM_PRE (as mentioned earlier)
    var ordertype = $('#P11_ORDER_TYPE').val();
    if (ordertype === 'CONSUMER') {
      $('#P11_ORDER_NUMBER_PRE').val('1-');
    } else if (ordertype === 'WHOLESALE') {
      $('#P11_ORDER_NUMBER_PRE').val('2-');
    Create an on-submit computation to concatenate PXX_ORDERNUM_PRE and PXX_ORDERNUM_SUF into PXX_ORDER_NUMBER.
    Create validation on PXX_ORDERNUM_SUF, if PXX_ORDER_TYPE is 'CONSUMER' the length should be 12 characters, if 'WHOLESALE' the length should be 10 characters.(excluding 2 characters of prefix).
         So this covers the following:
    On change of Order Type, Order Number Prefix should be set.
    Order Number Prefix should be not able to be modified, but the rest of Order Number should be able to be entered by user.
    Order Number should be of specific length depending upon the Order Type.
         Hope this helps!
    Regards,
    Kiran

  • Report error when using combo box and one text field is empty

    I'm building an interactive pdf in adobe pro 9. My problem is the following: I have one text field where you can enter a numeric code and that is used to populate another text field when I choose an option on one combo box.For example: suppose I write the code 123 in the text field "A" and that the combo box has two options ("data" and "-"). When I select "-", another text field "B" is empty, while when I select "data" i populate the text field "B" using the code entered "A" with the text "data_123". In order to do this I use the standard javascript code in the Format>Custom tab of the combo-box.
    My questions are:
    - how can I prevent the pdf to proceed selecting an option in the combo box when the field "A" is empty?
    - how can I update the field "B" every time that I change the text in "A"? I found that the text is "B" is updated only when I press the selection in the combo box.

    You can set the combo box to read-only in the Validate event of the A field:
    // Validate script for text field
    getField("combo1").readonly = !event.value;
    To update the value of B when A changes, you can expand the script above to something like:
    // Validate script for text field
    var f1 = getField("combo1");
    var f2 = getField("B");
    // If there is an entry in the A field...
    if (event.value) {
        f1.readonly = false;  // Make sure the combo box is activated
        f2.value = f1.value === "-" ? "" : "fa.value + event.value;  // Update the value of field B
    } else {
        f1.readonly = true;  // Deactivate the combo box
        f2.value = f2.defaultValue;  // Reset field B
    You might also want to reset the combo box somewhere in there, but it's not clear to me when you would want to do that.

  • SD Text Determination - When does the system determine a text?

    Dear Expert,
    1. I would like to know when the system determines a header text in billing, for example,
    - when a billing is created
    - when a billing is changed
    etc.
    2. If a billing is already created, is it possible to have the system re-determined a text?
    Thank you for your help.

    Hi
    The text determination takes place essentially at the time of creation of billing doc. At the time of change in the billing doc one can manually go in the document and make the changes in the header text. I dont think there is an option like the one in pricing where in one can redetermine the prices.
    Regards
    Manas

  • CC 2014 (18.1.0) | Text Field editing causing crashes (Windows)

    Greetings;
    I've noticed lately that when saving files from CC 2014 to a CS6 format - and having those files edited on Mac, in either CS6 or CC - when re-opening those files text fields have been causing crashes on the Windows client. When that same file is opened and text fields are edited on the Mac client, a prompt will just appear stating "Cannot Edit text" - yet it still allows it.
    This has caused multiple issues for our teams as it has created files we're starting to refer to as "mine fields" - as working with the .ai file is like playing Russian roulette with text fields, you never know which one is going to crash the file.
    I would love to work with a team member from Adobe to help find a resolution to the problem, and I'm willing to provide any additional details that might aid in that process.
    Thanks!

    Hello Pureweb,
    Please upload the crashdumps on some file sharing website say Dropbox and share the link with us by sending a mail to "[email protected]". We will analyze the dump and will suggest you the workaround appropriately.
    In parallel, please check that you do not have any 3rd Party plugins installed in it. Please try to remove them one-by-one and see which one causes the crashes or do reverse i.e. remove all the 3rd party plugins. Or Uninstall Ai and check at following location:
    C:\Program Files\Adobe\Adobe Illustrator CC 2014
    Please verify that nothing is left at above location on uninstalling Ai. Then try a fresh install and see if Ai works.
    Also, verify that you have the updated Wacom drivers on your system. This might be an issue with the 3rd party program as well. One of the user who was having a similar issue reported on the Ai forum that one of the 3rd party Stahl's ImageWorx DTG RIP - a program for printing to a Direct To Garment printer was causing the issue. So, you may check if the similar thing is not happening in your case.
    Regards,
    Dhirendra

  • HT4623 When does my score show an increase I can't find the answer anywhere!

    When does bejeweled diamonds show an increase in my score I can't find any reference to this?

    Try contacting the developer of the app

  • Firefox 3.6.8 does not recognize subsequent mouseclicks - window loses focus

    After updating to firefox 3.6.8 on my macbook pro (OS X 10.4.11) Firefox fails to recognize subsequent mouse clicks. You can access the page initially, but then it seems to lose focus and become unresponsive to mouse clicks until you do something to break the cycle (clicking on desktop, minimizing and resizing window, etc). I reinstalled Adobe Flash update using full installer, since others have suggested that as a possible cause, but no joy. The browser window still does not recognize mouseclicks after an initially successful page load. You can tab to the next window (for example, if you want to enter something in search) but you cannot CLICK to enter the search window, nor can you click on links on the page, etc. It is totally unresponsive.
    == This happened ==
    Every time Firefox opened
    == I updated Firefox to the version just before 3.6.8 -- then I updated to 3.6.8 to see if that fixed it -- it's still broken

    This started happening to me yesterday. All plugins are disabled, didn't help. All plugins uninstalled, didn't help. Downgraded to SP3, didn't help. I've also noticed this happen in Thunderbird, though it seems OK now.
    Sadly I've had to start using IE8 :(

  • Can't select or edit text fields in LiveCycle Designer

    Greetings!
    I can't seem to figure out what I'm doing wrong. I need to edit the header text in this PDF, so I tried to do that in Acrobat PRO, which said: "This form cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to edit this form." I got a trial version of LiveCycle to see if I could edit it. But when I open the PDF in LiveCycle, I can only edit the input fields. All of the labels, all the text, headers is uneditable. I can't select it, I don't see it in the PDF Hierarchy either. Half of the Edit Menu is grayed out. Can't copy or anything else. Please help me figure out why this happens. If you need the original PDF, let me know, I can send it to you. Thank you.

    jasotastic81 wrote:
    What happens when you try to edit the header? From Acrobat, when you open the "Tools" sidebar, is "Edit Document Text" grayed out/disabled? If you highlight some of the text, then right-click and select "Repace Text", do you get a popup warning about the form being interactive and having special features?
    In LiveCycle, I can't even select the text. The select box just goes right over it, and if it goes over buttons or input boxes, it does select them, but not the text or even the labels for the input forms.
    In Acrobat, I can click on "Edit Text & Images", but it tells me I need to go to LiveCycle. I don't see a "Replace Text" on right-click. There's "Edit Text", but it just tells me to take it to LiveCycle.

Maybe you are looking for

  • Partner email address

    Hi, I get the popup/dialog when I double click on partner in sales document, there I fill name, email address and other details of the partner. I am able to capture partner name from FM SD_REPRESENTANT_GET_DATA by passing VBPA-PERNR but I'm unable to

  • Set PO item rejection indicator via IDoc ORDRSP?

    Dear experts, is it possible to set the rejection indicator in the purchase order item (EKPO-ABSKZ) via processing an order confirmation IDoc ORDRSP? I found nothing but SAP note 890812 where SAP proposes a workaround with manual setting of the rejec

  • Travel Expense Category

    Hi, Is there a way to add travel expense category? I tried searching for all the config nodes within Travel Management, but I couldn't find it. Thanks.

  • Quality of charts?

    Is it me, or has the image quality of 3D charts in Pages (I must check out Keynote) taken a step backward with the latest update? It's not something that I use a lot, but I remember being impressed only a couple of weeks ago when I did have a play ar

  • Iphone won't connect to a WLAN if there is no internet on this network.

    Hi, I recently discovered that my Iphone 4s 6.1.2 does not connect to wifi network if there is no internet. Unfortunately, because i often use my Macbook to create a wifi network and use iphone to remote computer in a certain area. i also Have a home