Bring items in front of another

The applescript dictionary for InDesign says:
"bring to front v : Brings the object to the front of its layer or in front of a particular item."
But how do you write to bring the object in front of a particular item? The command only accept one parameter (the object that it brings to front).

Thanks Jarek,
you saved my day! Though I had to use the "do script"-command to make it work in Applescript:
tell application "Adobe InDesign CS5"
          set mySelectedPageItems to selection
          set myObject to item 1 of mySelectedPageItems
          set particularObject to item 4 of mySelectedPageItems
          do script "arguments[0].bringToFront(arguments[1])" language javascript with arguments {myObject, particularObject}
end tell
I wasted so many hours yesterday trying to work it out in AS, but failed. Maybe someone know the right syntax in AS?

Similar Messages

  • Forms Developer 4.5 - Bring display item to front at runtime

    I have 10 square display items lined 2x5 to represent a rectangle shape on my form. The individual display items represent 10 positions on a pallet. Other display items are then used to represent an item that needs to placed onto a position on a pallet so affectivly your dragging a display item ontop of another display item.
    My problem: It lets you drag the item onto it however it will not allow you to drag it back off. Even though it looks like your selecting the top item that is in focus, forms thinks your draggin the square behind it? How can I change the focus of display items at runtime?

    Hi, unforunately the company I work for do not upgrade systems it would seem. The system is an old VAX running Oracle 7, the users interface to this is that old version of forms. I have successfully create one drag and drop interface for our users to make changes to the database however this one has different specification and in order for it to work I need to be able to place one display item on top of another. I have worked out how to do this and it works in a fashion however when dragged on top of the other display item it then disappears behind it. I need to bring it to the front at runtime... Any ideas?

  • What is "bring all to front"

    Under the Window menu is the item "bring all to front" and I have no idea what that means.  I thought it meant to get current windows shown but so far nothing happens when I click on that option.  ??????????????

    For the application showing in the upper left-hand corner, selecting that option brings all of its open windows to the front or on top of any other app's open windows.

  • How do i place new item behind an old item on front panel

    is there a "bring it forward" or "place behind" button.  right now i just cut and paste the old item in front of the new item, but not a good way to do it...if its a shared var in a loop it may land in the wrong place on the block diagram when i paste it back in the Front panel. 
    Solved!
    Go to Solution.

    Yes. There's a "Reorder" button in the toolbar.
    Message Edited by smercurio_fc on 07-23-2009 09:02 AM
    Attachments:
    reorder.PNG ‏5 KB

  • The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, cont

    I have a user on an iMac 10.6 connected to our domain.  She uses Outlook web access for email on our exchange server.  Last week she received the following message which is randomly preventing her from sending emails.  She claims no attachment was involved in the original email when this all started.  I have not been able to look at her account as she is out of the office but maybe someone else dealt with this issue.  I realize this may not be Mac related but thought I'd give it a try.  She did say it occurred once over two days while working on a PC but it continued over the past weekend.
    If an internal user tries to send a message with infected attachment using Outlook Web Access, it may report the following error message: The action could not be completed because of a conflict with the original item. The conflict may have occurred when an existing item was updated on another computer or device. Open the item again and try making your changes. If the problem continues, contact technical support for your organization.
    This is because F-Secure Anti-Virus for Microsoft Exchange has detected a virus in the attachment. If the user tries to send the message again, the message will be sent but without the attachment. At the same time a blank message with an attachment named "Attachment_information.txt" will remain in the user's Drafts folder. The "Attachment_information.txt" will contain information about the virus detected in the message.

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • [AIR] May I catch "bring window to front" event?

    Hi,
    I wonder who is responsible for bringing windows to front when user click on that window (application contains more Windows components inside). Is it operating system or AIR runtime? Or perhaps AIR runtime send event to operating system which does it? In this case there would be some chance to catch and stop propagation of that event not to let operating system bring that window to front. Am I right? Any idea how to do it?
    //pyso

    This thread explains my experiences with the toFront() method on Windows 98. It works, but only if the frame has been hidden for about 20 seconds.
    http://forum.java.sun.com/thread.jsp?forum=57&thread=426257

  • How do I bring components to front?

    Does anybody know, if I have overlapping components like JLabels, how can I choose which one to bring to the front?
    In other words, if I have two overlapping JLabels, how can I choose which one gets seen.

    I don't know if you can do this programmatically with one call (like the WinAPI setWindowPos and specify the z order and appropriate flag).
    Swing components are displayed in the order they are added to the container, with the first component being the top most.
    Regards,
    Nick G.

  • Method to bring component to front?

    Hey all
    I am looking for a method that can be used to bring a component to front in my applet. I have a few choice menus that arent showing up and i believe it is because labels are being drawn over them.
    The choice menus do not show up at all normally, but they appear just fine if I
    setVisible(false) to the labels.
    It has always been my understanding that components will show up in the order they are added to the applet. So if the labels are added first, then the menu second - the menu should be on top. However my applet also requires a lot of setVisible(true/false) and I am not sure if that is affecting the layering also. Would setting a component as visible automatically bring it to front, or would it remain where it has been added?
    SO, if there is a bring to front method kicking around that would definately solve my problem.
    thanks for the help.

    If possible could you post your compilable code that simulate your
    problem or in short your SSCCE.

  • Automator: Bring Window to Front

    I have been looking for a workflow that can bring a non-active window into active view e.g. bring a window that is in the background to the front view.
    There is no workflow in automator for this action but i wondered if anyone has come across some apple script that is capable of doing this? I could work the apple script into automator.
    Thanks,
    Adrian

    The window i am trying to bring to the front is called 'WorkflowServiceRunner'. Its not an application in the available list in Launch Application action.

  • Bring obj to front with tween?

    How can i make the obj change to front of another when the mouse roll over, and come back when out?
    I look for "setChildIndex with tween" but i don't found...

    Man, sorry but i try to do something similar with another script, but without change depht, just move x position and come back where it stopped.
    I created a function when the mouse moves over the MC, he begins a Xposition tween 30 to 100. And when the mouse roll out, he comes back from the position it stopped. The script for the rollover works fine. But the rollout, always returns to 100.
    Understand?
    Here is the code:
    stop();
    import fl.transitions.*;
    import fl.transitions.easing.*;
    MovieClip(root).content_mc.inmage_mc.cd_mc.addEventListener(MouseEvent.ROLL_OUT, OutB2B);
    var diskX:Number = disco_mc.x;
    function OutB2B(e:Event):void {
    this.Tween = new Tween(disco_mc, "x", Regular.easeIn, (diskX), 30, 1, true);
    this.Tween = new Tween(disco_mc, "rotation", Regular.easeIn, -45, 1, 1, true);
    gotoAndPlay(3);
    Can explain what am I doing wrong?
    edit:
    I intend to do the same thing with the rotation, but first need to figure out how to make the X. ..
    Thanks..
    Message was edited by: Igor R. Gomes

  • Bring text to front of image

    how do i bring text to front of image using dream
    weaver?

    You would set the image as a background image- that would be
    a possible
    option. Please remember that the text will not stay static
    and will shift
    when a viewer resizes the text.
    You cannot lose until you give up !!!
    "berry05" <[email protected]> wrote in
    message
    news:fsk74t$d4r$[email protected]..
    > how do i bring text to front of image using dream
    weaver?

  • Part of a SC item carried out sourcing , another part can be sourcing too?

    we used SRM 7.0.
    part of a SC item carried out sourcing , another part can be sourcing too?
    for example , SC item 01 which include 1000 pc A.
        1st, we create RFx reference item 01 with 600 pc A
        2ed, can we create another RFx with remaining 400pc A ??
    regards
       claud

    Hi Claud,,
    Jay is absolutely right. You cant source the item even if you have left over quantities. Infact I was curious to try out your scenario and for me it did not work out like you mentioned. Once I created a PO for 60, I could not find the SC back in SOCO for the remaining 40. Wondering how you managed it.
    Regards,
    Nikhil

  • Bringing items to the front.

    I have 4 rotating pictures and each time they rotate I want one of them to be on top of the rest but yet the corners of the others to be visible underneath. Is there a way I can do this as it seems only the first one will be on top obviously because it's top in the layers

    In PPro, you will need to stack sections of your clips on different layers to get them into the order you want. Use the razor tool as necessary to cut clips into sections so you can manipulate the order.
    Alternatively, if you have After Effects, assign them to 3D layers and do the job properly.

  • How to Delete Item from Front Row?

    Someone sent me a short imovie project and it was automatically downloaded to my "Download" folder. When I opened Front Row, the project name it's right under "Movies" along with "iTunes Top Movies", "Theatrical Trailers" and "Movie Folder".
    I then moved the project file from "Download" to another folder created under my "Movie" folder. When I went to Front Row again, the original project was still under the list in Movies, now it's also in "Movies Folder". So basically it's showing up twice in Front Row in different places.
    I see that once I play the movie from my Movies folder directly from the folder, it's automatically set to Music/iTunes/iTunes Media/Movies. So it's showing up in Front Row via iTunes, and it's also showing in Front Row via my Movies Folder.
    I just want to organize Front Row so that I don't have a long list of projects immediately under "Movies" in Front Row. I want these projects to neatly go in one personal movie folder only.
    Is there a way to reorganize the items list in Front Row?
    How do I delete the item that's originally placed under "Movies" in Front Row?

    Assets are organized in various apps - primarily iTunes for most of us.
    That said, you may benefit from this series:
    http://www.macnewsworld.com/story/59317.html

  • Bringing event to front in iCal

    Going to try a slightly different question to the one I posted yesterday.
    If i want to bring an iCal event to the front because it is hidden behind another how do I do this?  Click on it right and it should come to the front?  Since upgrading to Lion this no longer happens.  Any help as to why and how to get over this issue would be very much apppreciated.

    Perhaps my original post wasn't as clear as I thought it was.
    I am running several calendars so that I can see what my colleagues are doing and what is going on at home and there are often events that take place at the same time or overlap times.  In iCal 4.0 I used to be able to click an event that was "under" another from a different calendar and it would come to the front along with all the other events of that calendar.  This no longer happens with iCal in Lion making it very difficult to see events hidden behind others.  I'm sure I can't be only one running more than one calendar in iCal with the potential for overlapping events? 
    My question is: Is this somehting that Apple have changed (if so I am really @£$% about it) or do I have a problem with my set up?  I have already re-installed Lion once to see that helps but no such luck.

Maybe you are looking for