Problem in placing line tool position

Hi, Can any one solve this problem.
I have created script for line tool but it not running in particular place. I will explain in detail.
Job Ms
I/P: America is a [SL 10] country.
Error in output: America is a country .................   (or)  ................. America is a country  (or)  America  ................. is a country (Rule is Placing somewere else i need correct position)
Original output should be like this
Error in output: America is a  ................. country
I need a 10 mm underline instead of [SL 10]
It should replace [SL 10] and put a 10 mm rule in that position.
In my script rule is creating but the rule is placing some were else. Please solve this problem. Ihave created 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 csm_phil,
Iam sorry last week iam out of station this script is working well but still some problem occurs.
The problem is how to find SL20, Sl30, Sl40, Sl50 in same manuscript.
mydoc=app.activeDocument;
var myLib=app.libraries.item(0);
var myassets=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=myassets.placeAsset(myFound.insertionPoints[0])[0];
    myFound.remove();
var myassets=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=myassets.placeAsset(myFound.insertionPoints[0])[0];
    myFound.remove();
var myLib=app.libraries.item(0);
var myassets=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=myassets.placeAsset(myFound.insertionPoints[0])[0];
    myFound.remove();
This script is working for sl 10 only please check and confirm

Similar Messages

  • Lightroom 5, Mac. Problem with the Radial Tool. Marquee Lines disappear.

    Lightroom 5 Mac. Problem with the Radial Tool. I use this tool a lot. I must have hit a hot key by accident because between photos the marquee lines have disappeared and i don't know how to get them back. Without the marquee lines there I cannot rotate or expand the radial tool.

    I have attempted to uninstall, empty trash and a fresh download from Adobe. The problem is still there...

  • Problems with Line Tool Photoshop CS4

    I have just upgraded to CS4 running on a new MacBook Pro 10.6.3. I've used Photoshop 7 extensively and feel quite able to get around the CS4 version. The problem I have is in creating a line in Photoshop - the line colour will not fix or change other than black on white background, or white on a black background. I can't seem to change it what ever I do? Is there a bug or incompatibility with the new operating system of my MAC? 

    Is the Line Tool set to Shape Layer, Paths or Fill Pixels (in the Options Bar)?

  • Line tool problems

    When I use the line tool the line has a blue box around it and when the fill option is used the fill ignores the line entirely, how do I stop this?

    Which product, Illustrator?

  • Running a command in a command line tool in fastest way

    Before anything I want to clarify some terms : 
    apk
    file (android application package file) : equivalent to executable (exe) files on windows
    aapt.exe
    : A command line tool which comes with android sdk in order to fetch information of an apk file (It obviously has other usages)
    note : This question is not about an android feature. It's all about C# and functionality of .Net framework 
    An
    apk file has a name just same as any other file, but it has a internal name (which will be shown when you install apk file on android os as name of application) 
    with
    aapt.exe I can get internal name of an apk using following command :  
    aapt
    d badging "<apk path>"
    I
    have copied aapt.exe where executable file of my c# application is and I want  :
    Enter
    above command for each apk in selected directory (using GetAllFiles method)
    I want to get internal names of apk files and
    I've tried a lot of ways and I've searched a lot. finally this is what I've got : 
    Process proc = new Process();
    proc.StartInfo.FileName = "cmd.exe";
    proc.StartInfo.RedirectStandardInput = true;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.StandardOutputEncoding = System.Text.Encoding.UTF8;
    proc.Start();
    using (StreamWriter sw = proc.StandardInput)
    foreach (string path in Directories.GetAllFiles(@"E:\apk", "apk"))
    sw.WriteLine("aapt d badging " + "\"" + path + "\"");
    //following line doesn't work because sStandardInput is open
    Debug.WriteLine(proc.StandardOutput.ReadToEnd());
    // There will be a really huge amount of text (at least 20 line per sw.Writeline) and
    //it impacts performance so following line is not really what I'm looking for
    Debug.WriteLine(proc.StandardOutput.ReadToEnd());
    GetAllFiles is
    a function that I've created to fetch all apk file full path. It gets two argument. First argument is path and second one is extension of file you want its full path to be fetched.
    This is not final code.
    As I've commented it out first Debug.WriteLine doesn't
    work and second one is not a good idea. how should I get output from proc?
    I have tried running process by argument and its awful :)
    As another approach :
    Because apk files are basically zip files I can extract them get what I want from them.
    There is an xml file named Androidmanifest.xml in every apk file.
    Androidmanifest.xml is like an ID card for an apk file and apk internal name can be found in it but here are some problems with this approach : 
    1. Androidmanifest.xml is not a plain text file. It's coded and it requires a lot of complexity to decode it
    2. application name (or apk internal name) is an attribute in this file and it's value is not a string value. It's a reference to a file where strings are stored and worst thing is it's not an easy to find out reference. It's just a number

    And you don't get any output from it? Maybe you're passing the arguments incorrectly?
    No. I don't get any result and I have checked arguments and it's correct.
    But you are already running a separate process for every apk file. You start a single cmd.exe and then send it commands that will cause aapt to be run for every file. Unless aapt accepts multiple apk filenames on the command line there's no way
    around using separate processes.
    I didn't know that. anyway speed in this way is much more rather than creating a function. creating a Process object in it and calling function for each apk file.
    I read somewhere that it's possible to run multiple commands in cmd by & operator but as you said I think every command runs aapt. I have tested this approach too and it's very very slow
    fastest approach I have found is what I have wrote here and speed is about  0.6 per apk file which is still slow when there is thousands of apk files.
    I tried an application that does same thing (fetching apk information) and in it's installation directory I found aapt.exe which means it uses this tool to get information but speed is significantly faster rather than my application.   
    So what's your suggestion about this? 

  • SSRS 2008 R2 - Try to Open RDL - I got an error saying "Failed to open report 'reports_List.rdl' ... "Invalid character in the given encoding. Line 1, position 1".

    Hi,
    I am working on SSRS 2008 R2.
    My Colleague gave me one RDL. I have added it to my SSRS project on BIDS  & Tried  to Open by double-click on that RDL.
    I got a popup error saying "Failed to open report 'reports_List.rdl'. clicked on
    Details button & noticed error explanation as . "Invalid character in the given encoding. Line 1, position 1". 
    When i try to View Code of this RDL, I got another error message saying "Exception from HRESULT: 0x80041FEB"
    Can anybody suggest me ... what exactly the root cause of it?  how can i resolve it ?
    thanks a lot in advance !
    best regards,
    Venkat

    Hi Venkat,
    Did you use Visual Studio 2010 on your test? It is a known issue of Visual Studio 2010. Please refer to the following document. It has fix method provided by the Microsoft Web Development Tools team to work around the issue.
    https://connect.microsoft.com/VisualStudio/feedback/details/552134/hresult-error-creating-timetracking-sample-web-site-project
    Since the issue related to Visual Studio. I suggestion you post the question in the following forum:
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=Vsexpressvb 
    It is appropriate and more experts will assist you.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Command Line Tools installs the latest version of clang (and others) in /Library/Developer/CommandLineTools/... but not in /usr/bin/

    I've upgraded Xcode to the latest 5.1 Installed Command Line Tools via xcode-select --install Homebrew tells me "A newer Command Line Tools release is available"
    brew --config:
    Xcode: 5.1 CLT: 5.1.0.0.1.1393561416 LLVM-GCC: build 2336 Clang: 3.1 build 318
    Checking my clang executable:
    $ /usr/bin/clang --version Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
    $ /Library/Developer/CommandLineTools/usr/bin/clang --version Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
    So it appears Command Line Tools didn't install clang (and perhaps other executables) into /usr/bin? I checked my other laptop (w/ Mavericks), and /usr/bin/clang is version 5.1.
    So I'm guessing this is the problem? I've tried to reinstall Command Line Tools as sudo, but now it won't let me install again (says software isn't currently available).
    Can anyone help me with this? I've spent hours on it now, but can't find a solution.
    Thanks

    BTW, I installed Xcode 5.1 from the Store, but have never run xcode-select --install.  Here is the verbose output from a clang.
    xew ~/$:clang -v -o hello main.c
    Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
    Target: x86_64-apple-darwin13.1.0
    Thread model: posix
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.9.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name main.c -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 236.3 -v -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/bin/../lib/clang/5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk -fdebug-compilation-dir /Users/xew -ferror-limit 19 -fmessage-length 100 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /var/folders/zf/d5vqmmtn5mq7h6766jtlkrvr0000gn/T/main-353995.o -x c main.c
    clang -cc1 version 5.1 based upon LLVM 3.4svn default target x86_64-apple-darwin13.1.0
    ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /SDKs/MacOSX10.9.sdk/usr/local/include"
    ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /SDKs/MacOSX10.9.sdk/Library/Frameworks"
    #include "..." search starts here:
    #include <...> search starts here:
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/bin/../lib/clang/5.1/include
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/include
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk/usr/include
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk/System/Library/Frameworks (framework directory)
    End of search list.
    "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /usr/bin/ld" -demangle -dynamic -arch x86_64 -macosx_version_min 10.9.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ SDKs/MacOSX10.9.sdk -o hello /var/folders/zf/d5vqmmtn5mq7h6766jtlkrvr0000gn/T/main-353995.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/ usr/bin/../lib/clang/5.1/lib/darwin/libclang_rt.osx.a
    xew ~/$:

  • Acrobat pro: how set default properties for arrow and line tool seperately?

    I have a problem with the 'comment and markup' tools in Adobe Acrobat Pro.
    I would like to change the defaults of some of the tools, eg the arrow and the line tool.
    This can be achieved by right-clicking on something drawn using the tool in question and then selecting 'properties' - or by selecting the tool and then press ctrl+E, wich opens a 'Callout Tool Properties', and then change what you want there. The latter option keeps the changes as defaults - the former offers a box to tick in the 'properties' dialogue that opens - or, you can right-click on the object again after having changed the properties, and then select 'Make Current Properties Default'.
    My Problem is now, that, apparently, you cannot choose and save default properties freely and for each tool. I woul like to have the default properties for the line tool set as the following:
    -line color: yellow
    -line thickness: 8pt
    -opacity: 60%
    and fot the arrow tool as this:
    -line color: red
    -line thickness: 1pt
    -opacity: 100%
    This all works fine as long as the program is open. As soon as I exit and start it again opening another document /the same one again, the arrow tool changes to
    -line color: yellow
    -opacity: 60%
    only the line thickness remains at 1pt.
    If I change the properties of the line to the ones I want for the arrow, the arrow properties remain unaltered if I close Acrobat Pro.
    Why do these properties interfere? Why is it "line color/thickness" in both? Why, then, do only the opacity and the color interfere, but not the thickness - even if it's the latter two properties that are bot called "line xxx"? Why does Acrobat not save all properties for these two shapes seperately - even IF the two shapes are both of a line-like kind?
    Is there a way to get around this?

    Trobbel - This indeed is puzzling behavior. Clicking 'Make Current Properties Default' should preserve the default  appearance for each. I don't have a solution, but merely a couple of suggestions:
    1) Make sure you have installed any available upgrade for your version of Acrobat Professional.
    2) Consider using the line tool exclusively - you can add an arrowhead and make one tool perform both tasks.
    Hope this helps. /rmbrown

  • Only one top level element is allowed in an XML document. Line 2, Position 2

    I get this error when I try to run an xsql query with a where clause:
    Only one top level element is allowed in an XML document. Line 2, Position 2
    <font size='-1' face='monospace'>XSQL-005: XSQL page is not well-formed.</font><BR>
    -^
    Here is the xsql query I tried to use.
    <?xml version="1.0"?>
    <xsql:query connection="xmlbook" xmlns:xsql="urn:oracle-xsql">
    select * from companytable where companynumber < 1000;
    </xsql:query>
    null

    You need to escape certain characters in order to make XML documents well formed. The problem in this case is the less than sign between companynumber and 1000. You should replace it with <
    I recommend reading a good XML book - "Building Oracle XML Applications" by Steve Muench, for instance.
    Brian

  • How are Windows Server Backup and Command Line Tools used in vCSHB installation?

    How are Windows Server Backup and Command Line Tools used during the installation of vCSHB?  Is it required in all types of deployments (PtoV, VtoV, PtoP)? Is it used to create the files that are put in the file share for the second node to use during vCSHB installation or is it only used during a vCSHB clone operation of a Physical to Physical deployment?  Are these tools not used in some deployments?

    You need Windows Server Backup installed on source and destination, and during the installation of vCSHB the installer will invoke the wbadmin (Windows Server Backup Utility) and will backup configuration and application data (application data is optimal but can decrease the sync time after installation of secondary node). On the secondary node you will need only run the vCSHB installer and everything will be restored.
    Check this blog entry for some more info about some problems in P2P deployment: http://www.vcoportal.de/2013/12/vmware-vcenter-server-heartbeat-restore-on-a-second-node-a-journey/

  • Problems with the line chart - dashboard

    I have a problem in the line chart in the dashboard SP4.
    Clicking on the legend of the graphic , the serie (line) disappears. Clicking again in the legend, the line appears but the markers don’t.
    Someone knows how to solve this problem?
    Follow the examples.
    Thanks.

    Hi Jane,
    This is definitely the tool problem.
    Might be you can try restarting xcelsius or your computer (sometimes it works, really !)
    Just out of curiosity, why do you want to clink on legends.

  • Problem in AT LINE SELECTION event

    Hi All,
    I have a problem in AT LINE SELECTION event.
    I have an interactive report.
    In the report after selection on Selection Screen
    i have to show some totals.
    Now when I click on the no wgich is shown against the total
    the report should further drill down on the details
    like showing Order No,Material Description etc.
    Breakdown totaling qty of ASOu2019s against u2018Kit delivery areau2019 column
       = 100
    Breakdown totaling qty of ASOu2019s against u2018Kit req timeu2019 column  = 100
    Breakdown totaling qty of ASOu2019s against u2018delivered byu2019 column  
      KSINGH    1.
      BJALLOS  5.
    Breakdown totaling qty of ASOu2019s against u2018Kit req dateu2019 column
    Now my problem is that first    two breakdowns of total are constant.
    But as you can see afainst Delivered By and against Date it can be dynamic.
    In first two cases since i Knew there positioning in the screen i show them using sy-lilli.
    But how to show for other two totals.
    Please help me on this with some code example if you have.
    Thanks in Advance,
    Saket.

    hello saket,
    i m not really clear with ur problem,
    still i can tell u hide the all the fields in
    start-of-selection,that u gonna required in at line selection,
    and then u can use them to total or for displaying corresponding data.

  • Bug with Illustrator Line Tool

    Hi
    I am trying to draw a shape using the illustrator line tool, and it always seems to revert to 1pt when I am using it within a shape, even when I manually change it to 0.5pt in the top bar, it does not change. I will go larger than 1pt but not smaller for some reason. It works when the line is by itself. As in not attached to a shape but as soon as you move it to connect with the rest of the shape it reverts to that large size. please help
    Thanks
    Rebecca

    Oh thanks! I didn't realise this could effect specific tools as well as the placement of objects, Im having another problem which I thought would be solved by turning off the 'Align to Pixel Grid' but it didn't work

  • How to configure Team explorer 2010 command-line tool in Mac x os. configure shell or system path to include the folder to which (TF client) unzipped archive available.

    How to configure Team explorer 2010 command-line tool in Mac x os.
    Hot to configure shell or system path to include the folder to which (TF client) unzipped archive available. I am new to Mac X OS. Please help.

    Dmitry,
    Thanks for the great writeup!
    I think I've got my universal instant client libraries built correctly.
    I too am using MacBook Pro but I'm getting stuck at building the 32 bit oci8.so
    First problem is my pecl download (ver 1.4.1) did not contain a "configure" file so ./configure failed.
    I used configure from /sw/....... to try to continue.
    Second problem. Using existing configure from /sw/.... I used an appropriate variation of your example command
    (./configure --with-oci8=instantclient,/usr/local/oracle/instantclient_10_2 && make).
    Things look like everything ran OK but The output does NOT include an oci8.so file
    So I guess my question is: Which "configure" should I be using? And if it is not the one on the system under /sw/...
    where would I get it since it doesn't come in the pecl download?

  • Use third party framework in Command Line Tool

    Hi.  I'm writing a small application for a friend of mine, and basically what it does is lets you put in some information, and then creates and stores that information in an Excel file.  However, all of my research suggests that C++ doesn't work nicely with Excel files, so I found a 3rd party framework called LibXL which provides C++ with the ability to create and edit Excel files.  My only problem is getting my Command Line Tool to use this framework.  I'm not even sure if it is possible, but if someone could help me out, I would really appreciate it!
    P.S: I'm using XCode 4.2 to write this application, and I'm using Command Line Tool because the application has to be useable on Windows.

    That last one is an excellent punch line!
    >I found a 3rd party framework called LibXL which provides C++ with the ability to create and edit Excel files.
    That should be coming with a manual. Some frameworks can be included in their entirety into the program you are writing, where for others you can only reference to it and you have to distribute the framework file(s) along with your own application. This doesn't sound like one, but an external framework may only be meant for GUI functions, in which case you cannot write a Terminal-only program.
    But here comes the kicker:
    >P.S: I'm using XCode 4.2 to write this application, and I'm using Command Line Tool because the application has to be useable on Windows.
    It's possible for you to *write* the program but not to compile it. (Actually, you *can* compile it but then you have a Mac Terminal program, not a Windows one.) Even if you know what you are doing and are happy with sending over the source code, together with instructions on how to compile it under Windows, this implies you would only and *exclusively* use functions that are available in compilers for Windows. That rules out your External framework idea -- unless there is a Windows version available as well (do check for that; if this is an Open Source project, there very well may be.) But you are still programming "blind", and if you get it to work on your Mac (and nevermind the problem with the framework being external, because you won't need to send it over anyway) but your friend canNOT make it work under Windows, you won't know if it's because the Windows version of the compiler doesn't accept the external library, or it's the wrong version, or you accidentally used a Mac-only feature anyway, or the friend does not know how to compile ... et cetera, et cetera.
    Best advise is to install VirtualBox (or something similar) on your system, test all you want with XCode but then, after you got it to work, carry over the project into Windows and start a-new.

Maybe you are looking for

  • Can i have 2 users on one iTunes instillation

    Thank you for reading my question, i would like to explain my situation properly. I have a PC and my father has a MAC at a different address in the UK. We both have iPhones and both struggled with iTunes to the point where we didn't use it. My brothe

  • Logical Database design and physical database implementation

    Hi I am an ORACLE DBA basically and we started a proactive server dashboard portal ,which basically reports all aspects of our infrastructure (Dev,QA and Prod,performance,capacity,number of servers,No of CPU,decomissioned date,OS level,Database patch

  • Searching through archived docs from Filenet in SAP tcode OAAD

    We archive our payroll journals at runtime to Filenet - some can be up to 3500 pages. We can easily retrieve those docs using tcode OAAD in SAP. Once retrieved, however, we are having issues searching within the document. For example, if we search fo

  • More shared variable help

    Yep, I'm attempting a large shared variable project, so, I guess it's time to get active on the board again.  Anyway, so I had this problem; http://forums.ni.com/t5/LabVIEW/Getting-a-list-shared-variable-references/td-p/1817829 but we got that figure

  • Unable to install Photoshop CS6 Extended

    I used the Adobe Support Advisor to check why and it said it had no errors. It is the Education Edition. I have windows 8. recently bought PC. Why does it not install?