problem by placing the tool position line

Hi, can someone solve this problem.

I have created the script for the online tool, but it works does not in particular place. I'll explain in detail.

Ms job

I / p: America is a country [SL 10].

Error output: America is a country...   (or)  ................. America is a country (or) America... is a country (rule puts somewere if I correct position)

Original output should be like this

Error output: America is a... country

I need underscore 10 mm instead of [SL 10]

It should replace [SL 10] and put a 10 mm rule in this position.

In my script for the rule is created, but the rule is to put some were elsewhere. Please solve this problem. I created the library also for [SL10].

Here is my script coding

app.findTextPreferences = null;

app.changeTextPreferences = null;

app.findChangeTextOptions.caseSensitive = false;

app.findChangeTextOptions.includeHiddenLayers = true;

app.findChangeTextOptions.includeLockedLayersForFind = true;

app.findChangeTextOptions.includeLockedStoriesForFind = true;

MyDoc = App.activeDocument;

app.findTextPreferences.findWhat = "[SL 10] '"

myFounds = mydoc.findText ();

var myLib = app.libraries.item (0);

var myassets = myLib.assets.item ("SL10");

for (i = 0; i < myFounds.length; i ++)

{

myFound = myFounds [i];

myFound.remove ();

myAnchorrule = myassets.placeAsset (myFound.insertionPoints [0]) [0];

myAnchorrule.appliedObjectStyle = mydoc.objectStyles.item ("SL");

}

Hi Rajesh2373,

I changed your JS code. Please check it out.

mydoc=app.activeDocument;
var myLib=app.libraries.item(0);
var myassets1=myLib.assets.item("SL10");

app.findTextPreferences=null;
app.changeTextPreferences=null;
app.findChangeTextOptions.caseSensitive=false;
app.findChangeTextOptions.includeHiddenLayers=true;
app.findChangeTextOptions.includeLockedLayersForFind=true;
app.findChangeTextOptions.includeLockedStoriesForFind=true;
app.findTextPreferences.findWhat="[SL 10]";
myFounds=mydoc.findText();
for(i=myFounds.length-1;i>=0; i--)
{
    myFound=myFounds[i];
    myAnchorrule=myassets1.placeAsset(myFound.insertionPoints[0])[0];
    myFound.remove();
    }

var myassets2=myLib.assets.item("SL20");

app.findTextPreferences=null;
app.changeTextPreferences=null;
app.findChangeTextOptions.caseSensitive=false;
app.findChangeTextOptions.includeHiddenLayers=true;
app.findChangeTextOptions.includeLockedLayersForFind=true;
app.findChangeTextOptions.includeLockedStoriesForFind=true;
app.findTextPreferences.findWhat="[SL 20]";
myFounds=mydoc.findText();
for(i=myFounds.length-1;i>=0; i--)
{
    myFound=myFounds[i];
    myAnchorrule=myassets2.placeAsset(myFound.insertionPoints[0])[0];
    myFound.remove();
    }

var myassets3=myLib.assets.item("SL30");

app.findTextPreferences=null;
app.changeTextPreferences=null;
app.findChangeTextOptions.caseSensitive=false;
app.findChangeTextOptions.includeHiddenLayers=true;
app.findChangeTextOptions.includeLockedLayersForFind=true;
app.findChangeTextOptions.includeLockedStoriesForFind=true;
app.findTextPreferences.findWhat="[SL 30]";
myFounds=mydoc.findText();
for(i=myFounds.length-1;i>=0; i--)
{
    myFound=myFounds[i];
    myAnchorrule=myassets3.placeAsset(myFound.insertionPoints[0])[0];
    myFound.remove();
    }

THX,

csm_phil

Tags: InDesign

Similar Questions

  • problem while updating the number of lines.

    Hello..

    Im very new to obiee and now to learn things.

    I'm using the following link to learn how to create a repository and work with it.

    [http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/bi_admin/biadmin.html]

    and im facing problem by updating the number of lines.

    get a dialog like...

    There is an error while updating the number of lines for "SH"... "" SH ". "" CHANNELS ".
    + [nQSError:17001] Oacle Eroorcode:942, message: ORA - 00942:table or view does not exist the OIC OCIStmtExecute call: select count (*) channels. +
    + [nQSError:17011] SQL statement execution failed. +

    Wat could be the problem? can anyone help?

    thnx in advance.

    Have you downloaded zip included in the tutorial and placed in the right place?

  • Problem by placing the sum

    I have below result joinin three tables called TEST table
    I placed the cursor selection below
    ID     Grp     loc     type     Sum_Lower_1     sum_upper_1     Sum_qty_3
    101     abc     x     1     50     200     0
    101     abc     x     3     0     0     80
    102     abc     x     1     100     400     0
    102     abc     x     3     0     0     450
    103     abc     x     1     500     2000     0
    103     abc     x     3     0     0     230
    104     abc     x     1     30     120     0
    104     abc     x     3     0     0     50
    the result should find id, grp, loc for the followin condn. and we do the deletion of another table for these values

    If sum_qty_3 < sum_lower_1 for particular id, grp, loc

    If we take 101, abc, x 80 then < 50, so it fails

    sum_qty_3 > sum_lower_1 for particular id, grp, loc

    If we take 101, abc, x 50 then > 250, so it fails

    So, the line does not refer to this id, GRP, loc

    Finally, we should have the results below
    ID     Grp     loc
    102     abc     x
    103     abc     x
    If sum_qty_3 < sum_lower_1
     delete from product where id = 103 and grp = 'abc' and loc = 'x' and f_type = 2000 
    If sum_qty_3 > sum_lower_1
     delete from product where id = 102 and grp = 'abc' and loc = 'x' and f_type = 1000  
    How can I achieve this by using the slider or any other way

    Please help me

    Thanks in adv

    Published by: user12093849 on November 27, 2009 03:56

    Published by: user12093849 on November 27, 2009 04:08

    Is that what you are looking for?

    select * from test;
    O/P
    ID     GRP     LOC     TYPE     SUM_LOWER_1     SUM_UPPER_U     SUM_QTY_3
    101     abc     x     1     50                                 200         0
    101     abc     x     3     0                                     0       80
    102     abc     x     1     100                                  400        0
    102     abc     x     3     0                                      0     450
    103     abc     x     1     500                                 2000     0
    103     abc     x     3     0                                       0     230
    104     abc     x     1     30                                    120     0
    104     abc     x     3     0                                        0     50
    
    SELECT * FROM(
    SELECT id, grp, loc, sum(Sum_Lower_1 )sum_l,SUM(Sum_Upper_u) sum_u,SUM(sum_qty_3) qty_3 FROM Test
    GROUP BY id,grp,loc)
    WHERE sum_l  qty_3 /* you may have to change the greater than condition, i am confused by your data and the o/p you expect
    in the original post */
    
    O/P
    
    ID     GRP     LOC     SUM_L     SUM_U     QTY_3
    101     abc     x     50     200     80
    104     abc     x     30     120     50
    

    See you soon!
    Bobin

  • Problem by placing the button in the action bar

    Hey

    I would like to add a button to the toolbar action and a few other actions menu antion. But the problem is that the button also appears in the action menu.

    Here is the code:

    actions:]
    {ActionItem}

    Title: "Option 1".

    onTriggered: {}
    page 1 of var = catalogue1.createObject ();
    Navigational.push (page 1);
    }
    },
    {ActionItem}
    Title: 'Option 2 '.

    onTriggered: {}
    page 2 var = history.createObject ();
    Navigational.push (page 2);
    }
    },
         
    ActionItem
    {
    Title: 'button '.
    ActionBar.placement: ActionBarPlacement.OnBar
                    
    onTriggered:
    {
    work here.
    }
                    
    }
    ]

    The button appeared on the action bar, as well as in the action menu.

    Can someone help me?

    This is 'normal' and what users would expect, this is why I would not recommend that you change it.

    Having said that trapping however the signal AnimatingToVisibleFull or VisibleFull in the menu then hide or remove the action would be the way to go if you must.

    http://developer.BlackBerry.com/Cascades/reference/bb__cascades__actionmenuvisualstate.html

    Of course, a by-product of this is that it will disappear from the bar thus (perhaps make your app look a bit unstable).

  • Querying a file with several records in the only positional line

    Hello

    I'm trying to interview a positional file with reading. It works very well with single single-line record. But how to solve the problem when there are multiple records with the single line? How to delimit records?

    Hello

    It's a little difficult to achieve...

    In your xsd translator remove this attribute * nxsd:cellSeparatedBy = "${eol}."

    and replace with this * nxsd:arrayTerminatedBy = "${eof}."

    It worked for me. Let me know if you need a more complete example.

    See you soon,.
    Vlad

    * Give points - this is the right label to reward an answering machine (5 - useful; 10 - correct) points for their position if they answer your question. If you think it's useful, please consider points *.

  • Problems by placing the text of the word

    I am placing a MS word doc text in my master pages in InDesign and it imports only the part of the text, the first 8 pages and after a lot of blank pages, I see the little red as well as in the box in the lower right corner of the text box, but no matter how many times I continue the flow to the next column the rest of the text will not appear. The MS doc is in the fonts, I did not, but I thought I could do a search and replace once the text flows in because there are a lot of bold and italic, put in shape that I don't want to lose by copying and pasting from Word into InDesign. Anyone have any idea why this is happening, or what I can do to get around all of the 36 pages of text?

    I often see complete Word of the nonbreaking spaces files, too. It is disabling the break a too large number of nonbreaking space online to send the rest of the doc in excess. It is not rare AT ALL when you crop in ID, especially if the column width is different. A picture of great line that would too.

    In addition to reviewing the file in Word, you can place the cursor to the last point see you text in ID and open the story editor to see what is beyond. If it's not obvious (turn on nonprinting characters that you can see the nonbreaking spaces), choose the first two paragraphs in excess and leave the Dungeon options (can be on all lines solidarity or solidarity than hass all the lines together and have too many lines to fit to a page) or No Break is applied to the first line in excess. Check hyphenation, as well.

  • What happened to 'Account settings' under the tools position?

    The account settings scored yesterday and then it disappeared. I just installed the latest update this morning and it was not fixed. The same problem exists on my wife's computer.

    I should have told Thunderbird. In any case, they reappeared without my doing anything. Very weird! Thank you.

  • problems by placing the cursor on my Web page (please help)

    im not very good at web design and my last year in College, create a Web site.

    Basically I have a jquery slideshow on the homepage of my site. I placed in my HTML but everything seemed moved and I don't know how to move the real cursor with css.

    so far, this is the site: http://anishjoshi.net23.NET/

    anyone would be grateful for tell me why everything happened and how to fix it back. and also move the slide down to adjust the box.

    cheers in advance

    Try this (view source to see the code)

    http://ALT-Web.com/test/2-column-test.html

    The body background color is #222222. It is the repeating background image that I use (mosaic of 100 x 100 px) in 4 major areas.

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

    http://ALT-Web.blogspot.com/


  • problem with update of the number of lines

    Hello..

    Im very new to obiee and now to learn things.

    I'm using the following link to learn how to create a repository and work with it.

    http://www.Oracle.com/technology/OBE/obe_bi/bi_ee_1013/bi_admin/biadmin.html

    and im facing problem by updating the number of lines.

    get a dialog like...

    There was an error while updating the number of lines for "SH"... "" SH ". "" CHANNELS ".
    nQSError:17001Oacle Eroorcode:942, the message: ORA - 00942:table or view does not exist the OIC OCIStmtExecute call: select count (*) channels.
    Failed executing the statement nQSError:17011SQL.

    Wat could be the problem? can anyone help?

    thnx in advance

    Which account you use the update? SH? Check if the account has certain rights that tabel/view.

    concerning

    John
    http://obiee101.blogspot.com

  • The tools of command line for applications Android download problem

    Hello

    I can't download 'Tools of command line for Android applications' Web of BlackBerry site. When I click on the blue download button with label 'Tools command line for Android applications' in the Tools section, browser updates the website tools and nothing more.

    ARO

    Maciek

    Hi again,

    Problem solved. A few hours later, I downloaded tools successfully.

    ARO

    Maciek

  • Unable to set keyframes in the audio clip selected with the pen tool - can no longer see the volume control line after developing the clip. What could be the problem? This seems to be the problem on any project that I opened.

    Cannot set keyframes in the audio clip selected with the pen tool - cannot see even the line volume control more to set keyframes on having developed the clip. What could be the problem?  I use the first CC pro @.

    You can use the Ctrl key and then click with the regular selection tool, clicking with ctrl will make a new keyframe. in this way, have no need for the tools. CTRL has other great shortcuts that will stop you having to spend retouching pads tools too.

    If the automation keyframe line is missing, you can switch on and off in the menu sequence.

  • Problems using the tools of accessibility on PDF interactive with complex tables and fields in form (in AcroDC)

    Hello

    Although I worked earlier in the accessibility check (will be abbreviated as "axs" later) before using the Checker axs documents, what he used Windows and Acrobat XI a year ago. I am now responsible for creating interactive forms that are available on a Mac (platform I prefer), that have been designed only visually in InDesign, then transferred in Acrobat X or XI where someone placed the form fields and then handed to me to settle the tab for end-users order and make them accessible to people with disabilities (Government org). Problem is, some of these documents are extremely dense arrays, in which each cell of the table is a checkbox or a radio button I have several questions:

    (1) the order of reading has something to do with the tab order? (I spent hours to get the tab order works the way it should and do not know if by clicking any axs tool that will change and cancel all my work.)

    (2) I need to mark an entire page, more or less, as a table but when I am in reading of editing tool (TURO), I get the crosshairs of hanging around that object, but when I go to playback control panel, and then click Table, everything is deselected and nothing else happens. My goal is to get to the table to label the lines headings and column editor, etc. What is going on? What I have to do all this in the Panel tags instead?

    (3) in the Panel tags, I see a table with 30 lines, which is what I have visually, but when I select the TRs and TDs nothing gets selected on the form, so I don't know how to get the content of the form "in" these TDs... it is a very complicated document and I'm getting confused. " Not a lot of experts out there on Axs AND Acrobat DC dealing with this and I'm frustrated! There's a guy on Lynda.com including videos watched re: similar topics, but in his case, he got a table which is just text and it is small, and his method is by selecting each cell of the table with the cross and he the tags labeling a 'cell', and then go in the Panel and work on the appropriate type / # Table elements slide autour stuff in the appropriate lines etc. My picture has lines 30 and 13 columns, and approaching the fields of interactive form in most of the cells... This is not practical, but do not know if there is a quick/accurate way to get the table recognized otherwise?

    Any help is appreciated...

    Sorry,

    Very frustrated

    Yes, treating large complex tables can be the chore of accessibility PDF much time and frustrating. First question - these tables of data or layout tables? Several forms are organized visually using layout tables, but do not really present data organized in rows and columns. Marking this content in a table would be run against failure condition Matterhorn Protocol 15-004, "content is marked as a table of information that is not organized in rows and columns. Instead, work in the Tags pane, drag all the elements of content out of the structure of the table and re-tag/organize according to the needs. The Suite of PDF/UA reference has an example of form (document 10) that you can refer to-although its layout tables is relatively low. A simple structure, detroit forward should be easier to fix at a large table and also easier for a user to read assistive technology.

    However, if these are legitimate data tables... I find the reading pane to be worse than useless. The Tags pane sets the reading order for assistive technology. Something that I find useful is to break down a complex table into manageable pieces, clean up the subtables can recombine. You can also consider assessing NetCentric CommonLook - I do not use it, but it has a good reputation for working with arrays. I don't think it's available for Mac, however.

  • The developer command-line tool Setup error

    Hello

    I had a hard time trying to install the tool developer for the AEMM, since that it was released yesterday.

    Here is what I get after the execution of the installation in root mode command line:

    Anyone who managed to install the tool?

    NGP ERR! Darwin 15.3.0

    NGP ERR! argv ' / usr/local/bin/node "" / usr/local/bin/NGP "'install'"-g"'aemm.

    NGP ERR! node v5.8.0

    NGP ERR! NGP v3.8.3

    NGP ERR! path /usr/local/lib/node_modules/aemm/bin/aemm.js

    NGP ERR! code ENOENT

    NGP ERR! errno - 2

    NGP ERR! syscall chmod

    NGP ERR! ENOENT ENOENT: no file or directory, chmod ' / usr/local/lib/node_modules/aemm/bin/aemm.js'

    NGP ERR! ENOENT ENOENT: no file or directory, chmod ' / usr/local/lib/node_modules/aemm/bin/aemm.js'

    NGP ERR! ENOENT This probably isn't a problem with the NPM itself

    NGP ERR! ENOENT and is linked to the NPM is not able to find a file.

    The command line tool is still under review and will be available soon. We'll let you know when it is available.

  • How to change the properties of the drawing tools - choose 'line' and 'fill' color for tools. DC Adobe Reader.

    Since the update to version 15.009.20071 and today 15.009.20077, I have no control of the drawing of the tools - lines always 'Reds' and the 'fill' is always transparent.

    Before the update I could choose the line and color for filling tool tools right-clicking and selecting a range of.

    Is this a problem of user (me) or has been removed from this capacity?


    Your help is appreciated, as I frequently use these functions.

    Hi Thomas,

    If you use the comment line and you want to change the color or other settings then first draw a line, select and right click it and select Properties.

    Please share more details on the other tool you want to know.

    Thank you

    Abhishek

  • I placed the Web buttons on a template, but they change position each other on several pages. How is this possible and can I fix? This happens on all versions (desktop, Tablet and phone)

    Hello

    I have placed the buttons of navigation on a master page, but they change position each other on several pages. How is this possible and can I fix?

    This happens on all versions (desktop, Tablet and phone)

    (I have created the buttons with elements of the Muse, grouped them individually and link them)

    Now, I'm redoing the buttons because the client wanted smaller and the problem went away on its own.

Maybe you are looking for

  • Open migration to Active Directory directory Windows vs Mac

    OK, so I help my old school to their IT needs, because they do not have a person hired for this role. Currently, they have a center where the staff use computers based on Windows 10 10 (systems of Core 2 Duo, especially assembled; all about 3 years)

  • Portege R700-185 - software to use direct access keys Fn

    HelloI had my laptop to be completely reinstalled (Windows 7 64-bit)... but not with the Toshiba software. I'm fine with the reinstall, but I no longer use the Fx (on top of the keyboard) to change the configuration of the system, such as the F9 key

  • Comm port not detected by VISA / MAX after the device power cycle connected

    I have a device communicating via USB virtual comm port. The device and labview program both work very well, most of the time. The program is designed for the automatic connection for the connected equipment. It works perfectly when I unplug and reco

  • Why unlimited video?

    A boredom that I face each time I turned off and restart my phone (which was recommended as every day by SE) is the appearance of 2 services Video Unlimited hogging resources by Sony, they absorb more combined 10 MB!, and I have to stop them everyday

  • Player does not recognize that the CD or DVD is loaded

    A player does not recognize that there is a disc inserted - when I try to use, it ejects and ask valid.  I tried several CD and DVD with the same answer.  I downloaded the BIOS and readers say that it works correctly.Can you help me please?