Finding location of selection in InCopy [AppleScript]

This is a variation of my request from yesterday. I am able to select the last character of the last column of the story. I now want to know the location of that character.
For example, I find the last character with this lin of code
select text of last character of last word of last text column of myStory
I then put the seleciton in a variable
set mySelection to selection of myDocument
mySelection is a list. The first object has the following definition:
text from character 1108 to character 1108 of story id 37515 of document id 7
But I cannot figure how to get the the character number (1108) into a variable.
Any ideas?

I have some of my answer. I set a variable to the index of the given character. See below.
tell application "Adobe InCopy CS5"
set myDocument to active document
set mySelection to selection of myDocument
set myTextObject to item 1 of mySelection
set myStory to parent story of myTextObject
set myOverset to overset text of myStory
set myText to index of last character of myTextObject
set howMany to count characters of myStory
select character 20 of myStory
end tell
Now to figure out how to select a selection of text.
This works:
select character 20 of myStory
This doesn't:
select characters 20 through 30 of myStory

Similar Messages

  • Cannot find the Quick Selection Tool (previously paired with the magic wand tool) on Illustrator CC (newest version installed on October 14, 2014)

    I have just installed a new version of Illustrator CC and CS6 on October 14, 2014 and I couldn't find the Quick Selection Tool on this version, previously this tool is located with the magic wand tool

    I don't remember a quick selection tool in Illustrator. Are you sure this was in Illustrator?

  • Cannot find location with iPad 2

    Cannot find location: I have an iPad 1 and a newly acquired iPad 2; even if they are side by side, the iPad 1 will find its location, while the iPad 2 cannot, and thus, lots of applications do not work. What to do ?

    Hi Ogie4139,
    Since you're missing both the AirPlay and AirDrop icons from the Control Center, please try and reinstall iOS on your iPad by following the directions below.
    Make sure that you have iTunes 12 or later on your computer.
    Put your device in recovery mode.
    When you get the option to restore or update, select Update. This will reinstall iOS without erasing your data.
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    Thanks for using the Apple Support Communities!
    Cheers,
    Alex H.

  • How to find out the selected column in Table Control

    Hi all,
          How to find out the selected column in Table Control?
    Thanks & Regards,
    YJR

    Hi,
    Let your table control name in Screen painter be TC1.
    READ TABLE TC1-COLS INTO WA_COLS (some wok area)
                 WITH KEY SELECTED = 'X'.
            IF SY-SUBRC = 0.
              CLEAR: W_DUMMY, W_COL_NAME.
              SPLIT WA_COLS-SCREEN-NAME AT '-' INTO W_DUMMY
                                                   W_COL_NAME.
            endif.
    W_COL_NAME gives you the column name.
    Hope it helps.
    cheers
    sharmistha

  • How to find out  the selected line in list

    Hi all,
    Can any one tell me how to find out the selected event in the list

    Your subject said 'selected <b>line</b> in list' and your description says 'selected <b>event</b> in the list'. Which one is it you want to know?
    For line you will use the event AT LINE-SELECTION and for event you will use AT USER-COMMAND.
    Please reward and close if answered, if not, please revert back to the forum with more details.
    Thanks,
    Srinivas

  • 11.1.1.4:Could not find the item selected to match the value of type Number

    Hi,
    I have a taskflow with an input parameter.
    The input parameter value is to be assigned to a list item as the default selected value.
    I have mapped the pageFlow scope parameter to set value to the list item using input page parameters defined in task flow.
    but When i Run the task flow the value does not get assigned to the drop down list and jdevloper console screen shows up the following message
    "Could not find the item selected to match the value 2 by type: oracle.jbo.domain.Number in LOV."
    But If I click the Lov to check the values it shows that value is present in the list.
    The same configurations works if the list of values is for a column with type as java.lang.String.
    Is it somethng different that is to be done for a Number field to assign value from a taskflow parameter?
    Edited by: user3067156 on Jun 25, 2011 3:34 PM

    Hi Jobinesh,
    I am assigning the default value in the task flow using input page parameters ...
    <view id="VIEW1">
    <page>/title.jsff</page>
    <input-page-parameter>
    <from-value>#{pageFlowScope.pInputTyp_Id}</from-value>
    <to-value>#{bindings.pTyp_Id1.attributeValue}</to-value>
    </input-page-parameter>
    </view id>
    It does not assign the value, if Bind variable(pTyp_Id1) NDtype and task flow input parameter(pInputTyp) class type, both are set to use type oracle.jbo.domain.Number.
    If I change both to use java.lang.String and additionally also change the VO defination the accept the bind variable of type string, it assigns the value correctly.
    Usecase:
    I have a a task flow for which has its first page a search page.
    The Search page is created using operation execute with params and dragging the query parameters on the page.
    The Query parameters are to be filled using a select one choice option and the list is bound to the master values.
    This task flow can be used inside a standalone page as a region to provide a search page
    The same task flow can be called from within another taskflow which will provide the default values for the drop down lists ..
    Since the search page is a jsff fragment i dont have a page on load handler to provide default values..
    So assiging the values using input page parameters defined in task flow view tag.
    For testing I am passing the taskflow input parameters by calling the task flow from a jspx page a region . When I configure this task flow a region in a page its asks for providing the values for the parameters
    And the same gets configured in my testpage def as
    <executables>
    <variableIterator id="variables"/>
    <taskFlow id="Flow1" taskFlowId="/WEB-INF/Flow1.xml#Flow1"
    activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding">
    <parameters>
    <parameter id="pTyp_Id" value="1207"/>
    </parameters>
    </taskFlow>
    </executables>
    Edited by: user3067156 on Jun 27, 2011 1:50 PM

  • How to find out the selected item in the lsit

    Hi all,
    How to find out the selected item in the list,can any please post some examples which easy to understand,because iam not a good programmer

    This sample program uses a checkbox as selection,  you could also use a HOTSPOT.
    report zrich_0002 no standard page heading.
    data: imara type table of mara with header line.
    data: check_box(1) type c,  
       report_lines type i.
    start-of-selection.
    * Create the gui status with BACK button in standard place
    * and a READ button in the application toolbar
      set pf-status 'CHECK'. 
    select * into corresponding fields of table imara           from mara up to 100 rows.
    loop at imara.   
    write:/ check_box as checkbox, imara-matnr, imara-matkl.  
    hide imara-matnr. 
    endloop.
      report_lines  = sy-linno - 1.
    top-of-page. 
    write: 'List of materials'.  uline.
    top-of-page during line-selection.  write:  'Material.....'.  uline.
    at user-command. 
    case sy-ucomm.  
    when 'READ'.   
      check_box = space.    
    set pf-status 'CHECK' excluding 'READ'.
          do report_lines times.       
    read line sy-index field value check_box.    
       if check_box = 'X'.        
    write:/  'You have selected material',
    imara-matnr.       
    endif.   
      enddo. 
    endcase.
    Regards,
    Rich Heilman

  • How to find for which select statement performance is more

    hi gurus
    can anyone suggest me
    if we have 2 select statements than
    how to find for which select statement performance is more
    thanks&regards
    kals.

    hi check this..
    1 .the select statement in which the primary and secondary keys are used will gives the good performance .
    2.if the select statement had select up to  i row is good than the select single..
    go to st05 and check the performance..
    regards,
    venkat

  • Storage location as selection criteria in MC42

    Hello,
    Transaction MC42 gives a very good information for stock management, however we need to have the analysis restricted by storage location.
    Is it possible to create a new Z program by copying RMCBRW30 and add "Storage Location" as selection criteria? Or there is another standard solution?
    Best regards,
    Helena Peixoto.

    Have you ever looked into the coding of  this program ? and read how the data is retrieved and from which source?
    Just adding the location as selection criteria is not sufficient.
    Most important would be to have knowledge how the data is captured and stored in infostructures. If it is not stored with storage location as aggregation level, then you will not have a chance to get the result according to storage location.......except.......you are doing planning at MRP area level (a MRP area can be a storage location). And MRP area is already in the selection.

  • Bookmark dialog has stopped appearing when a bookmark location is selected

    Firefox 3.6.12 has stopped displaying the Bookmark dialog when a URL location is selected for storage. Since the Bookmark dialog has stopped appearing, all the bookmarks can be found in the Recent Bookmarks section, and no place else.
    This is different than how it operated previously. Only 1-program, Google Earth 6, which also installed Chrome, was upgraded since the Firefox bookmark dialog would appear allowing the user to select the folder destination as the link's saved location.

    This issue can be caused by the McAfee SiteAdvisor.
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Does siri in ios 6 works outside the usa to find locations in the new apple maps

    does siri in ios 6 works outside the usa to find locations in the new apple maps

    Read here:
    http://www.apple.com/ios/ios6/siri/

  • Is it possible that using serial number find location of Ipod?

    I lost my ipod touch in Korea last 2 weeks. How can I do for find out my Ipod? Is it possible that using serial number find location of Ipod?

    If you had the Find My iPhone application installed and location services turned on, you can track the iPod touch, but you can not use the serial number to track it.

  • Maps App w/ Find Location Error

    Hey Again Everybody!
    I was bored and was messing around with maps to see if it could find this lake(i already knew how to get there) and when i clicked the find location button to find my location it says
    "Unable to find location"
    I heard that it "triangulates" your possition (i dont care about spelling ATM.)so does that mean i need to have three registered networks or like three or more networks near me?
    It wold be a lot easier.
    Please Help! :S
    -Nick
    P.S: Do i need to go into contacts, register myself, and add something that tells it that i am that person so it know what country i am in. I think i confused it being not in the USA. LOL!!!!!!

    Were you connected to a WiFi network when you tried this? First, for Maps to localize you, you must have a functioning WiFi connection. If there are other access points within range, that helps localize better (smaller diameter circle around your location). The "triangulation" applies more to the iPhone, which in addition to WiFi points uses cell towers (not possible on the IPT). The WiFi locator relies on the Skyhook database; you can request WiFi points be added to the database here:
    http://www.skyhookwireless.com/howitworks/submit_ap.php
    Hope this helps...

  • Cannot find InfoProvider for selection specified

    Hi All,
    When executed RSPLAN in BI System , it took us to EP screen , in that
    InfoProvider , Aggregation Levels , Filter....etc tabs are there.
    When selected InfoProvider , Z* or * or empty and when clicked on start button..
    The following message is displayed :
    Cannot find InfoProvider for selection specified "with green exclamatory symbol"
    Even it is not giving JCo type of error message ,
    Real time infocubes are created and activated .
    The two above things have been checked properly .
    Thanks,
    Srini

    Dear Srinivasa,
    Check this link..
    Cannot find aggregation levels for selection specified
    not able to see infoprovider in the planning modeler
    Hope this helps u..
    Best Regards,
    VVenkat...

  • I lost my ipone,how to find location

    Hi,I lost my iphone.
    ImeI/MIED 013406009255427.
    please help me find location!!
    And help me turn on the iphone!!
    Thank you so much!!

    Well, did you have Find My iPhone enbabled on the phone?  If yes, login to iCloud and see if it shows up.
    if you didn't have it enabled, then its gone and you'll never find it.

Maybe you are looking for

  • Issue while starting a workflow using a form submission cq5

    Hi, I have followed the below mentioned tutorial and completed it. http://dev.day.com/docs/en/cq/current/workflows/create-models.html#par_reference Once done, I did try to start the workflow using a normal form submission, by giving workflow name in

  • Starcraft 2 Downloaded Installer wont Run [Solved]

    I have isntalled, Wine, winecfg, winetricks, gecko I did the mmapi disabled trick. I downloaded the Starcraft 2 Installer from their website. When I double click the exe I get "The application could not be executed for some reason. Please close all a

  • GATP - Third Party Order Processing (TPOP)

    Hi Gurus, I am trying to setup TPOP scenario.This is what I have done till now : Vendors and standard info records CIFed across to APO Product created in vendor location.Active version assigned,check mode and ATP group assigned Check instructions wit

  • Animations show black background only after compiling in DPS

    Hi Everyone, For my iPad app I've created several animations using Edge Animate. In Edge CC I've made the stage background transparent and in InDesign CC I've checked the transparent background checkbox (see attached two images). When I preview the a

  • Rac 10gr2 upgrade

    Hi experts, We are prototyping RAC database upgrade from 10.1.0 to 10.2.0.4. I just created a new directory as 10.2.0 ORACLE_HOME. Since the 10gr1 database is running, all the environmental variables set by login profile point to the current 10.1.0 d