[AS] How to express "Selection" within Search drop down menu in Find/Change Dialogue?

I want to set the Search>Selection with AppleScript, how to express them in AS?
                    set selection of find grep preferences to true
isn't working...
help me

It works the other way around -- you don't 'select' the target for replacement, you act on an object. To change text in a document, you would use
app.activeDocument.changeText();
and similar for textFrames, stories, paragraphs, or -- indeed -- any selected text:
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.findWhat = 'e';
app.changeTextPreferences.changeTo = '!';
app.selection[0].changeText();
This is Javascript, by the way, but you might find it translates easily to AppleScript as the underlying model is the same.

Similar Messages

  • When installing acrobat XI pro the 'select a product' drop down menu does not include my product?

    when installing acrobat XI pro the 'select a product' drop down menu does not include my product?

    For future reference... if you have the trial version installed and plan to buy it after trying it out, there is no need to uninstall it.  It can be activted to full use with the serial number from your purchase.
    You should still be able to download and install the trial version and use your serial number to activate it.  For the direct download link to the trial below, be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site or else the download will not work properly.
    http://prodesigntools.com/adobe-acrobat-xi-pro-standard-reader-direct-download-links.html

  • How do I get the complete drop down Menu?

    How do I get the complete drop down menu when I CTRL-Mouse click a folder. I am getting MORE in the bottom, and I need it to be removed.
    Thanks

    The "More" area in the contextual menu's are bothering quite a few people. It's a feature of Leopard and can't be removed. There may be a hack available, but I'm waiting for some help from Apple...
    It reminds me of the Personalized menu's that Microsoft enables by default in some versions of MS Office for Windows. And it's a feature that I turn off immediately after installing Office for a client.
    Two steps forward, One Back.

  • How to capture selected value from drop down by index

    Dear friends,
    i want to capture the value of select value from drop down by index, for eg if  select air france, how to capture , could any one please let me know
    Thanks
    Vijaya

    Hi Vijaya,
    You can get the value of selected from drop down as below
    Check out the event handler method attached to Onselect event of the ui element drop down by index , if no event is associated, then create an event and attach to the drop down list
    Now you will be having the CONTEXT_ELEMENT in the WDEVENT parameter
                   data lo_element type ref to if_wd_context_element.
                   lo_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT').
    Now, you can get the static attribute value of selected  drop down value & let us say your drop down list values are populated from context node 'ND_DRP_DOWN'
                   data ls_data type wd_this->element_nd_drp_down.
                             lo_element->get_static_attributes(
                                       importing
                                       static_attributes = ls_data ).
    Hope this helps you.
    Regards,
    Rama

  • Form2mail how do I set up the form to sent to a recipient selected from a drop-down menu?

    I am trying to configure dreamweaver form2mail to be able to send the information submitted to individual employees.  I would like the form to be set up where as you choose the recipient form a drop down menu and the only that recipient would receive the information collected on the form.  I can't seem to find any information on this.  I can only find info on sending to multiple recipients at the same time.  I only want the recipient that is selected to receive the form information.
    Alternatively, can anyone recommend a low cost or FREE form to mail system.
    Thanks in advance for your assistance!

    Jim, That is exactly what I need.  I'm using Form2Mail the Dreamweaver extension for Adobe Dreamweaver.  It only gives me the option to send to one email address or cc to multiple not individual sends.
    Here is the html
    <form action="/HDWForm2Mail/Form2Mail.php" method="post" enctype="multipart/form-data" name="form1" id="form1" accept-charset="iso-8859-1">
            <p>
              <label for="message"></label>
              <textarea name="message2" id="message" cols="50" rows="5"></textarea>
            </p>
            <table width="429">
              <tr>
                <td><strong>Recipient:</strong></td>
                <td><label for="recipient"></label>
                  <select name="recipient" id="recipient">
                    <option value="[email protected]">Mr. Person 1</option>
                    <option value="[email protected]">Mr. Person 2</option>
                    <option value="[email protected]">Mr. Person 3</option>
                  </select></td>
              </tr>
              <tr>
                <td><strong>Your Email Address:</strong></td>
                <td><label for="email"></label>
                  <input type="text" name="email" id="email" /></td>
              </tr>
              <tr>
                <td><strong>Attachment:</strong></td>
                <td><label for="file"></label>
                  <input type="file" name="file" id="file" /></td>
              </tr>
              <tr>
                <td colspan="2"><strong>To Submit your email, click the SEND button:
                  <input name="send" type="submit" id="send" onclick="MM_validateForm('email','','RisEmail','message','','R');return document.MM_returnValue" value="Send" />
                </strong></td>
              </tr>
            </table>
            <input type="hidden" name="hdwemail" id="hdwemail" value="lisa+email.com" />
            <input type="hidden" name="hdwok" id="hdwok" value="http://ricochec.com/thank-you.html" />
            <input type="hidden" name="hdwnook" id="hdwnook" value="http://ricoche.com/error.html" />
          </form>

  • HT1918 Trying to make make account changes to my itunes account.  Receive error message regarding province "enter at most 3 letters" when the only option I have is to select from a drop down menu.  Cannot make changes to my account.  How do I get this fix

    As you can tell, this is my first post
    I am attempting to make changes to my itunes account, but when I hit done, an error message "enter at most 3 letters or numbers for province" appears.  I have not attempted to make any modificaitons to this field.  The only options I have for data in this field are picked from a drop down menu.  I have no idea why this msg is appearing.  Any ideas on why it is showing up?  Thanks.

    There seems to be at least one package that can't be located. See the message below from you log file
    Requesting locations synchronously for content SDC00003.2
    with priority Medium    ContentAccess    4/3/2015 1:30:51 PM    2644 (0x0A54)
    The number of discovered DPs(including Branch DP and Multicast) is 0    ContentAccess    4/3/2015 1:30:51 PM    2644 (0x0A54)
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • How do you Make an Interactive Drop Down Menu in Adobe Acrobat Pro That Uses Hyperlinks?

    Hi first off let me point out and apologise in advance for my ignorance and possibly my misuse of the correct terms, I'm new to this.
    Anyway here goes, my best attempt to try and explain myself. Using Adobe Acrobat Pro I am trying to create a drop down menu that lists a set of documents. Once you click an item in the drop down menu it then opens up the corresponding document. So far example the Menu reads "Documents" and below it there is three options "Dogs" "Cats" "Hotdogs" when you click on "Hotdogs" you open up the document for hotdogs etc.
    I have actually done it once before using Javascript and a combo box and I think basically you buried the links to documents in a series of bookmarks, the Javascript code then was basically a shortcut to activate those bookmarks.
    So in short, could someone please tell me the code I would need to make this happen? I have looked extensively for the right forum post to see if my question has already been covered but I couldn't find anything and I possibly could have been using the wrong search terms.
    Please ask me to clarify anything to help you understand what it is I'm asking.
    Thank you in advance for all your help.
    Elliot.

    Hey I think I found a solution to my own problem I made an "OK Button" right click>properties>actions>select action>run a javascript>add - and executed this code:
    function searchBookmarks(bkm, nLevel, bkmName)
      if ( bkm.name == bkmName ) return bkm;
      if (bkm.children != null) {
      for (var i = 0; i < bkm.children.length; i++)
      var bkMark = searchBookmarks(
      bkm.children[i], nLevel + 1, bkmName);
      if ( bkMark != null ) break;
      return bkMark;
      return null;
    function bookmarksAsPopUp(bookmarks)
       if(bookmarks && bookmarks.children)
         for(var i=0;i<bookmarks.children.length;i++)
      bookmarkName = bookmarks.children[i].name.replace(/\s{2,}/g,' ');
      while (bookmarkName.indexOf(String.fromCharCode(11)) > 0)
      bookmarkName = bookmarkName.substring(0,bookmarkName.indexOf(String.fromCharCode(11))) +" "+ bookmarkName.substring(bookmarkName.indexOf(String.fromCharCode(11))+1)
      popUp = popUp+"{cName: '"+bookmarkName+"', cReturn: '"+bookmarkName+"'" ;
      if(bookmarks.children[i].children)
              popUp = popUp + ", oSubMenu: [";
       bookmarksAsPopUp(bookmarks.children[i]);
       popUp = popUp + "]";
      popUp = popUp+"}";
      if (i != bookmarks.children.length-1)
      popUp = popUp+", "
       return popUp;
    var popUp = "";
    bookmarksAsPopUp(this.bookmarkRoot);
    var cChoice = eval("app.popUpMenuEx(" + popUp + ")" ) ;
    bkm = searchBookmarks(this.bookmarkRoot, 0, cChoice );
    if ( bkm != null ) bkm.execute();
    Then you can just add your own bookmarks and they populate the pop-up menu automatically (including the hierarchy sub menu structure, you nest bookmarks within a main book mark.) which is a more efficient way than the one I used before.
    I take no credit for this by the way my source is here PDF Bookmarks as a PopUp Menu | The Practical:PDF Blog
    I hope this helps anybody looking to do the same.

  • How do I remove the autocomplete drop-down menu from textboxs, not the awesome bar?

    I like having the drop-down menu from the url, but the autocomplete option for textboxs within like when I type my username and it pops up with all of the ones that has been used on that site are really annoying. How do I get rid for the latter? I didn't have this before I upgraded to Firefox, and now I can't get rid of it. Fyi, I'm rather tech inept, don't use complicated comp sci words please!

    You can use History > 'Clear Recent History" to clear already saved form data.
    *https://support.mozilla.org/kb/Clear+Recent+History
    Use these steps to remove saved (form) data from a drop down list:
    #Click the (empty) input field on the web page to open the drop down list
    #Highlight an entry in the drop down list
    #Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    See also "Prevent Firefox from automatically completing URLs":
    *https://support.mozilla.org/kb/search-your-bookmarks-history-and-tabs-awesome-bar

  • The "Play Next" function in the search drop down menu does not work

    I don't know if anyone else has had this problem but my search drop down box is no longer working. It does show results but I cannont select them of add the songs to Play next on the playlist. I have iTunes 11.1.3.8
    Thanks for your time

    Pat,
    Your menus look fine on my system, too. It is possible that your user is working on a system with javascript turned off, either on her own computer or, if she is in a company, turned off by the network administrator. Ask her how she is viewing your website...laptop, desktop, smartphone, tablet, etc., to help you pinpoint what your solution will be.
         If her javascript is turned off (not to be turned on...), one strategy around this is to create pages linked to your top level menu items. On those pages, you can make text links (not dropdowns) to the menu items that show on the drop-downs. This could be paired with the next idea, as a sort of belt-and-suspenders solution.
        A less obtrusive way: Add a secondary, substitute text menu that only appears when javascript is turned off by using <noscript> </noscript> tags around the secondary menus.
         Be wary of solutions that require you to tell different users different things.
    Beth

  • Populate a table field from selection made from drop down menu

    Hello all,
    I'm having a bit of head scratching problem that i just can't get my head around. I'm using Dreamweaver CS4
    and phpmyadmin for my site.
    I have a form that inputs a record into a table in my database.
    The form is a user picking a fantasy sports team. A user selects a player from a drop down menu.
    The players name is got from a recordset that accesses the player database, with the values coming
    from the id field and the values from the name, so a user selects a player by there name and not
    there unique id value. The code for this is as follows:
    <tr valign="baseline">
    <td nowrap="nowrap" align="right">GoalKeeper:</td>
    <td><select name="gkid_team">
    <?php
    do {
    ?>
    <option value="<?php echo $row_rs_pt_gk['gkid_gk']?>" ><?php echo $row_rs_pt_gk['gkname_gk']?></option>
    <?php
    } while ($row_rs_pt_gk = mysql_fetch_assoc($rs_pt_gk));
    ?>
    </select></td>
    What i'm trying to achieve is that when a user selects a player from the drop down menu, their price is displayed in the table cell next to the menu. The value is held in the same table of database as the names and id values. I need to do it so the page doesn't need to be refreshed so i assume i need to use some sort of javascript, php and/or maybe ajax. However with java and ajax i have very little or no experience so i'm not really sure what i'm doing. I've been on numerous forums, looked in text books and have been searching the net for hours but i can't seem to solve this problem.
    Any help or advice would really be appreciated as i just can't seem to get my head around it,
    Thanks,
    pb1uk

    can this be done??? thanks in advance annieYes.
    One way of doing it is submitting the form on change of the selected value and fetch back the query results. Have a servlet invoke the method and set the results in the request.
    Another way (not recommended) is to fetch the results corresponding to all the values in the dropdown and have it in the session. The latter solution would obviously be slow.

  • How to store session variables in drop down menu (and radiobutton/checkbox)

    How am I going to store session variables in the drop down menu, radio button, checkbox.
    In text area, I do like below:
    <input type="text" name="membershipno" size="5" maxlength="50" value="<%=((session.getValue("Smembershipno")!=null)?session.getValue("Smembershipno"):"") %>">
    Any idea?

    Hi jeffkyt79, I could have answered this on Expert's Exchange. But I suppose it would be hard as the site is down right now :-(
    Here is sample code for the form:
    <form action="" name="form1">
    <input type="text" name="field1" value="<%
    if (session.getAttribute("field1")!=null) {
    out.println(session.getAttribute("field1"));
    } %>"><br>
    <input type="text" name="field2" value="<%
    if (session.getAttribute("field2")!=null) {
    out.println(session.getAttribute("field2"));
    } %>"><br>
    <input type="text" name="field3" value="<%
    if (session.getAttribute("field3")!=null) {
    out.println(session.getAttribute("field3"));
    } %>"><br>
    <input type="checkbox" name="check1" value="tick"<% if (session.getAttribute("check1")!=null) out.println(" checked"); %>><br>
    <% String selRadio=(session.getAttribute("r1")!=null)?(String)session.getAttribute("r1"):""; %>
    <input type="radio" name="r1" value="yesdot"<% if (selRadio.equals("yesdot")) {out.println(" checked");} %>>
    <input type="radio" name="r1" value="nodot"<% if (selRadio.equals("nodot")) {out.println(" checked");} %>><br>
    <select name="sel">
    <% String selOption=(session.getAttribute("sel")!=null)?(String)session.getAttribute("sel"):""; %>
    <option value="option1"<% if (selOption.equals("option1")) {out.println(" selected");} %>>OPTION 1
    <option value="option2"<% if (selOption.equals("option2")) {out.println(" selected");} %>>OPTION 2
         <option value="option3"<% if (selOption.equals("option3")) {out.println(" selected");} %>>OPTION 3
    </select>
    </form>
    And here's the revised javascript function to put in form1.jsp:
    function newWin() {
    f=document.form1.elements;
    str="?";
    mypage="test2.jsp"; // I've hardcoded the url for testing but you can fix this
    for (i=0;i<f.length;i++) {
    if (f.type=="text") {
    if (f[i].value!="") {
    str=str+f[i].name+"="+f[i].value+"&";
              continue;
         if (f[i].type=="checkbox"||f[i].type=="radio") {
         if (f[i].checked) {
         str=str+f[i].name+"="+f[i].value+"&";
         if (f[i].type=="select-one") {
         str=str+f[i].name+"="+f[i].options[f[i].selectedIndex].value+"&";
    str=str.substr(0,str.length-1);
    // now open the popup
    mypage+=str;
    win=window.open(mypage, 'myname'); // I've left out the winprops but you can fix this
    If you can ask any more questions, could you do it on EE (if possible!!). I know this works because I've tested it.

  • How to show custom descriptions in drop down menu?

    We are designing 3D pie chart in BAM report and trying to incorporate drop down menu at top.
    The drop down menu is currently displaying 2 fields of associated dataobject - "TaskStatus" and "TaskUser".
    But We would like to have "By status", "By user" insted of "TaskStatus" and "TaskUser".
    Can anyone help us achieving this?
    Thanks.
    Edited by: user13027638 on Oct 12, 2010 9:00 AM
    Edited by: user13027638 on Oct 12, 2010 10:46 AM

    I'm assuming you are using Field type prompts and these 2 fields (TaskStatus and TaskUser) are fields to group by for the pie chart.
    If that is the case, the only workaround I see is to create 2 calculated columns in the dataobject, using Architect and not Active Studio.
    For example:
    New field name: By status
    Calculated expression: TrimEnd(TaskStatus)
    New field name: By user
    Calculated expression: TrimEnd(TaskUser)
    Then edit your prompt so that the 2 new calculated columns are the selection options for the drop down.

  • How do I turn off the drop-down menu on the back button?

    I use a laptop and my hands aren't too dextrous. Every time I click the "back" button I get the drop down menu, which means I then need to move my hand back to the pad (slowly!) move the pointer, and try again. It can take me several attempts to go back one site now!
    I have searched for hours to find out how to turn this drop down menu off, to no avail, and even looked through all the settings in about:config in an attempt to find a way around this. It seriously impacts my ability to use my laptop on the web now, so if anyone can please come up with a way to get back to the old back button, with no menu when my slow old finger cannot move fast enough to get off the button, I would be very grateful.

    You can use that list and open the previous tab just above the one that appears bold and has a bullet.
    The current active entry has a bullet in front of it.<br />
    If you hover an entry in the tab session history list with the mouse then you see an arrow at the left side pointing left (Back) or right (Forward) to show the direction.<br />
    You can left click an item to open it in the current tab or middle-click or Ctrl left-click an entry in that list to open that link in new tab, just like you can with other links.<br />

  • I need to define the acceptable answers in a text field by what is selected in a drop down menu.

    Hello please help.
    First, I am new to form creation in Acrobat XI Pro so please be patient with me.
    I am creating an electronic invoice with the client list in a drop down menu. When the service person selects the client, the pricing fields need to have limitations set on them.
    If I can figure out the script to set it for one selection from the drop menu, I can figure out the others.
    Example of the three important scripts:
    If GCO is selected in the drop menu then 80 and 0 are acceptable in the hook up field.
    If GCO is selected in the drop menu then mileage = TM -5. If TM - 5 is < 0 then Mileage only = 0. If TM -5 > 0 then (TM - 5) * 3.5
    If GCO is selected in the drop menu then Fuel Charge = 0
    Any help would be great. Thanks!

    Can you please provide a screenshot showing the issue? I have no idea what's happening to you, what with all the caps and all.

  • How to get "tones" tab  in drop down menu

    how to get "tones" tab  in drop down menu

    I assume that you are referring to the categories on your iTunes library (?), if you are then go into Edit > Preferences and on the General tab make sure that Tones is ticked
    You can also enable the left-hand sidebar on iTunes 11 on a PC via control-S, which then allows you to view the sections of your library (those enabled in Preferences) via that sidebar, and if you have iOS devices they will also show on that sidebar when connected.

Maybe you are looking for

  • Trying to link a chart from Numbers to Pages

    "To update a linked chart in Keynote or Pages: Make sure that the Numbers spreadsheet containing the updated chart is saved. In Keynote or Pages, select the chart and click the Refresh button." Where is the Refresh button, please? It may be really ob

  • I have a problem with lion.  My MacBook pro froze and now I get a gray folder with a question mark.

    I recently upgraded to lion but my screen just froze. I had to shut it down by holding the power button down. Every time I tried to start it again I got a grey folder with a question mark and couldn't do a thing. I' ve been told to restore snow leopa

  • IE doesn't recognise Sun JVM..

    I stuffed up my IE 6.0 installation .... I can't recall what I changed but the browser doesn't recognise my JVM anymore. Applets won't download...... I did all the obvious as explained on the relevant Sun and MS websites, such as: - reinstalled JVM 1

  • VMWare+Win7: Control+LeftClick=Control+Command+LeftClick

    I'm running VMWare Fusion 3.0.1, Windows 7 x64 bit and MS Office 2007 in the Virtual Machine. In Windows Explorer, I would normally select multiple items by clicking on one item, then holding down CTRL+leftClick to select a 2nd (or 3rd etc) item. Sim

  • AIFF metadata problem

    Hello, When editing metadata for my ALAC/AIFF files, I use the Album Artist Sort Order field (i.e., Sort Album Artist in iTunes) so that artists like 10,000 Maniacs will alphabetize to "T" (i.e., Ten Thousand Maniacs). While I have had no problem wit