Find/replace preference - include locked, locked layer the objects (Find only)

Hi all

I was wondering if anyone can help, I'm trying to make sure that the option "Include Locked layers and objects locked (research only)" on the box search/replace is active when the script below is executed because when it is disabled the text find/replace does not check locked layers and objects.

In InDesign this icon located in the Find/Replace dialog box, a little less the "search:" drop down menu, icon of the left hand.

Replace the text "Page Type"

app.findTextPreferences = app.changeTextPreferences = NothingEnum.NOTHING;

app.findTextPreferences.findWhat = "Page Type";

{found = app.activeDocument.findText () [i] = "STET".silence ;}

Any help would be great thanks, Brendan

app.findTextPreferences = app.changeTextPreferences = NothingEnum.NOTHING;

app.findChangeTextOptions.includeLockedLayersForFind = true;

app.findTextPreferences.findWhat = "Page Type";

{found = app.activeDocument.findText () [i] = "STET".silence ;}

Tags: InDesign

Similar Questions

  • DDL lock on the object in a SELECT statement?

    Environment:

    Oracle 11.2.0.4 EE on Solaris

    My client called me when she was trying to create a new index on a table and the process was just hanging.  Also, she was not able to DELETE an existing index on the same table, which deal with hang them as well.

    After reviewing the advice DBA_DDL_LOCKS, I found a DDL lock on the target of the index table.

    The DDL lock is held by a process doing a SELECT on the table and this process worked for several hours.

    There was no entry in V$ LOCKED_OBJECTS for the table.

    I don't know, yet, what other operations prior to the SELECT statement in the offending process, I have not heard of the user yet.

    I realize a DDL lock is placed on objects to prevent changes while specific operations are directed against this object, i.e. the DROP, UPDATE, compile the PACKAGE, etc.

    Question: Is a select also place a DDL lock on a table at a level that would avoid a new index is created or an existing index having fallen?

    Thank you very much for your comments!

    Any reference to the resolution is greatly appreciated.

    I searched some Concepts Developers Guide, SQL, even Google reference Guide.

    -gary

    > My question is now, this lock persists for the duration of the running query?

    Easy enough to show that it is not.

    Session1:

    SQL> create table foo(bar number);     
    
    Table created.                         
    
    SQL> insert into foo values(1);       
    
    1 row created.                         
    
    SQL> commit;                           
    
    Commit complete.                       
    
    SQL> variable x refcursor
    SQL> variable a number
    SQL> begin
      2  open :X for select bar from foo;
      3  end;
      4  /                                 
    
    PL/SQL procedure successfully completed.
    

    Session 2:

    SQL> drop table foo;
    
    Table dropped.     
    

    Note that I was able to remove the table even if select is still 'in progress' - the cursor is open.

    If you really want to blow your mind, go back to the session 1:

    SQL> begin
      2  fetch :X into :a;
      3  end;
      4  /                                
    
    PL/SQL procedure successfully completed.
    
    SQL> print a                          
    
             A
    ----------
             1       
    

    The picture has gone, but I can always look for him. However, try again:

    SQL> /
    begin
    *
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00942: table or view does not exist          
    

    Note that the forum software is stupid. is: followed by x. seems it's really important to have a smiley to lovey eyes in a technical forum.

    Edit - and when you format the SQL code, it is removed completely and render invisible... silly.

    I edited my code to use: X and the problem disappeared...

  • Replication of the object read-only?

    Is there a possibility to protect by password, or otherwise put to the replication of the unalterable object similar to the display and publication?

    My concern is that, given total freedom of writeRequestedObject() data, some peers can (voluntarily or not) are used to bad/corrupt data in replication. It will be taken up by others and most replicated. If the data element is part of a larger it itself will be corrupted.

    If there is no way to enforce the read-only, adding a hash of integrity at the end data sounds like a good idea. Receiver will throw the incorrect data and wait for another replica. Which leads to the following question:

    Say a peer is willing to items #1 to #5. When she received #3 a neighbor could this be received again from others until reported (removeWantObjects) that's is more sought or will be the first receive the lock want to #3 and only wait than others. In this case a removeWantObjects followed by addWantObjects will give peer a chance to get a new replica of the #3?

    Thanks for any idea or ideas.

    so that replication of the object to work, everyone in the mesh must be able to NetGroup.writeRequestedObject ().

    in your application logic, you can add integrity checks to the objects (perhaps with a manifesto or a directory that lists the hashes of each object).

    you will not receive an object with a specific index from a peer at a time.  Once you receive the item, its index is removed from your set of envy.  You can perform a check for validity against the object, and if it is not valid, you can re - like it.  at the moment there is no way to blacklist a counterpart of misconduct which gives you damaged data, so you might end up becoming again the same object (corrupt/invalid).

    After receiving an object and determine what it * is * valid, you add it to your game 'a', and then only your neighbors begin to you request for this object.  in this way, only valid objects will be spread across the group.

  • Export all the objects and only some data in the table

    Hello

    can we use exclude and include them both at the same time. I want to export the full scheme, but only a few required data table 5, it is possible.

    Please share expdp and impdp query.



    Regs,
    Brijesh

    845712 wrote:
    Hello

    can we use exclude and include them both at the same time. I want to export the full scheme, but only a few required data table 5, it is possible.

    Please share expdp and impdp query.

    Regs,
    Brijesh

    You can export meta_data first and then export the tables you want to get data.

    exp hr/hr rows=N file=xxxxxxxxxxx.dmp
    
    exp hr/hr file=yyyyyyyyyyy.dmp tables=(emp,dep)
    

    complete schema without data first and then import data

    imp hr/hr file=xxxxxxxxxxx.dmp
    
    imp hr/hr file=yyyyyyyyyyy.dmp IGNORE=y (so it will load data to previously created tables)
    

    concerning

    Gokhan Atil

  • locking of the objects before

    Hello

    In my project, I try to lock the cover, when I lock the position it resembles what I have said.

    When I run the VI objects have been moved from the locked position.

    Kind regards

    Hari

    After changing the color of the plot for your selection do a right-click the graph > data operation > do the deafult value... I hope this helps...

  • Find that amendments may not remove the object

    Hi all

    The Find/Replace dialog box is adjustable to the object, and I can pick up successfully for objects of open plot line .5pt and stroked with black color. But, I can't delete them.

    Suppose I need to go through hundreds of pages to delete a line of stray path. Find/replace won't! Is there a solution to javascriptable?

    After more experimenting, I shot an existing script that came with InDesign and came with this variant:

    //SelectPathObjects.jsx for InDesign JavaScript
    /*
    2015_02_02
    */
    main();
    function main(){
      //Make certain that user interaction (display of dialogs, etc.) is turned on.
      app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
      if (app.documents.length != 0){
      if (app.activeWindow.activeSpread.pageItems.length != 0){
      myDisplayDialog();
      }
      else {
      alert("The active spread does not contain any page items.");
      }
      }
      else{
      alert("No documents are open. Please open a document and try again.");
      }
    }
    function myDisplayDialog(){
      var myDialog;
      //Create the SelectObjects dialog box.
      with(myDialog = app.dialogs.add({name:"SelectObjects"})){
      with(dialogColumns.add()){
      with(borderPanels.add()){
      staticTexts.add({staticLabel:"Select:"});
      with(dialogColumns.add()){
      var myGraphicLinesCheckbox = checkboxControls.add({staticLabel:"&Graphic Lines", checkedState:true});
      }
      }
      }
      }
      myResult = myDialog.show();
      if (myResult == true){
      var myObjectTypes = new Array;
      //Gather control settings from the dialog box and build
      //an array containing the object types to select.
      if(myGraphicLinesCheckbox.checkedState==true){
      myObjectTypes.push("graphicLines");
      }
      //Remove the dialog from memory.
      myDialog.destroy();
      mySelectObjects(myObjectTypes);
      }
      else{
      //Remove the dialog from memory.
      myDialog.destroy();
      }
    }
    function mySelectObjects(myObjectTypes){
      var myCounter;
      var myObjectsToSelect = new Array;
      with(app.activeWindow.activeSpread){
      for(myCounter = 0; myCounter < myObjectTypes.length; myCounter++){
      if((myObjectTypes[myCounter] != "images")&&(myObjectTypes[myCounter] != "epss")&&(myObjectTypes[myCounter] != "pdfs")){
      myPageItems = eval(myObjectTypes[myCounter]);
      if (myPageItems.length != 0){
      for(myPageItemCounter = 0; myPageItemCounter < myPageItems.length; myPageItemCounter ++){
      myObjectsToSelect.push(myPageItems[myPageItemCounter]);
      }
      }
      }
      }
      for(myCounter = 0; myCounter < pageItems.length; myCounter++){
      myPageItem = pageItems.item(myCounter);
      try{
      if(((myIsInArray("images", myObjectTypes) == true) && (myPageItem.images.length == 1))||
      ((myIsInArray("epss", myObjectTypes) == true) && (myPageItem.epss.length == 1))||
      ((myIsInArray("pdfs", myObjectTypes) == true) && (myPageItem.pdfs.length == 1))){
      //Is the page item already in the list of items to select?
      myID = myPageItem.id;
      myAlreadyAdded = false;
      for(myPageItemCounter = 0; myPageItemCounter		   
  • Duplicate the object until the work plan limit is reached

    Hello world!

    I'm new to JavaScript (4 days studying) and I'm doing a duplicated object until you press the edge of the artboard.

    What is a good way to do it?

    ---

    If (app.selection [0]! = null) {}

    var = app.activeDocument myDoc,

    selectedArt = myDoc.selection [0];

    limit =?, / / set the number of duplicates? how to stop when the limit of the artboard?

    horOffset = app.activeDocument.pathItems [0] .width + 34.016, / / set the horizontal offset: width of the selection + 12 mm

    myDuplicate,

    i = 0;

    for (i; i < limit; i ++) {}

    myDuplicate = selectedArt.duplicate ();

    myDuplicate.position = [selectedArt.position [0] + horOffset * (i + 1), selectedArt.position [1]];

    }

    }

    else {}

    Alert ("you must have the object you want to duplicate selected.");

    }

    ---

    I restored this code together to other scripts, but I'm stuck at the implementation of the edge of the artboard.

    I tried to use limit = app.activeDocument.width, but his does not work.

    Let me know if the question makes sense.

    All the tips are greatly appreciated. Thank you!

    Its not pretty, but it works!

    Not sure this will help someone that the task is very specific.

    I use this to prepare labels for printing on a roll of paper. The width of the graphic Board is limited by the width of the roll.

    The height limit is not important, because the configuration document is usually only 2 rows.

    Here is the code:

    --------------

    If (app.selection [0]! = null) {}

    move the object to the starting position

    app.activeDocument.pageItems [0] .position = [28.347,-11.338]

    Make duplicates horizontally

    var = app.activeDocument myDoc,

    selectedArt = myDoc.selection [0];

    limit = Math.floor ((app.activeDocument.width-56.688)/(app.activeDocument.selection[0].width+34.016)-1),

    horOffset = app.activeDocument.selection [0] .width + 34.016, / / set the horizontal offset: width of the selection + 12 mm

    myDuplicate,

    i = 0;

    for (i; I)< limit;="">

    myDuplicate = selectedArt.duplicate ();

    myDuplicate.position = [selectedArt.position [0] + horOffset * (i + 1), selectedArt.position [1]];

    }

    }

    Duplicates a line down

    If (app.documents.length > 0) {}

    docSelection = app.activeDocument.selection;

    If (docSelection.length > 0) {}

    newGroup = app.activeDocument.groupItems.add ();

    for (i = 0; i< docselection.length;="" i++="" )="">

    newItem = docSelection [i] .duplicate ();

    newItem.moveToBeginning (newGroup);

    newItem.top = newItem.top - newItem.height - 17.008;

    }

    }

    }

    else {}

    Alert ("you must have the object you want to duplicate selected.");

    }

    The funny thing is that I don't know why the duplication of a line to the bottom of work

    Also if the art is on the wrong layer, the object will not be moved to the correct starting point.

  • store the object reference handle (MOR) to synchronize with the virtual center of vSphere

    Hello

    I am able to store a bit in my own DB and assume that they don't change, so that I can match the entities in the virtual centre with those of my database loading my application?

    Document best practices of Balaji Parimi (http://communities.vmware.com/docs/DOC-9912) States:

    Caching of managed object references rather than their
    Properties makes it easy to keep the cache to update. It is easier to maintain
    the cache, as the references remain unchanged until the managed object is removed from the inventory of managed object.

    Because of this comment, I am inclined to believe that I should be able to write the bit on my side in the DB and use them as described.

    Why I ask this is because:

    • It seems that a lot of people is keen to track VMs by uuid.  I'm guessing they are only followed VMs, otherwise they would probably have the same problem I'm having (ex: If a Resource Pool gets renamed while the application is down, how can you identify whether the same as the one you had).

    • The vSphere Web Services SDK Programming Guide seems to be confusing by having a section entitled Do not store Managed Object reference values.  This section seems just to point out that the MOR is not the same between the vCenter server and ESX box.  Because I don't like to manage the host communicating directly with it (and keep track of the GPR in this way), I don't see how this would apply.

    Has anyone been matching their own entities vmware with JAWS?  Is there a reason for (am I wrong something)?  Wouldn't be wonderful if this confusion has been cleared up by Balaji Parimi or VMware themselves.

    Thank you

    Ivan

    The recommendation contained in the best practices doc is right.

    You can store the MOR of an entity in your DB.

    For such objects as hosts, VMs data warehouses, etc... Essentially, this is the unique key that identifies the object.

    And the MOR will change during the lifetime of this object in the DB vCenter.

    The only way it modifies if it removes and adds the object. So for all practical purposes it is a new object anyway.

    What the program guide refers, is the fact that this MOR the 'ID' of the object is only within this system namespace.

    Thus, the VM MOR is unique within the Victoria Cross.

    That MOR are only may not or may not even be object even if you connect directly to the ESX host using the SDK.

    The guide is just trying to clarify that the MOR of a VMS in vCenter isn't the same as if you connect to the ESX host directly.

    That said, if you never connect to the ESX host directly you must not care about this specific recommendation in the guide.

    Hope that clarifies things.

  • Replication of the object - how to propagate objects?

    Given the following scenario:

    A, B, C are peer

    A - B are connected

    B - C are connected

    A - C are NOT connected

    A #1 object

    C wants to object #1

    B (if any) will pass the object of A to C, or nothing will happen except changing the topology?

    Thank you.

    so that C get the #1 object, B must get first.  B must wish that object #1 that he asked it to A, and then send it to you.  Once B receives the object, he must indicate he did.  Once B has #1, C go see it and ask B.

    replication of the object works only if everyone in the group is making efforts to have all the clues, and they share the clues they have.

  • Cannot save preferences/workspaces etc., in CC2014, the PS said the file is locked. It is not.

    The actual error messages I get are:

    "Cannot save preferences because the file is locked, you don't have the necessary access permissions or another program is using the file. Use the "Get Info" command in the Finder to make sure that the file is unlocked and you are allowed to access the file. "If the problem persists, save the document to another file or duplicate in the Finder.

    It's the same thing when I moved to CS6 CC, no one here knew the answer, but the Photoshop online help guy told me to move the two files on my desktop, this corrects the problem, but I cannot find these files in CC2014 they were: The Adobe Photoshop CC settings folder and file: com.adobe.Photoshop.plist (I think they are still on my desktop but it's also a lot of other things)

    Did anyone here know how to solve this problem or where to find these files? I know how to get to the hidden stuff, but can not see them. I love the look of the new features and can't wait to try them, but wile, I can't save my settings that I hafta stay with the 'old' CC.

    PS: I get this message when I left Photoshop and also when I try to synchronize or save the settings, thanks in advance guys.

    Excuse me, I found the recalcitrant files & moving them to my office actually avoided the new day. In case someone else has a similar problem the files in question are located in: / users/yourname/Library/Preferences / (you must hold down the option/alt key to see the library folder), and they have the file "Adobe Photoshop CC 2014 Settings" & file "com.adobe.Photoshop.plist"

    Now I get try out these new features!

  • Where to find the lock of the Pixma MG6320 printer scanner?

    Hello... Where to find the lock of the Pixma MG6320 printer scanner?

    Hi set231,

    PIXMA MG6320 is not a scanner lock switch.  If you try to set the printer for transport, please follow these steps:

    1. turn the unit off.

    2. confirm that the POWER led is off, and unplug the machine.  Please do not unplug the machine while the POWER light is lit or blinking white, as this may cause a malfunction or damage to the machine, the machine impossible to print.

    3. remove the output paper support, and then close the paper output tray gently.  The output tray extension is retracted automatically when the paper output tray is closed.

    4. disconnect the printer from the computer and the machine cable, then connect the plug to the machine.

    5. use duct tape to secure all covers on the machine to keep them open during transport.  Then pack the machine in the plastic bag.  Fix the material of protection to the machine when the machine to pack in the box.

    It has not responded to your question or problem? Please call or write to us at one of the methods on the page contact us for further assistance.

  • How to select all the text, all layers including locked or not visible, using VBScript?

    I'm looking for the more elegant syntax through a document and select all the text frames.

    You cannot select objects in... locked or hidden layers, so you will need to unlock/show layer and do what you need to do with the text, while the layer is visible/unlocked.

    to get all the loop text through the text in the object of the document, you will get all the text elements. If you loop through text in a layer object, you won't get the text located within groups.

  • Use the adjustment options on all objects of a locked layer

    This will be easy for some of you.  But I'm just a kid in it.

    I have a locked layer called AD.

    Not all ads get their boxes.  So, I'd love to run a script that would be looked at the locked by the layer name layer and make all the content of image proportionally fill.

    I tried to restore the other code I found here, but I failed miserably.  I appeal to the gods!

    Hello

    Try this:

    myDoc = app.activeDocument;

    myLayer = myDoc.layers.item ("AD");

    myLayer.locked = false;

    for (k = 0; k

    If (myDoc.allPageItems [k] .itemLayer is myLayer)

    {

    currPItem = myDoc.allPageItems [k];

    currPItem.fit (FitOptions.PROPORTIONALLY); or another option you choose

    }

    myLayer.locked = true;

    Enjoy

  • Windows XP disc ruined by heat (locked in the car) and will not work. Can I replace?

    I bought Windows XP in 2008 at Office Depot. My hard drive has failed and replaced my tech. I blocked the computer and the software in my car and the heat must have messed up my XP disc. I have new hard drive problems and the drive does not work. I have the original disc and all documents, serial number, etc.. Can I get the drive replaced or I have to purchase again? I have to use XP for my plotter HP 1994 not being supported passed XP.

    Hello

    You can check the link below: how to replace lost, broken, or lack of Microsoft software or hardware: http://support.microsoft.com/kb/326246

  • I can't save the messages in the sent folder, there is a lock on the file name

    the messaging engine Thunderbird ceased to save emails in the sent folder, when I checked the sent folder, it was a symbol of lock at the beginning of the queue file. and an error came up saying "error copy sent the file.

    The padlock, which indicated it still, the account uses a secure connection.

    Now

    So that we can better investigate this problem, you need to add a little more non-personal information.

    Please add the troubleshooting information to your post
    To find troubleshooting information:

    • Open the help (or click Help three-line-icon and select)
    • Choose troubleshooting information
    • Use the copy button in the Clipboard to select them all. Do not check box "include account names!
    • Paste this into your post.

    Please also add the result of these troubleshooting steps to your message

    • Thunderbird works in mode Safe TB (see Thunderbird Safe Mode)?
    • Do you use anti-virus software and firewall? What is the version?
    • Who is the email provider?
    • Who is the provider of the internet?

    Please post back with that information and any other questions you may have.

Maybe you are looking for

  • New battery is not charged or recognized on my laptop satellite

    Hello I recently bought a new and said to be the original (on ebay) battery for my laptop Toshiba Satellie. I have aready replaced my battery once with no real battery that hold less then a year. However, I got the "no battery is detected" when I hav

  • Replacement of the button of the touchpad on Satellite L450d

    Hello I don't know if anyone can help m.The left mouse button broke and slipped inside the shell. I pulled out and need to find a replacement part.I m not having not much of chance in the minuet. If anyone knows where I can get a new part or the part

  • Upgrade CPU Core i7 - 720 QM to 4th Gen i7

    I have a TouchSmart 600-1265qd with a Core i7-720QM and want to update for a 4th gen i7.  Is this possible and which ones work?  Thanks for the help.

  • Photosmart B010a All In One test print O: K: does not the computer print

    EGR: GIS. No error message in the control panel is READY, printed the test. Don't print your computer. 6220 with windows 7/64 bit HP computer. = network WI Fi of tiscali. the printer is connected with a cable to the computer. I also tried with the do

  • HP 1022: the bad impression Hp 1022

    Hi my print have some problems, I see a white line and I don't know if the toner is fine or just dirty. How can I clean my impression? Can Hon I know what is the problem? Add an image of boredom.