Script formatting

Hi all , i got a problem in script currency format. in my user settings i am getting currency format as 1,000.00.This is what is required by the user. but in the user logon the setting is being displayed as 1.000,00.can anyone give how this is happening.

Hi ,
Step 1 : Go to SE11
Step 2 : Open Table T005X  (Countries - decimal point and date format (SET COUNTRY))
Step 3 : Go to utilities >>> table content>>>> create entries
Step 4 : Enter The following and save :
           a) LAND - IN
           b) XDEZP - X
           c) DATFM - 1
I hope your problem will be solved .
Regards
Jamal Ahmad Noorani

Similar Messages

  • Script format question: Title over

    Question: In the script format when using a "TITLE OVER" is it a General, Shot or an Action format. Appreciate any input here, thanks.
    Rich

    It a good question, as it is worth thinking how the elements in our screenplays will be used down the line. So for example, although the formatting of making it a Shot certainly would put TITLE OVER in caps, and making it Action would allow the paragraph it is in to be lower and upper case, it better to think how the elements may be used as metadata when you move on from writing, rather than how they look on the page. The tags and elements will be used by others in many different ways as the script moves through the planning and shooting steps.
    Shot elements will be processed by an application like Adobe OnLocation which will create a placeholder shot for it for the shoot. That could be theoretically correct in this case as the title will need to be shot. However to answer your question I think General is the appropriate element, just as the Title and Author are General on the titlle page.
    Are there other elements of the screenplay that will need to be tagged in special ways so they are available as the right kind of metadata later in the production process?

  • Need script formating

    I have this script to find all tablespace usage details. I want to format the values like 2 digits after decimal and other number formats. Can anyone plss modify it, so that it appears in standard number format
    select substr(A.tablespace_name,1,16) "Tablespace",
    MAX(A.contents) "Type",
    MAX(A.status) "Status",
    MAX(A.initial_extent)/1024 "Initial extent(Kb)",
    MAX(A.next_extent)/1024 "Next extent(Kb)",
    MAX(A.max_extents) "Max extents",
    MAX(A.pct_increase) "Pct_increase",
    (SUM(B.BYTES)*COUNT(DISTINCT B.FILE_ID)/COUNT(B.FILE_ID)/1024/1024)-(ROUND(SUM(C.BYTES)/1024/1024/COUNT(DISTINCT B.FILE_ID))) "USED SIZE(Mb)",
    (SUM(B.BLOCKS)*COUNT(DISTINCT B.FILE_ID)/COUNT(B.FILE_ID))-(SUM(C.BLOCKS)/COUNT(DISTINCT B.FILE_ID)) "USED BLOCKS",
    TO_CHAR(100-(SUM(C.BLOCKS)*100*COUNT(B.FILE_ID)/(SUM(B.BLOCKS)*COUNT(DISTINCT B.FILE_ID)))/COUNT(DISTINCT B.FILE_ID),'999.99')||'%' "USED USAGE",
    ROUND(SUM(C.BYTES)/1024/1024/COUNT(DISTINCT B.FILE_ID)) "FREE SIZE(MB)",
    SUM(C.BLOCKS)/COUNT(DISTINCT B.FILE_ID) "FREE BLOCKS",
    TO_CHAR((SUM(C.BLOCKS)*100*COUNT(B.FILE_ID)/(SUM(B.BLOCKS)*COUNT(DISTINCT B.FILE_ID)))/COUNT(DISTINCT B.FILE_ID),'999.99')||'%' "FREE USAGE",
    SUM(B.BYTES)*COUNT(DISTINCT B.FILE_ID)/COUNT(B.FILE_ID)/1024/1024 "TOTAL SIZE(Mb)",
    SUM(B.BLOCKS)*COUNT(DISTINCT B.FILE_ID)/COUNT(B.FILE_ID) "TOTAL BLOCKS"
    from dba_tablespaces A,
    DBA_DATA_FILES B,
    DBA_FREE_SPACE C
    WHERE A.TABLESPACE_NAME=B.TABLESPACE_NAME
    AND A.TABLESPACE_NAME=C.TABLESPACE_NAME
    GROUP BY A.TABLESPACE_NAME
    order by 1;

    It looks OK to me.
    SELECT Substr(a.tablespace_name, 1, 16)                                                                                                                  "Tablespace",
           MAX(a.contents)                                                                                                                                   "Type",
           MAX(a.status)                                                                                                                                     "Status",
           MAX(a.initial_extent) / 1024                                                                                                                      "Initial extent(Kb)",
           MAX(a.next_extent) / 1024                                                                                                                         "Next extent(Kb)",
           MAX(a.max_extents)                                                                                                                                "Max extents",
           MAX(a.pct_increase)                                                                                                                               "Pct_increase",
           ( SUM(b.bytes) * COUNT(DISTINCT b.file_id) / COUNT(b.file_id) / 1024 / 1024 ) - ( Round(SUM(c.bytes) / 1024 / 1024 / COUNT(DISTINCT b.file_id)) ) "USED SIZE(Mb)",
           ( SUM(b.blocks) * COUNT(DISTINCT b.file_id) / COUNT(b.file_id) ) - ( SUM(c.blocks) / COUNT(DISTINCT b.file_id) )                                  "USED BLOCKS",
           To_char(100 - ( SUM(c.blocks) * 100 * COUNT(b.file_id) / ( SUM(b.blocks) * COUNT(DISTINCT b.file_id) ) ) / COUNT(DISTINCT b.file_id), '999.99')
           ||'%'                                                                                                                                             "USED USAGE",
           Round(SUM(c.bytes) / 1024 / 1024 / COUNT(DISTINCT b.file_id))                                                                                     "FREE SIZE(MB)",
           SUM(c.blocks) / COUNT(DISTINCT b.file_id)                                                                                                         "FREE BLOCKS",
           To_char(( SUM(c.blocks) * 100 * COUNT(b.file_id) / ( SUM(b.blocks) * COUNT(DISTINCT b.file_id) ) ) / COUNT(DISTINCT b.file_id), '999.99')
           ||'%'                                                                                                                                             "FREE USAGE",
           SUM(b.bytes) * COUNT(DISTINCT b.file_id) / COUNT(b.file_id) / 1024 / 1024                                                                         "TOTAL SIZE(Mb)",
           SUM(b.blocks) * COUNT(DISTINCT b.file_id) / COUNT(b.file_id)                                                                                      "TOTAL BLOCKS"
    FROM   dba_tablespaces a,
           dba_data_files b,
           dba_free_space c
    WHERE  a.tablespace_name = b.tablespace_name
           AND a.tablespace_name = c.tablespace_name
    GROUP  BY a.tablespace_name
    ORDER  BY 1

  • Problem in script format

    hi,
    i am having problem in script , the problem is
    s.no|    descriptio                           |   UOM                      |          Qty                   |             Rate           |          AMT            |
    01     aaaaaaaaaaaaaaaaaaaaa       11.01                             17.28                     170000000               2400000
    this is fine but when the 1st column is shot other also get affected.
    s.no|    descriptio                           |   UOM                      |          Qty                   |             Rate           |          AMT            |
    01     aa       11.01                             17.28                     170000000               2400000
    and i cannot draw vertical line here .what is the solution for this.
    Edited by: jaihind on Mar 6, 2010 12:21 PM
    hi,
    problem is if the description field is long then other coloum are comming fine but if description caloumn is small then other also get affected and its comes towards left .
    Edited by: jaihind on Mar 6, 2010 12:22 PM

    Hi
    For this u can resolve by using the Formatting characters ......
    This is your layout ..
    s.no| descriptio | UOM | Qty | Rate | AMT |
    01 aaaaaaaaaaaaaaaaaaaaa 11.01 17.28 170000000 2400000
    Assume that   your field names like  
    s.no      |  description  |    UOM      |    Qty      |      Rate      |         AMT       |
    &sno&      &desc&         &UOM&       &Qty&         &rate&         &AMT&
    asseme that  length of these fields(in characters) as per your requirement will be ...
    s.no      |  description  |    UOM      |    Qty      |      Rate      |         AMT       |
    8                  15                  5                8                 10                  15
    For these use formatting characters    like   ...
                  s.no      |  description      |    UOM      |    Qty      |      Rate      |         AMT       |
    1stLine  &sno& ,,  &desc+0(15)&,,  &UOM&       &Qty&        &rate&         &AMT&
    2ndline                 &desc+15(15)&     
    &desc+0(15)&  -  it will print  first 15 characters from 0th position
    &desc+15(15)&- From 15th position it will print 15 characters ..
    Hope you resolve your issue
    Let me know if Any concerns,.......

  • I need to import a word doc into the film script format

    I have a script saved in a word doc and i want edit it on adobe story. Ho would i do that?

    Hi,
    in Story Projects view, you can click the 'Import' button and choose the word document and then choose Film/TV template as appropriate to import. If your word document has been properly formatted (e..g, Scene Heading is of the format INT. SET NAME etc.), Adobe Story would be able to parse the elements correctly and import them without issues.
    Thanks
    Aurobinda

  • Date format in script format

    hi,
    how to change the date format in script form.
    thanks.

    try like this
    /: SET DATE MASK = 'Foster City, MM.DD.YY'
    &DATE& -> Foster City, 03.01.97
    &DATE(Z)& -> Foster City, 3.1.97
    /: SET DATE MASK = 'MMMM DD, YYYY'
    &DATE& -> March 01, 1997
    regards
    Prabhu

  • Needed Urgently: Test Script Format

    Hi Gurus,
    I need to prepare Test Scripts for my Project. Can anyone send me the Format to prepare Test Scripts.
    I would appreciate, if someone could send me the Format to my Email ID: [email protected]
    Reward Points will awarded.
    Thanks in advance
    Uday

    Hey Udaya,
    for which module you need help on test scripts.
    Plus test scrips are generally customer specified requirement, You have to prepare it your self considering the scenerios for their business requirements.
    like if you have businees process like shift allowance, You will prepare stepby step process on how to set up and what all activities required to get the desired result .
    #ly for payroll, how salary is calculated based on monthly, bi monthly or prorated cases.
    regards

  • SAP Script - Formatting Line

    Hi Experts,
    In a classical ABAP report we make use of
    write:/20 'Text'.
    to print text from the 20th column. Can we do something similar in a SAP Script Page Window. I have a box and lines drawn. Now I want the text to start exactly after the vertical line(column). Is there a way to do in SAP Script.
    Regards
    Abdullah.

    You can use Paragraph format in SE71 Transaction,
    here you can able to see Tab position ,give first tab would be 20 char alignment would be Left or right.
    If you need design the box ,then i am giving simple example below :
    POSITION WINDOW                               
    BOX WIDTH '74' CH HEIGHT '36.5' LN FRAME 10 TW
    POSITION WINDOW                               
    BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW INTENSITY 10  
    POSITION XORIGIN '0.9' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '3.0' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '5.0' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '7.2' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '8.3' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '9.5' CM                                   
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '12.0' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '14.5' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '17.0' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    POSITION XORIGIN '19.7' CM                                  
    BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW                 
    Thanks
    Seshu

  • Active responsibilities program with post script format not working

    Hi All,
    Env.   ERP
    11.5.10.2, DB: 9.2  OS: Solaris 9
    Active responsilties report with format post script is completing with normal but when I view output for the request it doesn't contain any data its blank.....
    any suggestion will be appreciated
    Regards

    Hi Reshma,
    This is because the field v_tax1 is of currency type, which has a length of 16 (13,2). This is getting displayed right-aligned by default, and the leading spaces are always appearing.
    You will have to deduct the no. of spaces that gets printed by writing v_tax1(8.2) or v_tax1(9.2) etc. First you should know what can be the maximum possible figure for this.
    Another way-out is to convert this to a character variable. delete leading spaces from the character variable (functions: shift left deleting leading space, or condense) and then printing the variable right-aligned / left-aligned.

  • Problem with sap script formatting?

    hi,
        can anyone please tell me how do we reduce the fony size in sap script, actually i have used it with character format by giving font name as helve and size as 6 pt but its not reflecting , what can be the problem? or my procedure is wrong.please help me out

    ok character format is the wrong thing
    just use paragraph formats for that.
    if you are insisting to use character formats you need to use the syntax as well.
    e.G. if you have defined yourself a characterformat lets say 't' like tiny, thnen the syntax in your form will be:
    SL | <t>you text</>.
    if you are using paragraph formats it will be
    SL | your text
    but now you should edit the font properties of that paragraph format

  • How can I get "script" format for signing forms and paperwork, not just printing my name?

    I would like to have a "script" font available when I sign e-mail forms or create forms.

    Hi mfeehley, most online editors provide a variety of fonts you can use when composing your message or signature. If the font you want to use is not included, perhaps you can create a small image (e.g., in a Word processor, then use Alt+PrintScreen to capture it to the clipboard as an image, then paste into Paintbrush and trim to a good side) and insert that into your signature instead. The mail site or form program help should explain how to insert images.

  • SAP Script Formatting Dec Values

    Hello All,
    I am printing some decimal data in my sap script(10,200.30).However this depends on user specific settings.If the user specific setting is changed (10.200,30) value appears different.Is there any command in Script through which i can control just as date (SET DATE MASK).
    Please let me know.
    Thanks in advcance.
    Regards
    Amruta

    Hello Svetlin,
    Thanks for the reply.
    I have kept my user setting to 1.234,5.I have checked T005X table.The Decimal notation is 1,234.5 for the country which i have selected.
    I have used the command .
    However even after that i am still getting the same output(1.23,5)Is there any thing additional that needs to be done?
    Regards
    Amruta

  • Video/Audio 2-Column Scripting Format

    How can I create 2 independent vertical columns on a blank page, so that I can script video instructions inside the LEFT column and dialogue inside the RIGHT column? I'll need a little bit of buffer space in-between the columns. I'm trying to create a scripting template for TV and event production. Some of my scripts run as long as 62 pages, so the 2 columns will need to link independently of each other through page after page. Thank you very much.

    Carissa,
    I tried this in Pages 3.0.1, but I think it will work in Pages 2.
    To create the script layout you desire, try this. First, type your audio in a word processor. Then copy it. In a new WP document create a table set as Inline (Moves with text). In the Table Inspector set it for ONE row and THREE columns and Automatically resize to fit content. Drag column three’s left border to the left to make the 2nd column about a half inch wide. In the header type Video and Audio in the 1st and 3rd columns respectively. Now paste your script into the third column. Each paragraph will create a separate cell and the table will flow to as many pages as necessary.
    Now you can go back and type your video instructions into column one. Your video and audio cells will stay aligned should you need to edit. Column two will be a space between columns 1 and 3.
    When done, go to the Inspector and hide the grid.
    I think this should export to Word okay. I don't have Word so I can't test it.
    Walt
    Message was edited by: Walt K

  • Columns - script format

    HELP... i am trying to build a template that i can use to write TV scripts. I need it to have 3 columns... which I did with ease... Here is the problem...
    when i type down to the bottom of the first column... I need the text that i am typing to go continue to the TOP of the FIRST column on the NEXT page. All it can do now is go to the top of the second column on the first page. There has got to be a way to do this!
    Help.

    No need to link tables. Set them as Inline (Fixed on page) and they will continue, except a single cell will not split over two pages. Make each paragraph a new cell and the text in your three columns will stay aligned with each other. Add an extra column in between your text columns and set them for something like a half inch to serve as gutters between the text.
    Btw, please lose the caps. No need to shout.
    Walt

  • Newbie question on FindChangeByList script (REVISED)

    Hi...I'm using FindChangeByList (the Javascript version) and I have a question. The default behavior of this script seems to be the following:
    1. If text is selected, then run the script on the text
    2. Otherwise, run the script on the entire document.
    By looking at the script (which I'm pasting below), I can see that the script is intentionally set up this way. I'm totally new to scritping, but by reading the remarks I think these are the relevent lines:
    //Something was selected, but it wasn't a text object, so search the document.
         myFindChangeByList(app.documents.item(0));
    and
    //Nothing was selected, so simply search the document.
       myFindChangeByList(app.documents.item(0));
    MY GOAL:  I want to prevent the script running on my entire document by mistake if I mistakenly don't have the Text tool active.
    I have a feeling that would be very easy to write, but since I know nothing about scripting, I appeal to this forum. Thanks.
    If you need it, the entire script is pasted below. (It's also a standard sample script built into CS4).
    //FindChangeByList.jsx
    //An InDesign CS4 JavaScript
    @@@BUILDINFO@@@ "FindChangeByList.jsx" 2.0.0.0 10-January-2008
    //Loads a series of tab-delimited strings from a text file, then performs a series
    //of find/change operations based on the strings read from the file.
    //The data file is tab-delimited, with carriage returns separating records.
    //The format of each record in the file is:
    //findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
    //Where:
    //<tab> is a tab character
    //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
    //findProperties is a properties record (as text) of the find preferences.
    //changeProperties is a properties record (as text) of the change preferences.
    //findChangeOptions is a properties record (as text) of the find/change options.
    //description is a description of the find/change operation
    //Very simple example:
    //text {findWhat:"--"} {changeTo:"^_"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double dashes and replace with an em dash.
    //More complex example:
    //text {findWhat:"^9^9.^9^9"} {appliedCharacterStyle:"price"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find $10.00 to $99.99 and apply the character style "price".
    //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
    //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
    //as shown in the example below:
    //{findWhat:"\\s+"}
    //For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    //or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
    main();
    function main(){
    var myObject;
    //Make certain that user interaction (display of dialogs, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    if(app.documents.length > 0){
      if(app.selection.length > 0){
       switch(app.selection[0].constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "Text":
        case "Cell":
        case "Column":
        case "Row":
        case "Table":
         myDisplayDialog();
         break;
        default:
         //Something was selected, but it wasn't a text object, so search the document.
         myFindChangeByList(app.documents.item(0));
      else{
       //Nothing was selected, so simply search the document.
       myFindChangeByList(app.documents.item(0));
    else{
      alert("No documents are open. Please open a document and try again.");
    function myDisplayDialog(){
    var myObject;
    var myDialog = app.dialogs.add({name:"FindChangeByList"});
    with(myDialog.dialogColumns.add()){
      with(dialogRows.add()){
       with(dialogColumns.add()){
        staticTexts.add({staticLabel:"Search Range:"});
       var myRangeButtons = radiobuttonGroups.add();
       with(myRangeButtons){
        radiobuttonControls.add({staticLabel:"Document"});
        radiobuttonControls.add({staticLabel:"Selected Story", checkedState:true});
        if(app.selection[0].contents != ""){
         radiobuttonControls.add({staticLabel:"Selection", checkedState:true});
    var myResult = myDialog.show();
    if(myResult == true){
      switch(myRangeButtons.selectedButton){
       case 0:
        myObject = app.documents.item(0);
        break;
       case 1:
        myObject = app.selection[0].parentStory;
        break;
       case 2:
        myObject = app.selection[0];
        break;
      myDialog.destroy();
      myFindChangeByList(myObject);
    else{
      myDialog.destroy();
    function myFindChangeByList(myObject){
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, myStory;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/FindChangeSupport/FindChangeList.txt")
    if(myFindChangeFile != null){
      myFindChangeFile = File(myFindChangeFile);
      var myResult = myFindChangeFile.open("r", undefined, undefined);
      if(myResult == true){
       //Loop through the find/change operations.
       do{
        myLine = myFindChangeFile.readln();
        //Ignore comment lines and blank lines.
        if((myLine.substring(0,4)=="text")||(myLine.substring(0,4)=="grep")||(myLine.substring(0,5)=="glyph")){
         myFindChangeArray = myLine.split("\t");
         //The first field in the line is the findType string.
         myFindType = myFindChangeArray[0];
         //The second field in the line is the FindPreferences string.
         myFindPreferences = myFindChangeArray[1];
         //The second field in the line is the ChangePreferences string.
         myChangePreferences = myFindChangeArray[2];
         //The fourth field is the range--used only by text find/change.
         myFindChangeOptions = myFindChangeArray[3];
         switch(myFindType){
          case "text":
           myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "grep":
           myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
          case "glyph":
           myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
           break;
       } while(myFindChangeFile.eof == false);
       myFindChangeFile.close();
    function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change preferences before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    myFoundItems = myObject.changeText();
    //Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep();
    //Reset the find/change grep preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){
    //Reset the find/change glyph preferences before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";
    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";
    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";
    app.doScript(myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph();
    //Reset the find/change glyph preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    function myFindFile(myFilePath){
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File(myScriptFile);
    var myScriptFolder = myScriptFile.path;
    myFilePath = myScriptFolder + myFilePath;
    if(File(myFilePath).exists == false){
      //Display a dialog.
      myFilePath = File.openDialog("Choose the file containing your find/change list");
    return myFilePath;
    function myGetScriptPath(){
    try{
      myFile = app.activeScript;
    catch(myError){
      myFile = myError.fileName;
    return myFile;
    Message was edited by: JoJo Jenkins. Proper script formatting was used and the question was revised and made more concise.

    You can't check which instrument is active in InDesign by script (although you can select it, but it's not useful in your case).
    I suggest you  the following approach: check if a single object is selected and if it's a text frame — if so, make a search without showing the dialog.
    Notice that use
    myFindChangeByList(app.selection[0].parentStory.texts[0]);
    instead of
    myFindChangeByList(app.selection[0]);
    this allows me to process threaded and overset text.
    function main(){
         var myObject;
         //Make certain that user interaction (display of dialogs, etc.) is turned on.
         app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
         if(app.documents.length > 0){
              if(app.selection.length == 1 && app.selection[0].constructor.name == "TextFrame"){
                   myFindChangeByList(app.selection[0].parentStory.texts[0]);
              else if(app.selection.length > 0){
                   switch(app.selection[0].constructor.name){
                        case "InsertionPoint":
                        case "Character":
                        case "Word":
                        case "TextStyleRange":
                        case "Line":
                        case "Paragraph":
                        case "TextColumn":
                        case "Text":
                        case "Cell":
                        case "Column":
                        case "Row":
                        case "Table":
                             myDisplayDialog();
                             break;
                        default:
                             //Something was selected, but it wasn't a text object, so search the document.
                             myFindChangeByList(app.documents.item(0));
              else{
                   //Nothing was selected, so simply search the document.
                   myFindChangeByList(app.documents.item(0));
         else{
              alert("No documents are open. Please open a document and try again.");

Maybe you are looking for