How to locate the first insertion point on every page?

I need to paste some same anchored objects on every page for exporting RTF format.
So I need to locate the first insertion point on every page.
Then, I use the code below (make a simple example):
for(i = 0; i < app.documents[0].pages.length; i ++){
     app.select(app.documents[0].pages[i].textFrames[0].insertionPoints[0])
     app.paste()
But when a file has a very long table spread over several pages, the location operation will select the insertion point before the table --- the starting point of the table.
For instance, a table start on page 3 and end on page 10
app.documents[0].pages[4~10].textFrames[0].insertionPoints[0])  can't select the first insertion point from page 4 to page 10. (In terms of scripting, the insertion point exists before the very long table starting on page 3.)
How can I solve the problem? Thanks in advance.

I dont know exactly what you are trying to do but you can try this. If you have table which runs trough multiple pages, you can first divede this tabel, that cells on separate pages would represent stand alone table. Than you can fit textframe to this table. When addressing indention poin you will get right position.
In your case when table start at 3rd and ends on 10th page you would get 8 tables in 8 textframes on its own page. If textframes are linked and table is smaller than textframe you will have problem when addressing first insertion point on 4th or any other page. That why you should fit textframe to table:
var bl=app.activeDocument.pages[1].textFrames[0].insertionPoints[0].baseline
var tf=app.activeDocument.pages[1].textFrames[0];
var gb=[tf.geometricBounds[0],tf.geometricBounds[1],bl,tf.geometricBounds[3]];
tf.geometricBounds=gb;
Now when you set
app.activeDocument.pages[1].textFrames[0].insertionPoints[0] you will get position before table or
app.activeDocument.pages[1].textFrames[0].insertionPoints[-1] you will get position after table

Similar Messages

  • How to locate the correct image file before reading/saving it

    Hi,
    I would like to find out how to copy/save/read image files from certain website in Java, particularly to locate the right one from various relative URL links on the same website. Below is an example to look at:
    On the main web page
    By selecting (http://www.abc.com/Public/Details.aspx?adid=2007103609) on a tiny camera icon that consist of source code (<td class="even"><a target="_blank" href="http://www.abc.com/Public/Details.aspx?adid=2007135110"><img src="/images/camera.gif" width="19" ...></a></td>) directed me to another page with the actual photo.
    The source code of this secondary page where the photo is located are as follows:
    <script language="JavaScript" type="text/javascript"><!--
    </script>
    <style type="text/css">@import url("http://fdimages.def.com.au/cui/netstrip-20050427.css");</style>
    <div id="networkStripTop">
    <a href="http://www.def.com.au/" onclick="linktop(this);" target="_top"><img src="http://fdimages.def.com.au/cui/digital.gif" height="17" width="95" class="logo" alt="DEF Digital" /></a>
    <div class="links">Any suggestion would be much appreciated.
    Many thanks,
    Jack

    Hi All,
    Could someone give me a hand with suggesting on how to locate the correct links (from multiple web pages) of the image file? I still could not proceed further on this issue.
    There is no problem with saving/reading the file once it is accurately identified.
    Please move it to the Java Technology & XML forum if it is not already in it.
    Many thanks,
    Jack

  • How to locate the source code which populate the SO number?

    Hi,
    For example:
    In T-code: VA01
    Put your cusor on the screen field : Standard Order
    Then press F1, get the technical info of this field as below shows:
    Screen field     VBAK-VBELN
    Program name     SAPMV45A
    Screen no.       4001
    So my question is, how to locate the source code which exactly to populate the SO number into VBAK-VBELN by the system automaticallly.
    As assumed that the system is generate this kind of SO autuomatically, and its number range is defined in SPRO.
    I just want to find out the coding part which gengerate the SO number.
    Want to see the source code of that...
    How to find it???
    Thanks.

    Hi Deepak,
    Thanks for the info..
    But i think i am also know that.
    Questions is dont know how to find the KEY statements that exactlly to generate the number...
    Anyway, 2 points to you.

  • How to locate the "11 Bug"

    Hello,
    This question Must be post again and again by many fellow , but they are so widely different each other .So , the core problem is :
    HOW TO LOCATE THE Point where the JVM crash
    so , if any one could give me a solution or say something about it ,I will feel thank very much ,thank you
    Envirament :
    RedHat 7.3, HP-NetServer 2000 Machine Tomcat 1.18
    Unexpected Signal : 11 occurred at PC=0x404528FC
    Function=array_addressing__5Parse9BasicTypeiPPC4Type+0x118
    Library=/usr/local/j2sdk1.4.0/jre/lib/i386/server/libjvm.so
    Current Java thread:
    Dynamic libraries:
    08048000-0804d000 r-xp 00000000 08:02 1090395 /usr/local/j2sdk1.4.0/bin/java
    0804d000-0804e000 rw-p 00004000 08:02 1090395 /usr/local/j2sdk1.4.0/bin/java
    40000000-40013000 r-xp 00000000 08:02 356953 /lib/ld-2.2.5.so
    40013000-40014000 rw-p 00013000 08:02 356953 /lib/ld-2.2.5.so
    40014000-40021000 r-xp 00000000 08:02 356951 /lib/i686/libpthread-0.9.so
    40021000-40028000 rw-p 0000d000 08:02 356951 /lib/i686/libpthread-0.9.so
    40029000-4002b000 r-xp 00000000 08:02 356966 /lib/libdl-2.2.5.so
    4002b000-4002c000 rw-p 00001000 08:02 356966 /lib/libdl-2.2.5.so
    4002c000-40494000 r-xp 00000000 08:02 1106859 /usr/local/j2sdk1.4.0/jre/lib/i386/server/libjvm.so
    40494000-4064c000 rw-p 00467000 08:02 1106859 /usr/local/j2sdk1.4.0/jre/lib/i386/server/libjvm.so
    40661000-40673000 r-xp 00000000 08:02 356970 /lib/libnsl-2.2.5.so
    40673000-40674000 rw-p 00012000 08:02 356970 /lib/libnsl-2.2.5.so
    40676000-406aa000 r-xp 00000000 08:02 357877 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    406aa000-406b6000 rw-p 00033000 08:02 357877 /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    406b8000-406d9000 r-xp 00000000 08:02 356949 /lib/i686/libm-2.2.5.so
    406d9000-406da000 rw-p 00020000 08:02 356949 /lib/i686/libm-2.2.5.so
    406da000-406e3000 r-xp 00000000 08:02 1106857 /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so
    406e3000-406e4000 rw-p 00008000 08:02 1106857 /usr/local/j2sdk1.4.0/jre/lib/i386/native_threads/libhpi.so
    406e4000-406f5000 r-xp 00000000 08:02 1106867 /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    406f5000-406f7000 rw-p 00010000 08:02 1106867 /usr/local/j2sdk1.4.0/jre/lib/i386/libverify.so
    406f7000-4071a000 r-xp 00000000 08:02 1106868 /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    4071a000-4071b000 rw-p 00022000 08:02 1106868 /usr/local/j2sdk1.4.0/jre/lib/i386/libjava.so
    4071d000-40732000 r-xp 00000000 08:02 1106870 /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40732000-40734000 rw-p 00014000 08:02 1106870 /usr/local/j2sdk1.4.0/jre/lib/i386/libzip.so
    40734000-40737000 r--s 00000000 08:02 749083 /home/wcm/trswcm/bin/commons-daemon.jar
    40737000-4073a000 r--s 00000000 08:02 749087 /home/wcm/trswcm/bin/tomcat-jni.jar
    4073a000-40741000 r--s 00000000 08:02 749088 /home/wcm/trswcm/bin/bootstrap.jar
    40741000-41dc0000 r--s 00000000 08:02 1106910 /usr/local/j2sdk1.4.0/jre/lib/rt.jar
    41e02000-41e19000 r--s 00000000 08:02 1106891 /usr/local/j2sdk1.4.0/jre/lib/sunrsasign.jar
    41e19000-41e88000 r--s 00000000 08:02 1106893 /usr/local/j2sdk1.4.0/jre/lib/jsse.jar
    41e88000-41e9b000 r--s 00000000 08:02 1106892 /usr/local/j2sdk1.4.0/jre/lib/jce.jar
    41fe6000-41fec000 r--s 00000000 08:02 308458 /usr/lib/gconv/gconv-modules.cache
    41fec000-41fed000 r--p 00000000 08:02 519174 /usr/lib/locale/zh_CN.gbk/LC_IDENTIFICATION
    41fed000-41fee000 r--p 00000000 08:02 519175 /usr/lib/locale/zh_CN.gbk/LC_MEASUREMENT
    41fee000-41fef000 r--p 00000000 08:02 519180 /usr/lib/locale/zh_CN.gbk/LC_TELEPHONE
    41fef000-41ff0000 r--p 00000000 08:02 519171 /usr/lib/locale/zh_CN.gbk/LC_ADDRESS
    41ff0000-41ff1000 r--p 00000000 08:02 519177 /usr/lib/locale/zh_CN.gbk/LC_NAME
    41ff1000-41ff2000 r--p 00000000 08:02 519179 /usr/lib/locale/zh_CN.gbk/LC_PAPER
    41ff2000-41ff3000 r--p 00000000 08:02 535395 /usr/lib/locale/zh_CN.gbk/LC_MESSAGES/SYS_LC_MESSAGES
    41ff3000-41ff4000 r--p 00000000 08:02 519176 /usr/lib/locale/zh_CN.gbk/LC_MONETARY
    41ff4000-41ff5000 r--p 00000000 08:02 519181 /usr/lib/locale/zh_CN.gbk/LC_TIME
    41ff5000-41ff6000 r--p 00000000 08:02 519178 /usr/lib/locale/zh_CN.gbk/LC_NUMERIC
    41ff6000-41fff000 r-xp 00000000 08:02 356986 /lib/libnss_files-2.2.5.so
    41fff000-42000000 rw-p 00009000 08:02 356986 /lib/libnss_files-2.2.5.so
    42000000-4212c000 r-xp 00000000 08:02 356947 /lib/i686/libc-2.2.5.so
    4212c000-42131000 rw-p 0012c000 08:02 356947 /lib/i686/libc-2.2.5.so
    42135000-423b6000 r--s 00000000 08:02 1106908 /usr/local/j2sdk1.4.0/jre/lib/charsets.jar
    443b6000-443b8000 r--s 00000000 08:02 1202039 /usr/local/j2sdk1.4.0/jre/lib/ext/dnsns.jar
    443b8000-443ba000 r--s 00000000 08:02 650694 /home/wcm/trswcm/common/lib/cdc.jar
    443ba000-443be000 r--s 00000000 08:02 650701 /home/wcm/trswcm/common/lib/jspsmart.jar
    443be000-443bf000 r--s 00000000 08:02 650710 /home/wcm/trswcm/common/lib/trswcm-setup.jar
    443bf000-443c0000 r--s 00000000 08:02 296284 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/redsoftFilter.jar
    7e753000-7e781000 r--p 00000000 08:02 519173 /usr/lib/locale/zh_CN.gbk/LC_CTYPE
    7e781000-7e850000 r--p 00000000 08:02 519172 /usr/lib/locale/zh_CN.gbk/LC_COLLATE
    7ed15000-7ed32000 r--s 00000000 08:02 1202038 /usr/local/j2sdk1.4.0/jre/lib/ext/sunjce_provider.jar
    7ed32000-7edd5000 r--s 00000000 08:02 1202040 /usr/local/j2sdk1.4.0/jre/lib/ext/localedata.jar
    7edd5000-7ede3000 r--s 00000000 08:02 1202041 /usr/local/j2sdk1.4.0/jre/lib/ext/ldapsec.jar
    7ede3000-7edfd000 r--s 00000000 08:02 650699 /home/wcm/trswcm/common/lib/jdom.jar
    7edfd000-7ee00000 r--s 00000000 08:02 650707 /home/wcm/trswcm/common/lib/smtp.jar
    7ef00000-7efe0000 r--s 00000000 08:02 650713 /home/wcm/trswcm/common/lib/xerces.jar
    7efe0000-7f0b5000 r--s 00000000 08:02 650712 /home/wcm/trswcm/common/lib/xalan.jar
    7f0b5000-7f18d000 r--s 00000000 08:02 650709 /home/wcm/trswcm/common/lib/trswcm.jar
    7f18d000-7f1b3000 r--s 00000000 08:02 650711 /home/wcm/trswcm/common/lib/trswcmx.jar
    7f1b3000-7f1c7000 r--s 00000000 08:02 650686 /home/wcm/trswcm/common/lib/servlet.jar
    7f1c7000-7f200000 r--s 00000000 08:02 748994 /home/wcm/trswcm/common/lib/mssql/msbase.jar
    7f200000-7f20c000 r--s 00000000 08:02 748993 /home/wcm/trswcm/common/lib/mssql/mssqlserver.jar
    7f20c000-7f212000 r--s 00000000 08:02 748992 /home/wcm/trswcm/common/lib/mssql/msutil.jar
    7f212000-7f331000 r--s 00000000 08:02 650705 /home/wcm/trswcm/common/lib/ojdbc14.jar
    7f331000-7f33d000 r--s 00000000 08:02 650695 /home/wcm/trswcm/common/lib/activation.jar
    7f33d000-7f382000 r--s 00000000 08:02 650702 /home/wcm/trswcm/common/lib/mail.jar
    7f382000-7f3b8000 r--s 00000000 08:02 650708 /home/wcm/trswcm/common/lib/soap.jar
    7f3b8000-7f3f4000 r--s 00000000 08:02 650696 /home/wcm/trswcm/common/lib/FTPProtocol.jar
    7f3f4000-7f3f9000 r--s 00000000 08:02 650698 /home/wcm/trswcm/common/lib/jdbcpool.jar
    7f3f9000-7f894000 r--s 00000000 08:02 1202841 /usr/local/j2sdk1.4.0/lib/tools.jar
    7f894000-7f8b3000 r--s 00000000 08:02 650704 /home/wcm/trswcm/common/lib/mm.mysql-2.0.14-bin.jar
    7f8b3000-7f8b8000 r--s 00000000 08:02 650685 /home/wcm/trswcm/common/lib/naming-factory.jar
    7f8b8000-7f8bd000 r--s 00000000 08:02 650687 /home/wcm/trswcm/common/lib/commons-logging-api.jar
    7f8bd000-7f8c4000 r--s 00000000 08:02 650688 /home/wcm/trswcm/common/lib/naming-common.jar
    7f8c4000-7f8ce000 r--s 00000000 08:02 650689 /home/wcm/trswcm/common/lib/naming-resources.jar
    7f8ce000-7f8e5000 r--s 00000000 08:02 650690 /home/wcm/trswcm/common/lib/commons-collections.jar
    7f8e5000-7f8f6000 r--s 00000000 08:02 650691 /home/wcm/trswcm/common/lib/jasper-runtime.jar
    7f8f6000-7f8fd000 r--s 00000000 08:02 650700 /home/wcm/trswcm/common/lib/jms.jar
    7f8fd000-7f8ff000 r--s 00000000 08:02 650715 /home/wcm/trswcm/common/lib/jdbc2_0-stdext.jar
    7fa00000-7fab0000 r--s 00000000 08:02 650692 /home/wcm/trswcm/common/lib/ant.jar
    7fab0000-7fadd000 r--s 00000000 08:02 650693 /home/wcm/trswcm/common/lib/jasper-compiler.jar
    7fadd000-7faf7000 r--s 00000000 08:02 650697 /home/wcm/trswcm/common/lib/imap.jar
    7faf7000-7fafb000 r--s 00000000 08:02 650706 /home/wcm/trswcm/common/lib/pop3.jar
    7fafb000-7fafe000 r--s 00000000 08:02 650716 /home/wcm/trswcm/common/lib/jta-spec1_0_1.jar
    7fafe000-7fb00000 r--s 00000000 08:02 797088 /home/wcm/trswcm/server/lib/servlets-common.jar
    7fc00000-7fc26000 r--s 00000000 08:02 650703 /home/wcm/trswcm/common/lib/mailapi.jar
    7fc26000-7fc47000 r--s 00000000 08:02 650714 /home/wcm/trswcm/common/lib/xml.jar
    7fc47000-7fc4f000 r--s 00000000 08:02 650717 /home/wcm/trswcm/common/lib/sax.jar
    7fc4f000-7fc66000 r--s 00000000 08:02 797075 /home/wcm/trswcm/server/lib/commons-digester.jar
    7fc66000-7fd1a000 r--s 00000000 08:02 797076 /home/wcm/trswcm/server/lib/catalina.jar
    7fd1a000-7fd40000 r--s 00000000 08:02 797077 /home/wcm/trswcm/server/lib/tomcat-util.jar
    7fd40000-7fd47000 r--s 00000000 08:02 797092 /home/wcm/trswcm/server/lib/commons-logging.jar
    7fd47000-7fd8c000 r--s 00000000 08:02 797078 /home/wcm/trswcm/server/lib/mx4j-jmx.jar
    7fd8c000-7fd90000 r--s 00000000 08:02 797079 /home/wcm/trswcm/server/lib/servlets-manager.jar
    7fd90000-7fd94000 r--s 00000000 08:02 797080 /home/wcm/trswcm/server/lib/catalina-ant.jar
    7fd94000-7fda4000 r--s 00000000 08:02 797081 /home/wcm/trswcm/server/lib/tomcat-jk.jar
    7fda4000-7fdb8000 r--s 00000000 08:02 797085 /home/wcm/trswcm/server/lib/commons-beanutils.jar
    7fdb8000-7fdcc000 r--s 00000000 08:02 797086 /home/wcm/trswcm/server/lib/tomcat-jk2.jar
    7fdcc000-7fddb000 r--s 00000000 08:02 797089 /home/wcm/trswcm/server/lib/tomcat-coyote.jar
    7fddb000-7fde1000 r--s 00000000 08:02 797087 /home/wcm/trswcm/server/lib/servlets-webdav.jar
    7fde1000-7fde7000 r--s 00000000 08:02 797090 /home/wcm/trswcm/server/lib/tomcat-warp.jar
    7fde7000-7fde9000 r--s 00000000 08:02 797091 /home/wcm/trswcm/server/lib/servlets-invoker.jar
    7fde9000-7fdf2000 r--s 00000000 08:02 797093 /home/wcm/trswcm/server/lib/tomcat-http11.jar
    7fdf2000-7fdfa000 r--s 00000000 08:02 797094 /home/wcm/trswcm/server/lib/jakarta-regexp-1.2.jar
    7fdfa000-7fdff000 r--s 00000000 08:02 797096 /home/wcm/trswcm/server/lib/servlets-default.jar
    7ff00000-7ff08000 r--s 00000000 08:02 797095 /home/wcm/trswcm/server/lib/commons-modeler.jar
    7ffcb000-7ffe7000 r--s 00000000 08:02 296267 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-beanutils.jar
    7ffe7000-7fffc000 r--s 00000000 08:02 296269 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-dbcp.jar
    7fffc000-80000000 r--s 00000000 08:02 296271 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-fileupload.jar
    80100000-80131000 r--s 00000000 08:02 296268 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-collections.jar
    80131000-8014a000 r--s 00000000 08:02 296270 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-digester.jar
    8014a000-80175000 r--s 00000000 08:02 296272 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-lang.jar
    80175000-8017d000 r--s 00000000 08:02 296273 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-logging.jar
    8017d000-80187000 r--s 00000000 08:02 296274 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-pool.jar
    80187000-80191000 r--s 00000000 08:02 296275 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-resources.jar
    80191000-80197000 r--s 00000000 08:02 296276 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-services.jar
    80197000-801a2000 r--s 00000000 08:02 296277 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/commons-validator.jar
    801a2000-801b2000 r--s 00000000 08:02 296278 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/jakarta-oro.jar
    801b2000-801d2000 r--s 00000000 08:02 296279 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/jdom.jar
    801d2000-801f0000 r--s 00000000 08:02 296280 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/junit.jar
    801f0000-801fb000 r--s 00000000 08:02 296281 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/mailmanager.jar
    801fb000-801ff000 r--s 00000000 08:02 296287 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/upload.jar
    80400000-8051f000 r--s 00000000 08:02 296282 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/ojdbc14.jar
    8051f000-80543000 r--s 00000000 08:02 296283 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/org.jar
    80543000-805ba000 r--s 00000000 08:02 296285 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/struts.jar
    805ba000-805c0000 r--s 00000000 08:02 296831 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/trade.jar
    805c0000-80630000 r--s 00000000 08:02 296288 /home/wcm/trswcm/webapps/MyChinabidding/WEB-INF/lib/webmacro.jar
    8093c000-80957000 r-xp 00000000 08:02 308320 /usr/lib/gconv/GBK.so
    80957000-80958000 rw-p 0001a000 08:02 308320 /usr/lib/gconv/GBK.so
    80960000-809d7000 r--s 00000000 08:02 748880 /home/wcm/trswcm/temp/jar_cache46152.tmp (deleted)
    809d7000-809e8000 r-xp 00000000 08:02 1106873 /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    809e8000-809ea000 rw-p 00010000 08:02 1106873 /usr/local/j2sdk1.4.0/jre/lib/i386/libnet.so
    809ea000-809f4000 r-xp 00000000 08:02 356994 /lib/libnss_nisplus-2.2.5.so
    809f4000-809f5000 rw-p 00009000 08:02 356994 /lib/libnss_nisplus-2.2.5.so
    809f5000-809f8000 r-xp 00000000 08:02 356983 /lib/libnss_dns-2.2.5.so
    809f8000-809f9000 rw-p 00002000 08:02 356983 /lib/libnss_dns-2.2.5.so
    80c23000-80c31000 r-xp 00000000 08:02 356998 /lib/libresolv-2.2.5.so
    80c31000-80c32000 rw-p 0000e000 08:02 356998 /lib/libresolv-2.2.5.so
    Local Time = Wed Jul 23 09:51:24 2003
    Elapsed Time = 2430
    # HotSpot Virtual Machine Error : 11
    # Error ID : 4F530E43505002D5
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Server VM (1.4.0_03-b04 mixed mode)

    uninstall JRE, then get it installed again !!!

  • Applescript to get the current insertion point of the cursor

    How do I use Applescript to get the current insertion point of the cursor in a Apple pages.app document?

    Oops, missed that one - you are correct, the line should be:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">set {TheStart, TheEnd} to character range of the selection</pre>
    I have a wrapper script that I use to insert stuff from my handler/code library into a Script Editor document, and was adapting snippets from that for my examples - I guess that one got away.
    As for the dictionary, some applications just have poorly written or outdated documentation. Some of the items have multiple entries (eg, there may be a selection object for the application and also for the document), and some inherit properties from other items. Some are used as nouns, others as verbs (or both). Sometimes it is easier to visualize the item by keeping track of it's reference - the 'some property of document 1 of the current application' thing. You can use the Script Editor's Event Log to see the results of various properties and commands - for example, the above script will result in the following entry (your numbers will vary depending on the selected text):
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">tell current application
    get character range of selection
    {50, 50}
    end tell
    </pre>
    You can also use the 'log' statement (eg, 'log MyVariable') to add your own entries into the log instead of using dialog boxes.

  • How to print the text in points wise in sap script

    hi friends,
    how to print the text in points wise in sap script.
    ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
    1. hai how ru.
    2. what r  u doing.
    3.where r u.
    like this i want numbering.. waiting for ur replys.
    thanks,
    kiran

    declare a counter
    data : cnt type char 4.
    print :
    cnt = cnt + 1.
    &cnt& &text&
    cnt = cnt + 1. and so on.
    or.
    if the data is in an internal table
    loop at internal_table.
    cnt = cnt + 1.
    write form.
    in script -&cnt& &text&
    endloop.
    Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM

  • As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    Don't put it in the Header.
    Peter

  • How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page

    How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page #1 without making the rest of the pages inaccurate, as page #1 is the Title Page. Does anyone have any suggestions?

    When you signed to be able to post in the forums, you were urged to read and accept the Terms of Use ruling these forums.
    They claim :
    The contents of the "More Like This" box prove that applying the rules you would have get the wanted explanations without creating this new thread.
    Yvan KOENIG (VALLAURIS, France) mardi 26 avril 2011 10:04:03

  • How to Capitalize the first letter or an entire word using a shortcut on the keyboard just like in microsoft that uses shift+F3

    please how can one How to Capitalize the first letter or an entire word using a shortcut on the keyboard just like in microsoft that uses shift+F3

    What do you mean there was "no effect?" I'm not aware of any effects.
    It looks like that Service is also in the App Store. From their screen shots, the services are prefaced with WordService:
    You can see an example in the App Store for their app: App Store
    After installing, you should now have those text services in your Services menu. You can then add shortcuts in the Keyboard System Prefs.
    Most Apple apps have a Transformations menu in the Edit menu. You can Make upper, lower, and Initial caps with those. I would stick with Word Services, but you can make Application Shortcuts for the items in the Transformations menu.
    Again, in Keyboard System Prefs, Under Applications, Click the Add button on the right side pane.
    Set it for All Applications
    Enter the menu command exactly as they appear in the Transformation menu (separate entries for each),
    Make Upper Case
    Make Lower Case
    Capitalize
    Give them a shortcut.

  • How to get the first day in the month from a domain date ?

    Hi,
    I like to know how to get the first day in the month from a domain date?
    Thanks
    Stephen

    Hi Gokul...
    Instead of using the funtion module you can just write the 3 statements of code to get the first day of the week.
    Its similar to the above one but instead of writing case statement you can achive the following.
    data : w_res type i,
             w_data type d,
    w_res = w_date mod 7.
    w_date = w_date - w_res.
    write w_date.
    This works.
    Regards,
    Siddarth

  • How  to  get the FIRST DAY OF THE CURRENT MONTH

    how to get the FIRST DAY OF THE CURRENT MONTH in oracle 9i.
    plzzzzz send immedaily.advance thanks

    TEST@test SQL> select trunc(sysdate,'MON') from dual;
    TRUNC(SYS
    01-OCT-06
    TEST@test SQL>                                  

  • Apple Mail - how to get the first word in a sentence to auto-capitalize

    How to get the first word in a sentence to auto-capitalize
    Anwar

    something to look forward to then, because we get used not to use our shift button any more, since iPhone and iPad do it for us. entourage and other ms stuff do it. pages does it too now (put it on in the auto-correct in preferences). bizarre however some loose the capitalization when you copy the text. pages to stickies or mail does not. that's good !

  • [JS] [CS3] How do you find an insertion point's paragraph index #?

    This is probably a very simple thing to do, but I haven't been able to find a way to reference this. Thanks in advance for any help provided.
    Len Swierski

    The unexpected higher number is exactly the problem. The paragraph index property has nothing to with the paragraph array position; it's the index of the first character of that paragraph. (Sorry -- you'll have to re-read that post ...)
    Fortunately you can still use the returned number. Using the handy function everyItem() on the text frame's Paragraphs collection, you can gather all "first character" indexes into an array. Then it's only a case of testing your InsertionPoint index against the values.
    Suppose you copy this post into InDesign and inspect each of the paragraph's indexes. You would get an array like this:
    [0, 237, 238, 508, 509 ]
    The first value points to the start of the first paragraph in "character count mode". The second value points to the empty line below the first paragraph (I suspect it points to the Return character in InDesign). Since there is nothing else on that line, the next paragraph starts exactly one character after that.
    I think the following script does what you need -- but beware! It works, just as you asked, on individual text frames. It even works correctly if the text frame starts in the middle of a paragraph in the previous linked textframe, and this paragraph will correctly be reported to be "#0" of the current frame.
    ip = app.selection[0].insertionPoints[0];
    parIndex = getParIndex(ip);
    alert (parIndex);
    function getParIndex (someIp)
         var allPars = someIp.parentTextFrames[0].paragraphs.everyItem().index;
         var loopy;
         for (loopy=allPars.length-1; loopy > 0; loopy--)
              if (someIp.index >= allPars[loopy])
                   return loopy;
         return 0;

  • How to get the first 4 chars form a var ?

    Hi guys,
    How to get the first 4 chars form a var ?
    i.e  temp type num20 value '00000000000012345678'.
    how to move the first 4 chars to another var?
    thx in advance.

    hi
    use OFFESTS..
    example:
    var1 = '12345678'.
    var2 = var1+0(4).
    now var2 conatins '1234'.
    thx
    pavan

  • How to hightlight  the new  inserted data in the last low of JTable?

    Could somebody help me?
    i am doing the e-restaurant application system .
    When press the food button, the JTable will list out the order details.
    When the order is long, the scroll pane will show up.
    My problem is[ b] how to hightlight the new inserted data in the last low of JTable when the food button is press every time?The scroll pane will automatically scroll down the to the new insertted data.
    In the List, i get the effect like this command but in the JTable how?
    list.ensureIndexIsVisible(orderDetails.getSize()-1);
    thank in advance.
    Below is the snapshot of my coding:
    DefaultTableModel model=new DefaultTableModel(cells,columnNames);
    OrderModel sorter=new OrderModel(model);
    JTable table=new JTable(sorter);
    JScrollPane scrollPane=new JScrollPane();
    scrollPane.add(table);
    Object[] object={foodName, "1",price};
    model.addRow(object);
    sorter.fireTableDataChanged();
    sorter.fireTableStructureChanged();

    The right place to ask this one is "Swing Forum.
    http://forum.java.sun.com/forum.jspa?forumID=57

Maybe you are looking for