Apply overrides (Can anyone «cook» this script for me?)

Hi, everybody!
Here I am again asking for something: I need a script that clears all overrides that exist in a certain style paragraph that was applied thousands of times in a very long Indesign document.
Thank you in advance
Maria

If it's just one paragraph style: use Search and Replace. Put the same paragraph style in both Search and Replace formatting fields, and make sure there is no text at all in the text edit fields. It seems you want to replace the style with the exact same style ... but in this particular case, every manual override gets fried (to continue your cooking analogy ).

Similar Messages

  • Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
    In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
    After that is done reboot the machine and see if you can log in.
    If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
    Reboot and try again.
    If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
    Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
    Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
    Lots of work, but there is no Lion disks.
    https://discussions.apple.com/message/16276201#16276201

  • Can anyone interpret this trace for me please

    I've had an ongoing issue for about 10 months which looks to me like data loss at peak times. I've got BT working on this but it's a slow and painful process. Outbound tracert from me to an IP address are fine and show slow times but no data loss. I've just done a couple of reverse Trace Routes (Tracert) i.e. in to my public IP rather than out from my computer and got the results below. What I don't know is whether they are reaching me and being blocked by the firewall or whether they are failing before they get to me. An IP lookup shows the last successful  addresses are BT infrastructure servers but I can't tell whether they are at my local exchange or not. Thanks in advance.
    Here are the 2 sets of results:
    Test 1 - Run by a friend
    Tracing route to host86-150-49-122.range86-150.btcentralplus.com [86.150.49.122]
    over a maximum of 30 hops:
      1     1 ms    <1 ms    <1 ms  192.168.0.1
      2    39 ms    37 ms    38 ms  cr4.clber.uk.easynet.net [87.87.253.223]
      3    33 ms    33 ms    33 ms  fe3-1-3.ar11.bllon.uk.easynet.net [82.111.96.81]
      4    34 ms    32 ms    33 ms  te0-2-0-2.er11.thlon.ov.easynet.net [89.200.131.89]
      5    34 ms    34 ms    33 ms  linx7.ukcore.bt.net [195.66.224.56]
      6    48 ms    44 ms    74 ms  core1-te-0-3-1-0.ealing.ukcore.bt.net [62.172.102.2]
      7    38 ms    37 ms    37 ms  acc1-10GigE-0-1-0-0.l-far.21cn-ipp.bt.net [109.159.249.16]
      8    39 ms    38 ms    38 ms  109.159.249.100
      9    36 ms    37 ms    37 ms  213.120.176.177
     10    40 ms    45 ms    37 ms  213.120.176.21
     11    44 ms    46 ms    41 ms  213.120.177.25
     12     *        *        *     Request timed out.
     13     *        *        *     Request timed out.
     14     *        *        *     Request timed out.
     15     *        *        *     Request timed out.
     16     *        *        *     Request timed out.
     17     *        *        *     Request timed out.
     18     *        *        *     Request timed out.
     19     *        *        *     Request timed out.
     20     *        *        *     Request timed out.
     21     *        *        *     Request timed out.
     22     *        *        *     Request timed out.
     23     *        *        *     Request timed out.
     24     *        *        *     Request timed out.
     25     *        *        *     Request timed out.
     26     *        *        *     Request timed out.
     27     *        *        *     Request timed out.
     28     *        *        *     Request timed out.
     29     *        *        *     Request timed out.
     30     *        *        *     Request timed out.
    Trace complete.
    Test 3 - Conducted from the internet
    http://centralops.net/co/Traceroute.aspx
    Tracing route to 86.150.49.122 [86.150.49.122]...
    hop
    rtt
    rtt
    rtt
    ip address
    fully qualified domain name
    1
    1
    1
    1
    70.84.211.97
    61.d3.5446.static.theplanet.com
    2
    1
    0
    0
    70.87.254.1
    po101.dsr01.dllstx5.networklayer.com
    3
    1
    1
    1
    70.85.127.105
    po51.dsr01.dllstx3.networklayer.com
    4
    0
    0
    0
    70.87.253.85
    e8-3.ibr03.dllstx3.networklayer.com
    5
    0
    0
    0
    209.66.99.89
    209.66.99.89.available.above.net
    6
    1
    0
    0
    64.125.27.73
    xe-0-1-0.cr1.dfw2.us.above.net
    7
    1
    0
    0
    64.125.30.78
    xe-1-0-0.cr2.dfw2.us.above.net
    8
    6
    6
    6
    64.125.31.122
    xe-4-2-0.cr2.iah1.us.above.net
    9
    33
    57
    34
    64.125.28.49
    xe-2-1-0.cr2.dca2.us.above.net
    10
    106
    133
    107
    64.125.24.42
    xe-4-1-0.mpr1.lhr3.uk.above.net
    11
    106
    107
    106
    64.125.28.38
    so-1-0-0.mpr1.lhr2.uk.above.net
    12
    107
    108
    109
    64.125.27.150
    xe-1-1-0.mpr1.lhr1.uk.above.net
    13
    116
    107
    107
    195.66.224.69
    linx1.ukcore.bt.net
    14
    112
    112
    111
    62.6.200.102
    core2-gig0-10-0-4.ilford.ukcore.bt.net
    15
    184
    140
    109
    109.159.249.14
    acc1-10gige-0-7-0-3.l-far.21cn-ipp.bt.net
    16
    109
    109
    110
    109.159.249.85
    17
    109
    109
    109
    213.120.176.177
    18
    110
    109
    110
    213.120.176.21
    19
    131
    168
    213.120.177.9
    20
    21
    22
    23
    Trace aborted
    -- end --

     Here is my outbound tracert. I guess that hop 2 is my local exchange. There is no direct match between the IPs outbound and inbound. Hop 5 and 6 on this trace below are within 1 digit of hop 10 and hop 9 respectively of the first of the reverse traces above. I'm not an expert but guess this means they are likely to be co-located? And not my local exchange unless it takes 5 hops to get out of my exchange onto the BT infrastructure.
    traceroute to 199.217.10.36 (199.217.10.36), 64 hops max, 52 byte packets
     1  api (192.168.1.254)  0.896 ms  0.635 ms  0.633 ms
     2  217.32.145.136 (217.32.145.136)  22.803 ms  24.074 ms  25.768 ms
     3  217.32.145.206 (217.32.145.206)  25.868 ms  25.140 ms  24.855 ms
     4  213.120.177.10 (213.120.177.10)  23.579 ms  23.575 ms  23.913 ms
     5  213.120.176.22 (213.120.176.22)  23.895 ms  24.465 ms  23.703 ms
     6  213.120.176.178 (213.120.176.178)  24.890 ms  23.638 ms  24.422 ms
     7  acc1-10gige-0-7-0-5.l-far.21cn-ipp.bt.net (109.159.249.86)  23.800 ms
        acc1-10gige-0-2-0-6.l-far.21cn-ipp.bt.net (109.159.249.101)  24.836 ms
        acc1-10gige-0-1-0-5.l-far.21cn-ipp.bt.net (109.159.249.82)  24.035 ms
     8  core1-te0-1-0-0.ealing.ukcore.bt.net (109.159.249.21)  26.865 ms
        core2-te0-1-0-0.ilford.ukcore.bt.net (109.159.249.23)  28.352 ms
        core1-te0-15-0-2.ealing.ukcore.bt.net (109.159.249.17)  27.069 ms
     9  core1-xe1-1-0.redbus.ukcore.bt.net (62.6.200.101)  24.961 ms
        core1-xe0-0-0.redbus.ukcore.bt.net (62.6.200.73)  26.039 ms  25.040 ms
    10  ge-2-1-0.mpr1.lhr2.uk.above.net (195.66.224.76)  27.001 ms  26.359 ms  26.868 ms
    11  ge-3-0-0.mpr1.lhr2.uk.above.net (64.125.28.126)  25.717 ms  39.982 ms  26.313 ms
    12  so-0-1-0.mpr1.dca2.us.above.net (64.125.27.57)  99.724 ms  98.703 ms  99.029 ms
    13  xe-0-3-0.cr1.dca2.us.above.net (64.125.29.17)  99.676 ms  98.223 ms  99.004 ms
    14  xe-0-2-0.cr1.iah1.us.above.net (64.125.25.114)  126.086 ms  125.555 ms  125.492 ms
    15  xe-1-3-0.cr1.lax112.us.above.net (64.125.26.122)  157.246 ms  157.818 ms  157.267 ms
    16  xe-0-2-0.cr1.sjc2.us.above.net (64.125.26.26)  166.464 ms  165.509 ms  165.713 ms
    17  xe-1-0-0.cr2.sjc2.us.above.net (64.125.30.138)  164.870 ms  165.932 ms  172.025 ms
    18  xe-0-1-0.er2.sjc2.us.above.net (64.125.28.21)  165.686 ms  165.177 ms  165.077 ms
    19  209.249.49.10.available.above.net (209.249.49.10)  165.920 ms  166.861 ms  165.738 ms
    20  ip10-178.esignal.com (199.217.10.178)  167.362 ms  166.201 ms  167.331 ms
    21  ip10-140.esignal.com (199.217.10.140)  166.171 ms  165.839 ms  165.510 ms
    22  * * *
    23  ip225-4.esignal.com (216.23.225.4)  167.897 ms *  167.373 ms

  • Can anyone solve this puzzle for me..?

    Hello everybody,
    I've got the following question in one of the mock tests for Java certification exams.
    the output that I was expecting is 10010
    but is shows 10020 as output.
    can anybody explain..!
    class ValHold{
      public int i = 10;
    public class A{
      public static void main(String argv[]){
        A o = new A();
        o.amethod();
      public void amethod(){
        int i = 99;
        ValHold v = new ValHold();
        v.i=30;
        another(v,i);
        System.out.print( v.i );
      }//End of amethod
      public void another(ValHold v, int i){
        i=0;
        v.i = 20;
        ValHold vh = new ValHold();
        v =  vh;
        System.out.print(v.i);
        System.out.print(i);
    }Thanks

    Hello everybody,
    I've got the following question in one of the mock
    tests for Java certification exams.
    the output that I was expecting is 10010
    but is shows 10020 as output.
    can anybody explain..!
    class ValHold{
    public int i = 10;
    public class A{
    public static void main(String argv[]){
    A o = new A();
    o.amethod();
    public void amethod(){
    int i = 99;
    ValHold v = new ValHold();
    v.i=30;
    another(v,i);
    System.out.print( v.i );
    /End of amethod
    public void another(ValHold v, int i){
    i=0;
    v.i = 20;
    ValHold vh = new ValHold();
    v = vh;
    System.out.print(v.i);
    System.out.print(i);
    Here we get the output 100
    The reference v in this method is local to this
    method. It is copy of the reference from amethod.
    New object is created and assigned to vh. The reference v points to this second object.
    After returning from the method, the reference v in amethod still points
    to first object where value of i is still 20
    >
    >
    Thanks

  • Can anyone answer this question for me

    okay so i have a mid 2012 macbook pro and being a student myself i travel 4 days a week to and from college with my mac anyway while i was in class the other day i placed my laptop onto the desk and i must have put my mac onto my grit and i have slight airline scratch on the bottom caseing i called my apple store and i asked if the case can be replaced the guy said yes it can be but i will need to book an appoment with a genius but as you know apple apple macs laptops have the designed by apple in california and serial number etc on them if i was to buy a new case for it from apple would it contain these any ideas and help is allways welcome. thanks Ryan

    ryan678 wrote:
    okay so i have a mid 2012 macbook pro and being a student myself i travel 4 days a week to and from college with my mac anyway while i was in class the other day i placed my laptop onto the desk and i must have put my mac onto my grit and i have slight airline scratch on the bottom caseing i called my apple store and i asked if the case can be replaced the guy said yes it can be but i will need to book an appoment with a genius but as you know apple apple macs laptops have the designed by apple in california and serial number etc on them if i was to buy a new case for it from apple would it contain these any ideas and help is allways welcome. thanks Ryan
    I'm sorry but it is very difficult to understand your very long one sentence post. Are you asking what information will be contained on the case? Or are you asking how to go about changing the case? Maybe you're asking if it is worth replacing the case because of a scratch. Or, are you asking if the new case will be designed in California?
    Try rephrasing your post.

  • Can anyone beat this? now waited over 9 months for...

    Can anyone beat this? now waited over 9 months for BT to fix my BB

    I have thanks, I was just answering 06jpearce
    This is what I wrote:
    Over 9 months and 20 openreach appointments and my broadband is still not fixed.   They have tried the "put up with it or we will just say your line is too long and we will stop all broadband service" about 3 times now, but when I point-out my next door neighbour is with TalkTalk, and their BB is fine, and also point out I've had much faster BB for years, they back down.
    My speed has gone from 2Mbps to 384Kbps, and every time the phone rings the broadband disconnects.
    I am an IT engineer that works from home and about 5 times a day I have to tell my customers that my BB has dropped out and then I explain that I've been waiting 9 months for BT to fix it.
    Also I used to set up my customers on BT Broadband but obviously I haven't been doing that for the last 9 months. 
    I'm sure that the fault is in the old aluminium cable that Openreach don't want to touch (in fact that is what the last engineer told me) .
    When you add up the cost of all these engineers calls, and the loss of business from the bad name you are getting, it would have been far cheaper to replace the cable.

  • I have set a passcode for my iphone and later I forgot it, and I tried it so many times but it was not correct now the iphone is disable it doesn't work in tune, can anyone solve this problem??

    I have set a passcode for my iphone and later I forgot it, and I tried it so many times but it was not correct now the iphone is disable it doesn't work in tune, can anyone solve this problem??

    You can solve this problem. Just follow these instructions:
    http://support.apple.com/kb/ht1212

  • Thanks for a stealth fix - can anyone confirm this actually happened?

    When the Yoga 2 Pro was released I received an error message about an unauthorized power supply when using with my energizer xpal external battery.  It was only a nuisance since the battery continued to work.  After this last power update I have not seen that message at all and my laptop continues to work well while on the external battery.  Can anyone confirm this was an undocumented fix?

    I know they fixed an error message when using other power supplies in the bios when they released the latest (11/7 I think) bios update.

  • Can anyone explain this behavior and tell me how to fix it?

    Using NetBeans 6.5 on Windows, Glassfish v2.1
    I have a JSF application with a page that has a tab set.
    On one of the tabs I have a panel with company information.
    One of the components on the page is an InputText field with the value bound to a session bean variable.
    The tab also has an Add button.
    Here is what the JSP looks like for the input text and button components
       <h:inputText binding="#{MainPage.companyNameTF}" id="companyNameTF" readonly="#{SessionBean1.readOnlyFlag}"
       <h:commandButton action="#{MainPage.mainAddBtn_action}" disabled="#{SessionBean1.disableEdit}" id="mainAddBtn"
            style="font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; left: 425px; top: 380px; position: absolute; width: 75px" value="Add"/>
         This is all plain vanilla stuff and I would expect that when the Add button is pushed, the session bean property would be filled with
    the value entered in the input text field.
    In the java code for the page, I have a method to process the Add button push.
    Originally, it just called a method in the session bean to check that a value was entered in the input text field by checking the bound
    session bean property.
    For some reason, that was not getting filled and I was getting either a null or empty string rather than the value in the text field.
    I added some checking in the method that processes the Add button push so I could check the values in the debugger.
    Here is a sample of that code:
        public String mainAddBtn_action() {
            String s = sb1.getCompanyName();
            s = (String)this.companyNameTF.getValue();
            s = (String)this.companyNameTF.getSubmittedValue();I check this in the debugger and NONE of the variants that I have listed have the value that was entered into the text field.
    The submittedValue is null and the others are empty strings (that is what they were initalized to).
    This is all pertty straight forward stuff and I am at a loss to explain what is happening.
    Can anyone expain this behavior, and, most important, how can I force the values to be present when the Add button is pushed.
    I have never experienced this problem before, and have no clue what is causing it.
    Thanks.

    Basically, the component bindings are just being used in plain vanilla get/set modes.
    I set them to "" when I do a clear for the fields and they are set to a value via the text field.
    No other action other than to read the values via get to insert them into the database.
    And, I always use the get/set methods rather than just setting the value directly.
    This is what is so strange about this behavior - I have created dozens of database add/update/delete pages using this same model and have not had a problem with them - even in a tab context.
    Not a clue why this one is different.
    I did notice that I had an error on the page (in IE7, you get a small triangle warning sign when something is not right).
    I figured that might be the problem - maybe buggering up the rendering process.
    I tracked that down and do not get that anymore (it had to do with the PDF display I was trying to get working a while back), but that did not resolve the problem.
    I don't think there are any tab conflicts - none of the components are shared between tabs, but I will see what happens when I move a couple of the components out of the tab context.
    I noticed that it seems to skip a cycle. Here is what I can do.
    1) Fill in text fields and add a record - works fine the first time.
    2) Clear the text fields
    3) Enter new data in the text fields and push Add
    4) I get an error saying fields are blank from my data check process.
    5) Enter new data and push Add - the record is added with the new data.
    My work around is to not enter data in step 3 and just accept the error message in step 4, then go ahead and enter the real data in step 5.
    Very ugly, but it works every time.

  • It seems that the new version of iPhoto will no longer share photos between computers on the same network. Can anyone confirm this?

    It seems that the new version of iPhoto will no longer share photos between computers on the same network. Can anyone confirm this?

    lovinmymac wrote:
    I have "automatically create previews" in the preferences UNCHECKED. Why is Aperture creating previews? For the screen image?
    You might also need to turn Preview generation off for any existing Projects. Select the Project in the Projects pane and use the cog button at the top of the pane to uncheck 'Maintain Previews For Project'.
    Ian

  • Can i use this script in illustrator?

    can i use this script in illustrator?
    Newsgroup_User

    // This script exports extended layer.bounds information to [psd_file_name].xml
    // by pattesdours
    function docCheck() {
        // ensure that there is at least one document open
        if (!documents.length) {
            alert('There are no documents open.');
            return; // quit
    docCheck();
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    var docRef = activeDocument;
    var docWidth = docRef.width.value;
    var docHeight = docRef.height.value;
    var mySourceFilePath = activeDocument.fullName.path + "/";
    //  Code to get layer index / descriptor
    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
    function getLayerDescriptor (doc, layer) {
        var ref = new ActionReference();
        ref.putEnumerated(cTID("Lyr "), cTID("Ordn"), cTID("Trgt"));
        return executeActionGet(ref)
    function getLayerID(doc, layer) {
      var d = getLayerDescriptor(doc, layer);
      return d.getInteger(cTID('LyrI'));
    var stackorder = 0;
    // function from Xbytor to traverse all layers
    traverseLayers = function(doc, ftn, reverse) {
      function _traverse(doc, layers, ftn, reverse) {
        var ok = true;
        for (var i = 1; i <= layers.length && ok != false; i++) {
          var index = (reverse == true) ? layers.length-i : i - 1;
          var layer = layers[index];
          //  alert("layer.typename  >>> "+layer.typename ); 
          if (layer.typename == "LayerSet") {
            ok = _traverse(doc, layer.layers, ftn, reverse);
          } else {
      stackorder = stackorder + 1;
            ok = ftn(doc, layer, stackorder);
        return ok;
      return _traverse(doc, doc.layers, ftn, reverse);
    // create a string to hold the data
    var str ="";
    // class using a contructor
    function cLayer(doc, layer) {
    //this.layerID = Stdlib.getLayerID(doc, layer);
      this.layerID = getLayerID(doc, layer);
      //alert("layer ID: " + this.layerID);
      this.layerWidth = layer.bounds[2].value - layer.bounds[0].value;
          this.layerHeight = layer.bounds[3].value - layer.bounds[1].value;
      // these return object coordinates relative to canvas
          this.upperLeftX = layer.bounds[0].value;
          this.upperLeftY = layer.bounds[1].value;
          this.upperCenterX = this.layerWidth / 2 + layer.bounds[0].value;
          this.upperCenterY = layer.bounds[1].value;
          this.upperRightX = layer.bounds[2].value;
          this.upperRightY = layer.bounds[1].value;
          this.middleLeftX = layer.bounds[0].value;
          this.middleLeftY = this.layerHeight / 2 + layer.bounds[1].value;
          this.middleCenterX = this.layerWidth / 2 + layer.bounds[0].value;
          this.middleCenterY = this.layerHeight / 2 + layer.bounds[1].value;
          this.middleRightX = layer.bounds[2].value;
          this.middleRightY = this.layerHeight / 2 + layer.bounds[1].value;
          this.lowerLeftX = layer.bounds[0].value;
          this.lowerLeftY = layer.bounds[3].value;
          this.lowerCenterX = this.layerWidth / 2 + layer.bounds[0].value;
          this.lowerCenterY = layer.bounds[3].value;
          this.lowerRightX = layer.bounds[2].value;
          this.lowerRightY = layer.bounds[3].value;
       // I'm adding these for easier editing of flash symbol transformation point (outputs a 'x, y' format)
       // because I like to assign shortcut keys that use the numeric pad keyboard, like such:
       // 7 8 9
       // 4 5 6
       // 1 2 3
          var windowW=2048;
          var windowH=1536;
       this.leftBottom = this.lowerLeftX + ", " + (windowH-this.lowerLeftY);
       this.bottomCenter = this.lowerCenterX + ", " +  (windowH-this.lowerCenterY);
       this.rightBottom = this.lowerRightX + ", " + this.lowerRightY;
       this.leftCenter = this.middleLeftX + ", " + this.middleLeftY;
       this.center = this.middleCenterX + ", " + this.middleCenterY;
       this.rightCenter = this.middleRightX + ", " + this.middleRightY;
       this.leftTop = this.upperLeftX + ", " + this.upperLeftY;
       this.topCenter = this.upperCenterX + ", " + this.upperCenterY;
       this.rightTop = this.upperRightX + ", " + this.upperRightY;
      // these return object coordinates relative to layer bounds
          this.relUpperLeftX = layer.bounds[1].value - layer.bounds[1].value;
          this.relUpperLeftY =  layer.bounds[0].value - layer.bounds[0].value;
          this.relUpperCenterX = this.layerWidth / 2;
          this.relUpperCenterY = layer.bounds[0].value - layer.bounds[0].value;
          this.relUpperRightX = this.layerWidth;
          this.relUpperRightY = layer.bounds[0].value - layer.bounds[0].value;
          this.relMiddleLeftX = layer.bounds[1].value - layer.bounds[1].value;
          this.relMiddleLeftY = this.layerHeight / 2;
          this.relMiddleCenterX = this.layerWidth / 2;
          this.relMiddleCenterY = this.layerHeight / 2;
          this.relMiddleRightX = this.layerWidth;
      this.relMiddleRightY = this.layerHeight / 2;
          this.relLowerLeftX = layer.bounds[1].value - layer.bounds[1].value;
          this.relLowerLeftY = this.layerHeight;
          this.relLowerCenterX = this.layerWidth / 2;
      this.relLowerCenterY = this.layerHeight / 2;
          this.relLowerRightY = this.layerHeight;
          this.relLowerRightX = this.layerWidth;
          this.relLowerRightY = this.layerHeight;
      return this;
    // add header line
    str = "<psd filename=\"" + docRef.name + "\" path=\"" + mySourceFilePath + "\" width=\"" + docWidth + "\" height=\"" + docHeight + "\">\n";
    // now a function to collect the data
    var isParentAvailable=false;
    var prevLayerSetName="";
    function exportBounds(doc, layer, i) {
        var isVisible = layer.visible;
        var layerData = cLayer(doc, layer);
    //alert("layer.name  >>> "+layer.name );
    //alert("typename >>> "+layer.typename);
    /*if(layer.parent.name == "ParentTest"){
    for(var i in layer.parent){
        alert(" III >>> "+i+"<<<layer.parent>>"+layer.parent[i]);
      if(isVisible){
    // Layer object main coordinates relative to its active pixels
    var startStr="";
        if(layer.parent.typename=="LayerSet"){
            if(prevLayerSetName!="LayerSet")    {
                startStr="\t<parentlayer id='"+layer.parent.name+"'>\n\t";
            }else{
                   startStr="\t";
            // endStr="\t</parentlayer>\n";
             prevLayerSetName=layer.parent.typename;
          }else{
               if(prevLayerSetName=="LayerSet"){
                    startStr="\t</parentlayer>\n";
                prevLayerSetName="";
      var positionStr=layer.name.split(".")[0].substr(layer.name.split(".")[0].length-3,layer.name. split(".")[0].length);
      var assetPosition=leftTop;
      if(positionStr=="L_B"){
      assetPosition=leftBottom;
      }else if(positionStr=="B_C"){
      assetPosition=bottomCenter;
      }else if(positionStr=="R_B"){
      assetPosition=rightBottom;
      }else if(positionStr=="L_C"){
      assetPosition=leftCenter;
      }else if(positionStr=="C"){
      assetPosition=center;
      }else if(positionStr=="R_C"){
      assetPosition=rightCenter;
      }else if(positionStr=="L_T"){
      assetPosition=leftTop;
      }else if(positionStr=="T_C"){
      assetPosition=topCenter;
      }else if(positionStr=="R_T"){
      assetPosition=rightTop;
      var str2 =startStr+ "\t<layer name=\"" + layer.name
      + "\" stack=\"" + (i - 1) // order in which layers are stacked, starting with zero for the bottom-most layer
      + "\" position=\"" + assetPosition // this is the
      + "\" layerwidth=\"" + layerData.layerWidth
      + "\" layerheight=\"" + layerData.layerHeight
      + "\" transformpoint=\"" + "center" + "\">" // hard-coding 'center' as the default transformation point
      + layer.name + ".png" + "</layer>\n" // I have to put some content here otherwise sometimes tags are ignored
    str += str2.toString();
    // call X's function using the one above
    traverseLayers(app.activeDocument, exportBounds, true);
    // Use this to export XML file to same directory where PSD file is located
        var mySourceFilePath = activeDocument.fullName.path + "/";
    // create a reference to a file for output
        var csvFile = new File(mySourceFilePath.toString().match(/([^\.]+)/)[1] + app.activeDocument.name.match(/([^\.]+)/)[1] + ".xml");
    // open the file, write the data, then close the file
    csvFile.open('w');
    csvFile.writeln(str + "</psd>");
    csvFile.close();
    preferences.rulerUnits = originalRulerUnits;
    // Confirm that operation has completed
    alert("Operation Complete!" + "\n" + "Layer coordinates were successfully exported to:" + "\n" + "\n" + mySourceFilePath.toString().match(/([^\.]+)/)[1] + app.activeDocument.name.match(/([^\.]+)/)[1] + ".xml");

  • Can anyone explain this to me, please. It's a static section question.

    Can anyone explain this to me, please. It's a static section question.
    I came across the following style of programming recently and I would like to know what the Static section is actually doing in the class. Thx.
    Here is the code.
    public class ClassA {
         private static Hashtable ClassAList = new Hashtable();
         private ClassB cB;
         private Vector goodLink;
         private Hashtable classCList;
         static
              ClassA cA = new ClassA();
              ClassAList.put("whatever", cA);
         public static ClassA getClassA()
              return (ClassA) ClassAList.get("whatever");

    hi,
    The static section shall be loaded before it's constructor is called. (i.e at the time of loading the class). Therefore making it available for any other objects to call.
    hope this clarifies ur question
    prasanna

  • How best can i optimise this script

    I have a script the loops through a table and function. it works fine but it takes a longer time complete even though resources are given. the code below is just the same code i used how best can i represent it for speed even though i have all resources.
    For each_member in ( select from MemberTable where MemberID = 'ALL')*
    Loop
    Begin
    if Age >= 18 then
    hold:= 'Adult'
    end if;
    For Each_history in (select Acct,fx_function(each_member.ID,each_member.Acct) BR,
    Movement from History a where history_ID =each_member.Id)
    loop
    Begin
    insert into NewFilteredData (act,BR,mvt)
    values (Each_history.Acct,Each_history.BR,Each_history.Movement);
    end loop;
    end loop;
    end loop;
    commit;
    How best can i optimize this script to move data faster because they are a lot about 6000000 records to be moved.
    please help.
    Edited by: kama021 on Aug 25, 2009 12:48 PM
    Edited by: kama021 on Aug 25, 2009 12:48 PM

    Unless something is horribly wrong (i.e. the optimizer picks a radically incorrect plan), if you can do something in SQL, it will always be faster to do it in SQL. Doing things in PL/SQL, particularly using cursor FOR loops and single row inserts, is the slowest possible way to do anything (well, other than having nested FOR loops).
    Long before you start looking at things like the APPEND hint, I would focus on implementing a single SQL statement that generates the correct results. Once you have that and you have a benchmark, you can decide whether it is "fast enough". If it is (and I suspect it will be), you don't have to delve any deeper. If you need more performance, you can start looking into parallelism, the APPEND hint, etc. but be aware that this generally increases the complexity of the system.
    Justin

  • Can anyone make a PKGBUILD for Novel iFolder and Novel consoleone ?

    Like in subject. I tried install it from Novel homepage, but i have problem with make dependiences and this two package, can anyone make good PKGBUILD for new version ? In AUR i found PKGBUILD's but the mirror doesn't work and i can't find another mirror. Thanks Igor. Have a nice day !

    Yes, but i saw many rpm package, and source code. If you talk about license there is oportunity to get free license for 30 or 60 day's. Thanx for respone.

  • Can anyone explain this: Numeric or Value Error Line 1

    I have a stored procedure that starts out like so:
    PROCEDURE test_proc(param1 IN VARCHAR2, param2 IN VARCHAR2, param3 OUT
    SYS_REFCURSOR) IS
    v_var varchar2(5);
    BEGIN
    SELECT * FROM. . .
    The procedure tested fine in PL/SQL Developer. When calling from
    ODP.NET like so. . .
    OracleCommand cmd = new OracleCommand("test_proc", <connection>);
    cmd.CommandType = CommandType.StoredProcedure;
    cmd.Parameters.Add("param1", "somevalue");
    cmd.Parameters.Add("param2", "XX");
    cmd.Parameters.Add("param3", OracleDbType.RefCursor,
    ParameterDirection.Output);
    DataSet ds = new DataSet();
    OracleDataAdapter da = new OracleDataAdapter(cmd);
    con.Open();
    da.fill(ds);
    con.Close();
    . . .the procedure executed as expected. If I changed the value of
    param2 to "XXX" or any value three chars long I got the "ORA-06502:
    Numeric or Value Error at Line 1" error.
    After beating my head against the wall for hours, I tried changing the
    size of v_var to 50, and the error disappeared. Mind you, the error
    was being thrown long before v_var was being set further down in the
    proc. Even more interesting is that the possible values of v_var were
    all less than 5 chars wide. Most interesting: the value of p_param2 had nothing whatever to do with v_var.
    Can anyone explain this?

    Hi,
    Is your database 9206 by chance? Re: Error ORA-06502 PL/SQL
    Cheers,
    Greg

Maybe you are looking for