Anchoring groups CS3 JS

I have written basic code to create a graphic frame and text frame for captions. I have grouped them. I am now missing code for anchoring it in place of caption.
for(i = myResults.length-1; i >=0 ; i-- )
//create picture frame and apply object style
  var myPhotoFrame=myPage.rectangles.add({geometricBounds:["0","108","40", "0"]})
  var myO1style=app.activeDocument.objectStyles.itemByName("photos");
  myPhotoFrame.applyObjectStyle(myO1style)
  var myAnchoredText=myResults[i].texts.itemByRange(myResults[i].characters[0], myResults[i].characters[-2])
  alert(myAnchoredText.contents)
//create text frame and apply object style
  var myTextFrame=myPage.textFrames.add({geometricBounds:["0","108","10","0"]})
  var myO2style=app.activeDocument.objectStyles.itemByName("captions");
  myTextFrame.applyObjectStyle(myO2style)
//move captions into text frames
  myTextFrame.contents=""+myAnchoredText.contents+""
  myAnchoredText.remove()
//Group
   var myArray = new Array;
   myArray.push(myPhotoFrame);
  myArray.push(myTextFrame);
//Group the items.
  var myGroup =myPage.groups.add(myArray);
//anchor 
   myInsertionPoint = myResults[i].insertionPoints.item(-1)  
last line of script not acceptable!!
Thanx
STdishon.

If you look at Image Processor.jsx you shuld find them near the bottom of the script.

Similar Messages

  • Adobe Anchor Service CS3 fails to install

    Trying to install Photoshop CS3, it always fails due to a component installation failure:
    Adobe Anchor Service CS3
    Skipping operation because required operation failed with code: 2
    Followed a lot of forum suggestion, CS3Clean, uninstall this and that, the problem persists.
    Both GUI and silent install have the same problem.
    Tried installing AdobeALMAnchorServiceAll directly with
    msiexec /i AdobeALMAnchorServiceAll.msi ADOBE_SETUP=1 UPGRADINGPRODUCTCODE=1 /qb

    Dionysus_82 please see Error "Failed to Install" Creative Cloud Desktop application - http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html for information on how to resolve your current error.

  • 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

  • Named Anchor in CS3 - AS3

    Does anyone know how to add a named anchor to a scene in Flash CS3 / AS3? I need the middle part of a scene on the timeline to display at the top of the screen when it first appears.
    Thanks.

    http://forums.adobe.com/thread/1235387

  • Problem in Getting  Child Count And Child Reference of a Group  [CS3/WIN]

    Hi All,<br /><br />I have Created a group For Some pageItems using kGroupCmdBoss<br /><br />InterfacePtr<ICommand>groupItemsCmd(CmdUtils::CreateCommand(kGroupCmdBoss));<br />InterfacePtr<IGroupCmdData> groupCmdData ( groupItemsCmd, UseDefaultIID());<br />UIDList*list=new UIDList(grpList);//grplist contains UID of all items to be grouped<br />groupCmdData->Set(list);<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd);<br /><br />Till here every thing is working fine.<br />But when i want to traverse through all group item using IHierarchy every time its giving child count as one.<br /><br />InterfacePtr<IHierarchy> child( groupRef,  UseDefaultIID() ); <br /><br />int32 grpchildCount = child->GetChildCount(); //always 1<br /><br />I am not getting why its  always return child count as 1. But the same code is working fine when i am creating group using click on Group In UI. <br /><br />Can any one tell me How Top Iterate through group in above case.???<br /><br />I think when i am executing Group command some document hierarchy is changing becoz of that i am getting issue??<br />any idea??

    Hi Dirk,<br />Thanks For your Reply.<br /><br />ya you are correct I'd call that variable groupHier rather than "child".<br /><br /> ---You've omitted the interesting part, how and when you obtain that <br />groupRef.<br /><br />When i am creating group as mentioned above after executing group command i am using.<br />ErrorCode status = CmdUtils::ProcessCommand(groupItemsCmd); <br /><br />b UIDRef grpRef((groupItemsCmd->GetItemList())->GetRef(0));<br /><br />I am using this reference to set script label("Group") for that group.till here its working fine group is created and script label is set.<br /><br />Then i am iterating through all page items using                 UIDList itemsOnPage(database);<br />const bool16 bIncludePage = kFalse;<br />const bool16 bIncludePasteboard = kFalse;<br />                         spread->GetItemsOnPage(pageIndex, &itemsOnPage, bIncludePage,<br />                         bIncludePasteboard);<br />int noOfItems=itemsOnPage.Length();<br /><br />for(int32 pageItemIndex=0;pageItemIndex<noOfItems;pageItemIndex++)<br />{<br /><br />UIDRef pageItemRef=itemsOnPage.GetRef(pageItemIndex);<br /><br />//here i am reading script label <br /><br />if (Utils<IPageItemTypeUtils>()->IsGroup(pageItemRef) == kTrue) <br />{<br />InterfacePtr<IScript>script(pageItemRef, UseDefaultIID());<br />PMString grpScriptLabel=script->GetTag();<br /><br />if((grpScriptLabel.Compare(kFalse,"Group"))==0) //comparing with group label to check that this is group<br />{<br />// so it is group <br />InterfacePtr<IHierarchy> grpHier( pageItemRef,  UseDefaultIID() );<br /><br />b ASSERT(::GetClass(grpHier)==kGroupItemBoss); //No Asserts here<br /><br />int32 grpchildCount = grpHier->GetChildCount(); // here i am getting always one<br />}<br />}<br /><br />}<br /><br />I check for Ur suggested Assert But i am not getting any assert.<br /><br />And One more interesting thing i found that the group i have created programatically is behaving fine as group in Indesign UI.But when I want To Ungroup In UI  by right on Group item And Click UNGRoup option in menu nothing seems to happen.<br /> <br />I am really puzzled.

  • Adding a Text Frame to an Existing Group

    I have belatedly discovered another difference between CS4 and CS2 -- I don't know whether this started with CS3 or not; I think perhaps it did.
    When you want to add a text frame to an existing group (which means create a new one within group), it's fairly straightforward unless the group is inline to a story. Then the new item gets added at the wrong place (I suspect what actually happens is that it always used to get added at the wrong place and then moved to the specified coordinates; but in CS2 and earlier, there was no automatic updating of the screen so the coordinates worked, but in CS4, the addition of the new frame moves the inline and so the coordinates you're aiming for are no longer correct). I worked around this in the following script by changing the anchoring and then changing it back -- I'm not entirely sure that this is foolproof, but it works on the job we're using it for.
    //DESCRIPTION: Add New TF to Parent Group of Selected TF
    (function() {
         if (app.documents.length > 0 &&
                   app.selection.length === 1 &&
                   app.selection[0].parent instanceof Group &&
                   app.selection[0] instanceof TextFrame) {
         var group = app.selection[0].parent;
         if (group.parent instanceof Character) {
              // we have an anchored group. Make sure it is custom while processing
              var origAncState = group.anchoredObjectSettings.anchoredPosition;
              group.anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;
         var bounds = app.selection[0].geometricBounds;
         var newTF = group.textFrames.add({geometricBounds:bounds});
         newTF.move(undefined, [0, -1]); // offset a pica -- or whatever the units are
         if (origAncState !== undefined) {
              group.anchoredObjectSettings.anchoredPosition = origAncState;
         app.select(newTF);
         } else {
              alert("Please select a text frame in a group.");
    Dave

    Open the PDF in Acrobat (not Reader).
    Use the "Draw Rectangle" tool (Comment :: Drawing Markups)
    Go into the Rectangle Properties to configure appearance for border line style, thickness and color; fill color and opacity.
    Be well...

  • WLC Mobility Group Confusion

    Can some please clarify how Mobility groups work and when to use them. I have 2 data centers, each with a WLC, for centralized control. I just want to provide simple redundancy.
    When should I use an Anchor group.
    Thanks for your help.

    To make it simple, any wlc's that will be a primary, secondary or tertiary WLC for lap's will need to be placed in the same mobility group. Now if you have a guest anchor controller for guest, then that will need to be added in the same mobility group. Bottom line, when users roam from AP to AP from WLC to another even getting tunneled (anchor) the WLC's need to be aware of the roaming and that is what mobility group does.
    Anchor is if you want to tunnel users to a specific controller like in a guest wireless situation when the WLC is located in the DMZ. There are other reasons, but this is most likely why.

  • Do Anchor controller and foreign controller have to run on the same code version?

    Hi All,
    I have a 4402 anchor controller and 8 4402/4404 foreign controllers all running on code 4.2.61.0 for 1 year without any problem. All guest users are connected to the foreign controllers and then tunneled back to the anchor controller. Right now I need to replace a 25-AP license 4402 foreign controller with a 50-AP license 4402 controller. The new controller is running on code 7.0.116.0. I am wondering if the new controller can join the mobility anchor group so that guest users won't lose connectivity after the swap.
    Please advise. Thank in advance.
    Robert

    Hi,
    The below link will answer ur question!! (Inter Release controller Mobility )
    http://www.cisco.com/en/US/docs/wireless/controller/release/notes/crn7_0_116_0.html#wp568458
    Lemme know if this answered ur question and please dont forget to rate the usefull posts!!
    Regards
    Surendra

  • Incoming styles (paste or library) ignore Style groups and duplicate

    I have a group  of styles in my doc that are identical to the (parap) styles contained in a library item and other Ind docs that I am working on.
    the Library item does not "see" the styles in the group and simply duplicates them.
    I realy like organising my styles in groups, but can't seem to stop this duplication.
    -The styles were in the group when the lib item was created
    -I get the same results when pasting from other Indd docs - the styles in groups are ignored and the incoming styles duplicated outside of the group
    CS3 through CS5 which implies I am doing somehting wrong??

    Bruce?
    Anywho, I can't replicate the problem.
    I've created some styles. Put them in groups. I've placed that text frame in a library. Deleted the text frame. Then placed the item from the library and all the styles come in just fine, no duplications.
    Can you give me a step by step to recereate the issue?

  • Ungroup groups

    When building an epub in CS6 I used the group method to keep images and captions together (upwards of 250 illustrations). The groups are anchored as inline objects. ID CC introduced a nasty little bug which rasterizes groups without allowing an option. This destroys caption text. One "fix" is to increase the size and weight of my caption para style but this is ugly. The other way is to save the document as an idml and open it in CS6. OK, but you then lose any CC advantages. Is there any way to ungroup all? The one at a time method involves changing each anchored group to an above-line object, releasing the anchor, ungrouping, re-anchoring and relocating the image and caption frames separately (not an option for 250).
    Paul

    We rasterize Inline positioned Anchored Objects in order to maintain their position relative to the text where they are anchored - the only HTML object which can be a child of a Pargagraph is an image.
    Above Line and Custom positioned Anchored Objects are treated differently - they are removed from the Paragraph and placed after it (or before it if the anchor TextIndex is the start of the paragraph) and so we are not forced to rasterize them and turn them into an image.
    Until we give you an explicit control to say "move this Inline position Anchored Object outside the Paragraph" you only choice to prevent automatic rasterization is to change the Anchored Object position which I believe you can do with Find/Change Object, or if you've faithfully applied an Object Style you can just edit that.
    Douglas Waterfall
    Architect, InDesign Engineering

  • Export thousands of entries to separate files

    I don't know scripting. But I would sure like to find a script to do this little thing for me!
    Some background is necessary:
    Years ago, I was a dedicated HyperCard user. (If you know what I mean then you know my pain). I had a rolodex phone book with thousands of entries.  As OSX came along, I ran HyperCard in classic. Now that I'm on an Intel Mac, classic is no longer supported. My clever solution was to export my stack entries to text and bring them into InDesign.
    I'm limping along pretty well. Search in InD is very fast. And I've formatted the text using InD search and replace functions, I've made clear separations between entries. Each entry is one Paragraph, and between each entry is a spacer paragraph which carries a particular paragraph style called "Card Spacer". See the screenshot below.
    My goal now is to move the data to a more useful platform  - Notebook, Yojimbo come to mind. I'm thinking that what I need to do is EXPORT each entry as a separate text file to my hard drive. Then I can import the entries into the new database and each entry will be separate.
    I'm hoping that a kind member with the scripting skills to do this will help me out.
    With appreciation,
    Lance (NYC)
    Member NYInD User Group
    CS3 Intel Mac 10.5.7

    Hey Peter!
    Thanks so much! The script worked, it created over 4,000 text files in the folder where the file sat. It took about 5 seconds! I think this will solve my problem.
    Before I close this thread (with a "Yes, answered" click), there's one minor hiccup I'd like to show you. The script is creating files both for my entry paragraphs and also for the spacer paragraphs. So I get one spacer text file for each "record" file.
    I thought it would be easy to simply delete all the odd or all the even numbered files, but for some reason, the odd/eveness of the record files is not the same throughout the 4000 files. Probably there is an errant extra Hard Return character occasionally, causing the alternation of odd/even to switch.
    Can the script be modified to skip the card spacers? Can you test for the paragraph style and skip paragraphs that are styled with "Card Spacer"? Of course, I can insert any other character into the spacer paragraphs if you'd rather filter for something else.
    I don't know if, or how, I would get rid of the extra records if I import them into the new program.
    Peter, this is not the first time I've used one of your scripts. Looking in my scripts folder, I saw another with your name: KahrelBatchExport.js. Thanks again for your help.
    Check out this screen shot.

  • "Live Snippets" an idea sculpted out from a giant project.

    Hi, all the enthusiastic members
    I intend to distribute an open source and free script collection, that lets the user to export a selected text to an Incopy file and observing and synchronising the relation between the exported file and its instances inside the indesign document in a semi-automatic way. And that by the following scripts:
    http://sites.google.com/site/livesnippet/javascript-files
    live_snippets_startup.jsx - has finished.
    Initiate the dialogs and the essential styles, elements and variables to be ready for the other scripts.
    new_from_the_selection.jsx - has finished.
    This export the selected text (and only the selected - not the story) as a new InCopy file to a folder called "live_snippets" inside the document's parent folder. These InCopy files named automatically with four digits like this file "live_snippet.0006.incx".
    The selected text enclosed with starting and ending marks by adding small anchored text frames with nonprinting attribute and labeling these text frames with the snippet number (the number of the Incopy file).
    check_the_document.jsx - has finished.
    Check and states of the instances with their Incopy files. and mark the modified and missing snippets by spoiling the font style of the starting anchored text frame contents so they appear in the preflight panel. And changing the colors of the modified snippet to blue and missing ones with red.
    submit_this_modification.jsx - hasn't finished yet.
    Modify the snippet (the Incopy file) by re-exporting the instance that the text cursor inside it.
    update_this_instance.jsx - I haven't started with it.
    placing the snippet (the Incopy file) to update the selected instance (by selecting the starting anchored text frame or by putting the text cursor inside the snippet.
    place_snippet.jsx - I haven't started with it.
    place a snippet in the text cursor location without having to browse to the live_snippets folder (only getting the snippet number is enough).
    I will continue until the collection reach a perfect stage and has a comprehensive abilities.
    The current features:
    You can choose to place the snippet so the instance follow it with formatting or without formatting.
    You can add a description to the snippet which stored in the file meta data.
    Intended features:
    You can nested the snippets so it's possible to exclude partitions from the snippet to be in variety. Also in this feature you can change the order of the sub-snippets inside their parent so the global layout and the decorative elements could be changed permanantly and easily.
    I want to put these files on an online service (the google site is temporarily) , web site or forum so we can make our modification, online read and write code, supply our comments on the code lines and functions level, showing the downloads count, tracing the versions...
    So, is it available in this forum tools, because I tried to add the files from New>Document in my forum page and faced with a forbidden message.
    Also I hope if any one see that this approach is an unnecessary repeating of existing InDesign tools or plugins already in the market. Please tell me.
    When creating. The "With Format" option is set as default but you can change it for every instance (Not done yet) to its own option.
    These anchored text frames have nonprinting attribute, but we could print it by modifying the export or print options in reviewing stages so the numbers can be used as a reference in emails and broadly modifications
    When the achieve the ability to nested the snippets so we can in this question example change the points and assure that all questions have the same wording.
    The small circle indicate that the instances shares only the contents without the format.
    The Incopy files created automatically without the need to specify the location or name.

    What about if we put the marker on a separate layer to assure that the text will not be spoiled. How could we do that?
    Is it possible to use tags in the text and a text frames in a separate layer for showing the instances informations.
    But I tried to mark a text inside a text frame grouped with an anchored group and get this message:

  • Can't uninstall Photoshop Elements 6 Mac with Mountain Lion

    I've just purchased a Creative Cloud subscription and want to get rid of my installation of Photoshop Elements 6 on my MacBook Pro. I'm currently running OS X Mountain Lion 10.8. I tried running the Installer/Uninstaller at 'Applications:Utilities:Adobe Installers:Adobe Photoshop Elements 6'. The program returned the following string of errors:
    Summary
    Errors: 22 component(s):
    Adobe Photoshop Elements
    Component removal failed
    Adobe Anchor Service CS3
    Component removal failed
    Adobe Asset Services CS3
    Component removal failed
    Adobe Bridge CS3
    Component removal failed
    Adobe Bridge Start Meeting
    Component removal failed
    Adobe CMaps
    Component removal failed
    Adobe Camera Raw 4.0
    Component removal failed
    Adobe Color - Photoshop Specific
    Component removal failed
    Adobe Color Common Settings
    Component removal failed
    Adobe Default Language CS3
    Component removal failed
    Adobe ExtendScript Toolkit 2
    Component removal failed
    Adobe Fonts All
    Component removal failed
    Adobe Help Viewer CS3
    Component removal failed
    Adobe Linguistics CS3
    Component removal failed
    Adobe PDF Library Files
    Component removal failed
    Adobe Stock Photos CS3
    Component removal failed
    Adobe Type Support
    Component removal failed
    Adobe Update Manager CS3
    Component removal failed
    Adobe Version Cue CS3 Client
    Component removal failed
    Adobe WinSoft Linguistics Plugin
    Component removal failed
    Adobe XMP Panels CS3
    Component removal failed
    PDF Settings
    Component removal failed
    Any suggestions would be greatly appreciated.

    First I would try using the preferred uninstaller, which is the installer from your original media (disc or dmg). When you get to where it says Install Components, choose Remove Components instead.
    If that still fails, try running cleanscript and then removing things manually:
    http://www.adobe.com/support/contact/cscleanertool.html

  • InDesign CS5.5--can't generate live captions

    Having used Bridge to insert metadata descriptions and copyright info in my graphics files, and having done "caption setup" in Objects Menu, I find that the Captions Submenu choices for "Generate Live Caption" and "Generate Static Caption" are greyed out. I am doing an ebook with inline pictures and have placed the jpegs at the beginning of paragraphs. I can't replicate any of the smooth successes depicted in all the "How To" videos. What am I doing wrong, please?

    Many thanks! Hope there's a script out there, with multi-chapter epubs growing by leaps and bounds. I also found this comment on another forum page from Peter Spier: "To group the image and the frame with the caption you'll need to "unanchor" the image first by selecting the frame and cutting. Paste temporarily on the pasteboard, position the caption frame, group, then cut and paste back into the text. You may need to adjust the "anchored object options" for the anchored group after pasting." Your comment and his will give me a direction for the dozens of images I already positioned inline. After that, much smoother sailing, understanding this part of the mechanics.

  • YUI and Dreamweaver CS4

    I'm considering upgrading to CS4. Is the new version able to
    render a page based on Yahoo's YUI? According to a post last year
    on the YUI javascript group, CS3's Design View rendering was based
    on Opera 9 but it didn't support all of Opera's css rendering
    ability. So Design View was pretty much useless if you used YUI.
    I'd like to know if CS4 has improved support for rendering css.
    For the YUI post, see -
    http://tech.groups.yahoo.com/group/ydn-javascript/message/23017
    thanks,
    Dan

    dpj22 wrote:
    > I'm considering upgrading to CS4. Is the new version
    able to render a page
    > based on Yahoo's YUI? According to a post last year on
    the YUI javascript
    > group, CS3's Design View rendering was based on Opera 9
    but it didn't support
    > all of Opera's css rendering ability. So Design View was
    pretty much useless if
    > you used YUI. I'd like to know if CS4 has improved
    support for rendering css.
    > For the YUI post, see -
    >
    http://tech.groups.yahoo.com/group/ydn-javascript/message/23017
    Dreamweaver's design view is not and has not been based upon
    Opera. It is a custom rendering engine. It may have had some of the
    rendering specifics in common with Opera, or other browsers such as
    IE, but it is not based specifically upon any individual rendering
    engine. For what I can tell the Opera rendering engine that seems
    to be used within Device Central to display mobile content:
    http://help.adobe.com/en_US/DeviceCentral/2.0_UsingDeviceCentral/WS92CC362A-4B06-4e83-BB4B -C6B5BA379CA7.html
    The last few releases of Dreamweaver have had a strong focus
    on CSS, including CS4, so the rendering of CSS is improved
    somewhat, but I do not know specifically what impact that may have
    had on rendering of YUI grids CSS.
    A side note: Dreamweaver CS4 introduced a new view called
    "Live View" that uses WebKit (the rendering engine that powers
    Safari). In that view you'll see your content through WebKit
    rendering engine so JavaScript and CSS will be rendered a bit more
    closely to what you'll see in a browser. But as always, nothing
    beats viewing your pages within the browsers that you are worried
    about as they are all different and updated on different
    frequencies.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

Maybe you are looking for

  • Error sending IDOC from JCO Client to PI AEX 7.3.1

    Hi All We have a requirement to send an IDOC from a non SAP System to our ECC via PI AEX : JCO.Client --> PI AEX --> SAP ECC At this time, we are testing this scenario with a JAVA Client with JCO Library (3.0.10). Destination to PI is OK Destination

  • Ipcu error: Runtime Error on Visual C++ runtime library

    Hi, I'm new to iPhone Configuration Utility on Windows. I just downloaded the latest version and installed after installing the latest version of iTunes and rebooting. I'm on Windows 7 Pro, 64 bit. When starting ipcu, I get a dialog titled: Microsoft

  • Connecting HDTV to Macbook Pro to use as second display

    I connected an HDTV to my macbook pro using hdmi cable. Is there a way to turn off Mirroring, it doesn't seem to be giving me the option in the system preferences. Do I need to connect it with VGA cable instead to get the "Non" mirroring option. I wa

  • How to import a package in jsp

    i've searching here and i've not found answer to this, so i write it here. i've created a class to send mail, it imports the javax.mail.* and javax.activation.*, in a package named jspbeans. now, when i try to use this package in my jsp page (using t

  • Why do all emails in Mail today appear squashed & almost unreadable?

    Everything in my email list is nearly unreadable, with the type and graphics appearing severely squashed. When I open up the email, everything appears normal.