[JS] [CS5.5] how to know the position of the character in the story after grep?

Hi all

I wich know how can I know the position of the first character to the story of his mother, after a findGrep replace?

As an example my story contain:

Lorem ipsum dolor sit amet, adipiscing elit computer.

I get dolor and replace it with TEST

Lorem ipsum dolor sit amet, adipiscing elit computer TEST.

How to know the position of T compared to history, when I get a PointInsertion after changeText?

THX

"PointInsertion" defines all the positions that you could ever want - see http://jongware.mit.edu/idcs5js/pc_InsertionPoint.html

For "position relative to history" you may want to the index, which is 0 for the first character, 1 for the next (uh, and so on).

petiout wrote:

[...] When I get a PointInsertion after changeText?

In fact, you do not get 'a PointInsertion', you get an array of references to objects in plain text. But the text is a superclass of PointInsertion (and much more "texty" classes), so, in general, it would be prudent to use any PointInsertion method and property as if you InsertionPoints.

Tags: InDesign

Similar Questions

  • I forgot my password for windows 7... and please tell me how to know the password to open with?

    I forgot my password for windows 7... and please tell me how to know the password to open with?

    I forgot my password for windows 7... and please tell me how to know the password to open with?

    Keep passwords secure - Microsoft on passwords strategy
    http://support.Microsoft.com/kb/189126

    What to do if you forget your Windows password:
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-to-do-if-you-forget-your-Windows-password

  • How to know the product key for windows7

    How to know the product key for windows7

    Look for the COA sticker attached to your computer, usually downstairs or in the battery compartment if it of a laptop and is preinstalled on your computer. Or upper/side if it's a desktop computer.

    If you bought Windows 7 from the Microsoft Store:

    Find your key product if your purchase of Microsoft Store:
    http://store.Microsoft.com/Help/FAQ?Err=T2#AT2

    You can find your Windows product key on the label supplied with the package provided with your copy of Windows

  • How to know the tables used in packages of a schema.

    How to know the tables used in packages of a pattern that I have connected.

    SELECT DISTINCT referenced_owner, referenced_name

    Of all_dependencies

    Owner WHERE = "MY_USER_NAME".

    AND type ('PACKAGE', 'BODY of PACKAGE')

    AND referenced_type = 'TABLE '.

  • How to know the schema of BIEE instance repository

    I have several BIEE instance and equivalent manner several repositories created by RCU. How to know the link between the repository and POET?

    Thank you

    Take a look on


    $FMW_HOME/user_projects/domains/bifoundation_domain/config/jdbc/mds-owsm-jdbc.xml

    The jdbc-driver-params shows you the database and the schema that it uses, which tells you what you want to know.

  • How can new computer, I install my Photoshop CS5? If I switch to CS5.5 How install on the new computer?

    How can new computer, I install my Photoshop CS5? If I switch to CS5.5 How install on the new computer?

    Hello

    You can see the download link below.

    Download the CS5 products

    Download CS5.5 products

    Concerning

    Gilles marneffe

  • How to know the name of the file in the file/FTP adapter

    IAM again at the file/FTP adapter,

    whenever we use files by ftp/adpter,

    afrter choose system of remote/local server file.

    How I can well filename?

    How can we handle a fault, if the file selected, but the data is wrong?

    How to know the date, when where selected file?

    Please give me the solution

    Check this: http://docs.oracle.com/cd/E25178_01/integration.1111/e10231/adptr_propertys.htm#CHDJBDHC

    Search this topic: properties of table A-5 JCA for Oracle file adapter: standard properties.

    Once the file has been picked up, you can easily extract the details of file using "jca.file.FileName" etc. (see above).

    Rest should be treated by you, depending on the scenario you have.

    HTH

  • How to know the version of the built-in weblogic Server

    Hi experts,

    use jdev11.1.1.5.0

    I h had big doubt ;)

    How to know the version of the built-in weblogic Server

    I think I'm using weblogic10.1.3. but am not sure?

    so, how can I found out.

    This diary. but I don't see any information on the version.
    *** Using port 7101 ***
    "C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\bin\startWebLogic.cmd"
    [waiting for the server to complete its initialization...]
    .
    .
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m
    .
    WLS Start Mode=Development
    .
    CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    .
    PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\DevSuiteHome_1\jdk\jre\bin\classic;C:\DevSuiteHome_1\jdk\jre\bin;C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    .
    ***************************************************
    *  To start WebLogic Server, use a username and   *
    *  password assigned to an admin-level user.  For *
    *  server administration, use the WebLogic Server *
    *  console at http:\\hostname:port\console        *
    ***************************************************
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Duser.timezone="+05:30" -Dweblogic.nodemanager.ServiceEnabled=true  -Xverify:none  -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server  -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1  -Digf.arisidbeans.carmlloc=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\carml  -Digf.arisidstack.home=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\oracle\store\gmds   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath  weblogic.Server
    <Feb 17, 2012 5:50:39 AM GMT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
    <Feb 17, 2012 5:50:39 AM GMT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
    <Feb 17, 2012 5:50:39 AM GMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.> 
    <Feb 17, 2012 5:50:40 AM GMT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638 > 
    <Feb 17, 2012 5:50:42 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
    <Feb 17, 2012 5:50:42 AM GMT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
    <Feb 17, 2012 5:50:42 AM GMT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
    <Feb 17, 2012 5:50:42 AM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00220. Log messages will continue to be logged in C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.> 
    <Feb 17, 2012 5:50:42 AM GMT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.> 
    <Feb 17, 2012 5:50:48 AM GMT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
    <Feb 17, 2012 5:50:50 AM GMT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
    <Feb 17, 2012 5:50:50 AM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\access.log00102. Log messages will continue to be logged in C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\access.log.> 
    <Feb 17, 2012 5:50:56 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
    <Feb 17, 2012 5:50:56 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
    <MessageLocalizationHelper> <getLocalizedMessage> The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.
    <Feb 17, 2012 5:51:02 AM GMT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application GeneralLedger is not versioned.> 
    <Feb 17, 2012 5:51:07 AM GMT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application Rapppdf is not versioned.> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00208. Log messages will continue to be logged in C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 
    <Feb 17, 2012 5:51:27 AM GMT> <Warning> <Server> <BEA-002611> <Hostname "rmsys0061", maps to multiple IP addresses: 192.168.0.161, 192.168.2.161> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.2.161:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.161:7101 for protocols iiop, t3, ldap, snmp, http.> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
    <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 
    IntegratedWebLogicServer startup time: 51640 ms.
    IntegratedWebLogicServer started.
    [Running application frmtesting on Server Instance IntegratedWebLogicServer...] 
    [11:21:30 AM] ----  Deployment started.  ----
    [11:21:30 AM] Target platform is  (Weblogic 10.3).
    [11:21:31 AM] Retrieving existing application information
    [11:21:31 AM] Running dependency analysis...
    [11:21:31 AM] Deploying 2 profiles...
    [11:21:32 AM] Wrote Web Application Module to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\frmtesting\ViewControllerWebApp.war
    [11:21:32 AM] Wrote Enterprise Application Module to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\frmtesting
    [11:21:32 AM] Deploying Application...
    <Feb 17, 2012 5:51:33 AM GMT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application frmtesting is not versioned.> 
    [11:21:40 AM] Application Deployed Successfully.
    [11:21:40 AM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [11:21:40 AM] http://192.168.0.161:7101/frmtesting-ViewController-context-root
    [11:21:40 AM] Elapsed time for deployment:  11 seconds
    [11:21:40 AM] ----  Deployment finished.  ----
    Run startup time: 10812 ms.
    [Application frmtesting deployed to Server Instance IntegratedWebLogicServer]
    
    Target URL -- http://127.0.0.1:7101/frmtesting-ViewController-context-root/faces/untitled6.jspx
    http://127.0.0.1:7101/console/login/LoginForm.jsp. He said that the administration weblogicserver 11g console

    At the base (copy of right section) 10.3.5.0

    11.1.1.5 JDev will use WLS 10.3.5 as its built-in Server

  • How to know the version of the AMS

    Hello community of AMS.

    I would like to know how to know the version of the AMS, installed on the server to the client. I guess I could find opt/adobe/fms, but I had no success to find (I looked in the conf and license file).

    Thanks for your help

    The call for admin API getLicenseInfo gives this information:

    http://help.Adobe.com/en_US/adobemediaserver/AdminAPI/WSa4cb07693d12388431df580a12a34991eb c - 8000.2.3.html #WS5b3ccc516d4fbf351e63e3d11a0d3edb98 - 7fb2AdminAPI.2.3

    Its also printed at the top of the log files:

    [root@ams ~] # sed n 3 p' /mnt/logs/admin.00.log

    #Software: adobe Media Server 5.0.1 r1076 x 64

  • How to know the database uses pfile or spfile?

    Hi guru

    How to know the database uses pfile or spfile?



    Thank you

    Thank you for this question of doc!
    Please type in sql * show spfile parameter.
    If it is empty, you do not use a spfile.

    --------------
    Sybrand Bakker
    Senior Oracle DBA

  • How to know the degree of optimal parallelism for my database?

    I have an important application on my (Oracle 10,2,0) databae and the box has 4 CPU. All tables are not partitioned. Should I set the parallel degree by myself?

    How to know the degree of optimal parallelism for my database?

    As far as I am concerned there is no optimum degree of parallelism at the database level. The optimal value depends on the query based on the plan in use. This may change over time.

    It is not so difficult to abuse of the PQO and end up harming the overall database performance. PQO is a brute force methodology and should be applied with caution. Otherwise, you end up with results inconsisten.

    You can let Oracle manage, or you can manage it on the level of education through advice. I do not have to specify the degrees of parallelism to the object level. As I said, no two queries are exactly alike and what is right for a query on a table cannot be good for another query on the table.

    In the case of doubt put in place the system to let Oracle manage. If you ask really, it's how many sessions to allocate PQO then look at your reports Statspack or AWR and judge your system load. Monitor v$ px_session and v$ pq_slave to see how these views show activity.

    IMHO - Mark D Powell-

  • What specific products are part of the complete abo for cs5-client, which will be the price after one year and will be the rice price information early enough to cancel the contract? Best regards Jürgen

    What specific products are part of the complete abo for cs5-client, which will be the price after one year and will be the rice price information early enough to cancel the contract? Best regards Jürgen

    For details please see the link below:

    Pricing plans and creative Cloud membership | Adobe Creative Cloud

    Otherwise, you can reach the Adobe sales as well.

  • How to know the position of the object in a script?

    I want to know the number of position or page when I find something (e.g. when using findtext()) and move to that. It's the same function find/change in indesign, but I can't find the position value and can not move the position of the object.

    How can I make this script?

    Thank you

    Use:

    myText.showText ();

    @+

    Marc

  • How to know the position of current ListView

    Hello. I'm stuck with this problem. I want to know the function or property showing current listview is scroll to the bottom or top. as the isBottom() or isTop() function

    because it's in the middle of the night for many people ;-)

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__listscrollstatehandler.html

  • How to know the value of time corresponding to the indices of blood

    Hello

    I have my experimental data such as time, current and voltage in three columes in an excel sheet. I discovered the location of the tip (index) of the voltage signal by the Ridge detector function. Now, I want to know the peaks of voltage corresponding to time. How to do this?

    Hello

    Finally I found the solution to my problem. For values of time to the leading position. I used the for loop and a shift with a function register no. I used the crest detector function and the output is connected to the function of index table, then the index of this function is connected to the shift register which is initialized to 0. The output of the array index is reconnected to the terminal of the index of another table of index function whose power is connected to the Bay of time. The output of the function is placed outside the loop as an indicator.

    Regards-

    bdcpp08

Maybe you are looking for