Selecting overset anchored textframe

Hi all,
I'm having trouble with the following.
I'm trying to select an anchored textframe that is not visible in my indesign file due to overset of the parent textframe.
The text that is overset is no problem to find but my script cannot detect the anchored textframe unless i make the parenttextframe big enough so it is no longer overset.
Any ideas what i'm missing here?
http://dl.dropbox.com/u/5424894/POC.indd
http://dl.dropbox.com/u/5424894/POC.jsx
var myDoc = app.open(File("POC.indd"));
var currentPage = myDoc.pages.firstItem();
try{
// loop over top-level frames in the document
for (var i=0; i< currentPage.textFrames.length; i++){
var myFrame = currentPage.textFrames.[i];
app.consoleout("myFrame.label : " + myFrame.label);
changeMultipleNode(myItem, myFrame);
} catch(err) {    
app.consoleerr("Error '"+err.message+"' at line "+err.line);
result = "Error!!!!";
} finally {
app.consoleout("finished");
function changeMultipleNode(myXMLParent, myFrame) {
// loop over nested (anchored) frames
app.consoleout("Frame " + myFrame.label + "has " + myFrame.parentStory.textFrames.length + "innerframes");
for (var i=0; i< myFrame.parentStory.textFrames.length; i++){
var innerFrame = myFrame.parentStory.textFrames.[i];
app.consoleout("innerFrame.label : " + innerFrame.label);
changeMultipleNode(myItem, innerFrame);

Hi Gregor,
I have done something similar with Xml Rules. The method I used was placeIntoInlineFrame:
function processElement(){
this.name = "processElement";
this.xpath = "//root/myElement";
this.apply = function(myElement, myRuleProcessor){
var myTextframe = myElement.placeIntoInlineFrame([25,2.78])
myTextframe.fit(FitOptions.FRAME_TO_CONTENT);
myTextframe.anchoredObjectSettings.anchoredPosition = AnchorPosition.ANCHORED;
myTextframe.anchoredObjectSettings.anchorPoint = AnchorPoint.BOTTOM_RIGHT_ANCHOR;
myTextframe.anchoredObjectSettings.horizontalAlignment = HorizontalAlignment.RIGHT_ALIGN;
myTextframe.anchoredObjectSettings.horizontalReferencePoint = AnchoredRelativeTo.TEXT_FRAME;
return false;
Hope this helps
Stefan
http://www.indesignscript.de

Similar Messages

  • In Flash CS4, how do you select multiple anchor points across separate layers?

    I am talking about anchor points on a line, not a keyframe. They are also called "handles". I can select the anchor points as "white" quickly, but I can't get them to be "solid"without doing it layer by layer, which is tedious. What I want is way to select lines that are in different layers and get the points I selected in a way similar to the regular selection tool or free transform tool. I have been trying to do this all day and I can't find a good way to do this, and I would appreciate any help.
    Here is an image of what I'm trying to do, but more easily. The lines are on separate layers, but when I select them with the subselection tool I have to go layer by layer selecting the points. I'm trying to look for a very quick way of doing it. When I do select all with the subselection tool on, the anchor points are only "white" and not "solid" as shown below.

    Now you're post was a while ago and I still need a solution, but I have to say this. I didn't mean to be rude to you; it’s just that it doesn’t answer my question I specified in the original post. I know your intentions are good, but it frustrates me when someone doesn’t fully read a post and offers a solution, it sometimes gives a false impression that the problem is taken care of. Example of being "helpful": http://forums.adobe.com/message/2540277    Yes I know there is a “Yes, my question has been answered,” but you know they don’t always select it, and other people know that as well. But you are right; I should probably act a little bit nicer and reiterate what I’ve already said before, I’ll probably get more help from it. It just seems to be a simple feature that seems to be needed to be in the program. I didn't mean it takes forever to move, it takes forever to select multiple anchor points across, let's say 10 layers, so that's 10 different lines on 10 layers. You have to select each layer and then select the anchor points. If there is an away to select anchor points across all layers in one go please tell me. Maybe I was wrong, but I could’ve sworn I’ve seen ideas that were posted on here get taken into Adobe as a suggestion, but yes I submitted it as a suggestion to Adobe, but I wanted to confirm that there was no way of doing it first since it seems kind unbelievable because the regular selection tool works across multiple layers.

  • Selecting Overset Text In InCopy CS5 [AppleScript]

    I am trying to fix the AppleScript I used in InCopy CS3 to select overset text in CS5.
    In my old script I tell InCopy to select the overset text in the current story. Simple command:
    select text of last text column of myStory
    In CS5 it now selects the last column in the layout. So in CS3 the last column was defined as the overset set if there was overset text. Now it is the last column. I admit that I think this was a bug in CS3 but it worked for me.
    Now I have no way to select all Overset text. If I run
    set myOverset to overset text of myStory
    This will get me the number of lines of overset text. So I think, if I know the number of lines of overset set, then I can use the total number of lines of text, subtract the number overset lines, and that will tell me the first line I need to select. Doesn't work. If I try to find out the number of lines in a story, the result is less than the number of lines shown to me in Story View. The amount it is off varies.
    Does anyone have any ideas. Also, I have tried to select multiple lines using AppleScript but InCopy doesn't like that.

    Most logical answer would be that for some reason your specific text was not exported as InCopt text (you have to do this for every text story you have and want to be able to edit). If you click on such a text frame, does a name get selected in the assignment and/or Links panel? If not, the text is not an InCopy text.

  • How to set the desired font to the selected text in textframe?

    Hi,
    I want to change the font(let's say Times New Roman) of selected text in textframe when I click on  menu-item of my plug-in.
    I went through the Adobe Text Engine documentation and  tried some code for setting font but failed. I don't see any member function in IFont class to set desired font, so unable to move forward.
    plz see the code. I would like to know one more thing that how can we set a particular font for a textframe?
    TextRangesRef rangesRef = NULL;
    result = sAIDocument->GetTextSelection(&rangesRef);
    aisdk::check_ai_error(result);
    ITextRanges ranges(rangesRef);
    if (ranges.GetSize() > 0)
         ITextRange range = ranges.Item(0);
         ICharFeatures features = range.GetUniqueLocalCharFeatures();
         IFont  font;                     // I don't see any method to put desired font.
       // features.SetFont(); 
    Thanks.
    D.A

    First, get the font:
    AIFontKey fontKey = 0;
    AIErr error = sAIFont->FindFont("Times New Roman Regular", kAIAnyFontTechnology, kNativeAIScript, 0, &fontKey);
    // do something with error
    ATE::FontRef fontRef = 0;
    error = sAIFont->FontFromFontKey(fontKey, &fontRef);
    // do something with error
    ATE::IFont font(fontRef);
    Then, apply it like this:
    ATE::TextRangeRef textRangeRef = 0;
    AIErr error = sAITextFrame->GetATETextRange(handle_to_artwork, &textRangeRef);
    // check error
    ATE::ITextRange textRange(textRangeRef);
    ATE::ICharFeatures charFeatures = textRange.GetUniqueLocalCharFeatures();
    charFeatures.SetFont(font);
    textRange.ReplaceOrAddLocalCharFeatures(charFeatures);
    There are a few other ways to set the text, but you need to understand how character & paragraph styles interact with each other to understand the differneces. This is the most straight forward way to do it though.

  • Is it possible to select an anchored object in a text frame in InDesign in a script?

    I would like to know if it is possible to write a script to select an anchored object in a text frame. All the scripts I have found so far do not work on anchored object.

    Check out this thread.

  • Is it possible to select multiple anchor points in CS6?

    Hi,
    I'm trying to select multiple anchor points of shapes across different layers by dragging over them, but nothing is getting selected.
    I use CC at work, and I've done it there, but I use CS6 at home and can't seem to do it.
    Thanks!

    I doN'T think it is possible to work on two different path at once.  I think you would need to merge the two shape layers and work on the resultant merged path.    You can target more then one shape layer and select some of the path and change them however the stay separate path and  all the point the the selected shape layers are highlighted
    CS6 top CC bottom note the difference is the path palettes  CS6 shows no paths in the path palette when more then a single shape layer is targeted where CC shows all path involved as separate paths.

  • Select the anchor marker of the anchored object

    Could you help me to find the script that select the anchor marker as a character within the text of the already selected anchored object.

    That would be
    app.selection[0].parent.select();

  • Selecting path / anchor point

    Hi guys!
    I am just browsing around the trial Ai CS5 version and there is something, which I do not really understand...
    When I use Selection Tool {V}, it works pretty fine, but when using Direct Selection Tool {A}, I can not select the path or anchor points. When I hover over them, the underlying path or anchor point highlights, but after click, nothing happens. When I move mouse out of the clicked object, the highlight simply disappears. There must be some kind of bug, because in the Layers Panel, there is the selection highlighted and after hitting arrow keys, the points, which I selected are moving - depending on which arrow I am actually pressing.
    So in the nutshell: When I am trying to select single point or just path, the selection is not visible, but the points are still visible.
    Thank you for your help!

    You are welcome, Christian.
    It happens to many.
    I believe it may be caused by the fact that H is surrounded by other keys used with Ctrl/Cmd; a mishit may go unnoticed (I wonder whether this term will pass the nanny filter) when the right key is hit afterwards.

  • Direct selection - moving anchor points with keyboard arrow keys

    Hi,
    I am using Illustrator CC.  I just used the image trace tool to create a vector version of my company logo.  It worked pretty well, but I am now just trying to clean it up a bit.  I have a few anchor points that I just want to nudge up or down in the smallest increment possible.
    I think it would be easier for me to do this using the keyboard arrow keys rather than using the mouse, but the arrow keys cause my selected anchor point to jump by way too large of a distance.  I checked to make sure Smart Guides, Snap to Grid, and Snap to Point are all turned off.  I can't think of anything else to do.
    Can anyone tell me what controls how far the keyboard arrow keys will move an anchor point, and how I can set this to the smallest possible distance?
    Thanks in advance,
    Paul

    Under Preferences (Command-K on Mac), on the first screen there is Keyboard Increment. This is the amount the arrow keys will move selected content, such as anchor points.
    I usually keep this at "0.005 in", but when doing things that need extreme accuracy, I change it to "0.0002 in", which on my screen (2560 x 1600) is one pixel at AI's 6400% magnification.

  • PS CC - how do I select individual anchor points of a shape?

    In PS CS 6 it used to be possible to draw a shape, like a rectangle, and then use the direct selection tool to select and move one corne of the rectangle. However, in PS CC this does not work anymore. When I try to use the direct selection tool, all anchor points remain selected and so I can't move a single point, just all of them at once. What might I be doing wrong? Did something change in the CC version?
    Thanks!

    I seem to be able to use the Direct Selection tool to edit points, e.g., on a rectangular shape, to select one only and move it around.
    When I select the shape layer then choose the Direct Selection tool (white arrow), the path shows.
    When I click on the path all the points show, with "hollow" handles.
    When I click on only one point it turns black, then I can move it with another click and drag.  In fact, just one click, hold until the point turns black, then drag seems to work.
    Of course, you've got to be VERY accurate where you click.
    And Trevor, I seem to be able to drag a box around several points, then move them.  What am I doing right, accidentally or on purpose?  Is there some kind of bug being invoked in certain documents maybe that I'm not seeing in my testing here?
    -Noel

  • Direct Selection Tool will not choose individual "path" anchor points

    Photohsop CS4, 11.0.1
    Mac OSX 10.4.11, MacPro, Dual-Core Intel Xeon, 2.66 GHz, 9GB RAM, NVIDIA GeForce 7300 GT-256 MB VRAM, 500GB Startup HD, 500GB HD (wlhere file resides and scratch disk), OpenGL enabled
    I am unable to select individual anchor points and line segments of a path, although the anchor points appear to be individually highlighted, copying them copies the entire path, not just the selected points, and deleting them deletes the entire path, not just the selected points. In effect the "hollow arrow" direct selection tool is working like the "solid arrow path selection" tool.
    I ran Disk Warrior, repaired disk permissions. I deleted old preferences by renaming file with Photoshop closed, and then restarted photoshop.
    After calling Adobe Tech Support, they are recommending I reinstall the entire CS4 suite, which I am hesitant to do. At the least I will lose all of my menu preferences in all programs. Should I just follow their advice and reinstall CS4?
    Thanks.

    When you click on it with path selection tool (black arrow) which option is enabled in options bar at top - add, subtract, intersect, or exclude?
    Can you combine paths?
    Have you tried drawing a new path and selecting points on it?
    Can you still add and subtract points?
    Edit: Can you pull on the bezier handles?
    Edit: is it a vector mask or a standalone path?
    I'm trying to simulate your problem – in the meantime I'm brainstorming, not sure how else to help. It seems like something restarting the program would fix.
    What about quitting the app. Then going to User: Library: Prefs: Adobe Photoshop CS4 paths, trash it then restart?
    Message was edited by: Printer_Rick: Added Edit: Can you pull on the bezier handles?

  • Direct selection tool not showing anchors illustrator CS3, Mac 10.5.8, MBP 2.6 GHz

    With the direct selection tool (white arrrow) moving over an anchor they show up, but even if the anchor is selected the anchor blue box disappears as soon as the mouse moves away, so its impossible to select a handle.  I can still move an anchor, but its hard to select two anchors to joint the paths etc., sort of like driving blind.  If I click on a path, then hold down the command key, the hollow box anchors show up and the cursor changes into the selection tool.  The hollow boxes show up on selecting using the selection tool (black arrow).  I am pretty direct selection tool was working correctly last week (am an occasional user).
    I've know the difference between the select tool, direct selection tool, and group selection tool.   I think this happened a year ago and deleting a preference file helped.  I, quit illustrator,  deleted "com.adobe.illustrator.plist" in my user library, and tried again.  that didn't help.

    Adobe Camera Raw

  • Direct select tool won't select anchor points

    I can't get the direct select tool to select an anchor point on an embedded picture. I'm trying to squash a square image, but the direct select tool will only select the entire object, not individual anchor points. It worked in version 10, but in CS3 13.0.2 it just gives me the solid points. What changed?

    >The direct select tool used to highlight the entire object, and the anchor(s) would become white circles. Then, you could move just one of the anchors at a time to make asymmetrical changes.
    Not with placed images. Not ever.
    >I can still do this with a shape I've drawn, but not with an image I placed.
    Yes. That's the way it has always worked in Illustrator.
    I have AI 8, 10, and 12 installed on this PC and on a Mac in my studio, so I'm not relying on (my failing) memory.

  • CS3 Photoshop - Canvas resize anchor grid not selectable anymore. What happened?

    Hi,
    I have Version 10.0.1 and up to two days ago I could select resize canvas, change the pixels, select the appropriate anchor and all went well. Now, for some reason I can no longer select an anchor point. Absolutely nothing happens if I click on one of the arrows.
    I have checked Image mode and it is RGB 8bit. I have gone through all of the settings I can think of and no luck.
    I cannot remember making any change that would affect this function but apparently I did. I doubt the program just decided to quit. My OS is XP Pro but that hasn't changed. Nothing has that I can think of
    Does anyone have any idea what I need to do to get this to function again?

    Reset your preferences
    Hold down CTRL + SHIFT + ALT keys then start photoshop. Window pops up choose yes.

  • Add anchor directly below another to same selection?

    Hi all. Got a maddening problem I thought would have a more obvious solution.
    I want to connect selected end points on two anchors that share X and Y coordinates.
    1. Selecting the anchor with the lower Z-index and trying to select the higher one will not work because of selection localised bias or whatever you want to call it either way clicking on the same location again will take me to be referring to the same anchor I already have selected.
    2. Selecting one anchor and hiding its parent path to unambiguously reveal the other doesn't work because hiding an object removes it from selection.
    3. The save selection tool looked promising but unlike its Photoshop cousin, its most advanced feature is the 'edit selection' property and the height of its powers involves changing the name of a saved selection.
    Any advice?

    Instead of trying to select the two coincident endpoints by clicking, select them by dragging a marquee selection
    around them.
    Also understand: If the two endpoints are on the same path, you don't have to select them at all to close the path. Just select the whole path (as the black pointer would), and invoke the Join command (Ctrl J).
    JET

Maybe you are looking for