[CS3 JS] Positioning items in menus

Hi,
I can add items to menus but do not know how to control their position.
var myMenuSeparator1 = myFileMenu.menuSeparators.add();
var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3);
How do I put my menu items where I want.
Thanks
Simon Kemp

Thanks,
This helps a bit.
What do I use for "SomeScriptMenuItem".
I have tried...
var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3, LocationOptions.AFTER, "User...");
var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3, LocationOptions.AFTER, User);
var myScriptMenuItem3 = myFileMenu.menuItems.add(myScriptAction3, LocationOptions.AFTER, 24);
I want my menu item to appear after "User..." in the file menu.
Thanks

Similar Messages

  • [AS][CS3] duplicate page items in a specific position on another doc

    Hello,
    I need to copy or duplicate page items of the active page of doc 1 in a specific position of the active page of doc 2.
    I can duplicate the page items of doc 1 into the doc 2 (with the code below) but can't find a way to duplicate them in a specific position: they are always duplicated in the same position on the active page of doc 2.
    The current working code (simplified) is:
    tell application "Adobe InDesign CS3"
    tell document 1
    tell layout window 1
    set pageitemlist to every page item of active page
    end tell
    end tell
    duplicate pageitemlist to the active page of layout window 1 of document 2
    end tell
    Thanks for your help!

    -- This works in CS4:
    tell application "Adobe InDesign CS4"
    tell document 1
    tell page 2
    set d to duplicate page item "textframe1" -- the text frame labeled "textframe1"
    -- FYI, d has a class of list:
    -- "text frame id 328 of page id 237 of spread id 232 of document "Untitled-2" of application "Adobe InDesign CS4""
    end tell
    move d to page 4 -- moves to 0,0 on pg4
    end tell
    end tell

  • Getting rid of AdobeResourceSynchronizer (CS3) in Login Items OS 10.4.11

    I'd like to know how to get rid of the Acrobat (CS3) AdobeResourceSynchronizer from Login Items on Mac OS 10.4.11. Reportedly, it replaces itself in Login Items if removed. In trying to follow the instructions from the Barnaby James blog of 12/06 (first open ye file in a text editor and change the login item key from 'true' to 'false'), I found two files (with names that differ slightly from those specified in the instructions) in Library/App Support/Adobe/Acrobat, which I presume are for Acrobat Pro and Adobe Reader (though I don't have the latter on my drive). They are:
    AcroENUDist80SelfHeal.xml
    AcroENUPro80SelfHeal.xml
    I wondered if I could use TextEdit to change the code, but
    something is apparently screwed up on my drive. The 'Big Bang' game was installed with Tiger.
    Spotlight says 'Kind' for both adobe files is 'PBEM Game File', and when I double-clicked either the icons for the Adobe support files, I got the 'Big-Bang-4-In-A-Row' splash screen with sound effects and 'Solo', 'Network' or 'Email' options; when I tried the 'Open With' command in the context menu, I got a list of the Big Bang game apps: Big Bang Backgammon, Big Bang Chess, etc. A similar wire-crossing has happened before occasionally, for instance a Photoshop file icon will depict and open a completely different file from the named file, which has disappeared into limbo.
    Adobe CS3 was installed on a clean drive following installation of Tiger and updates, all permissions repairs done incrementally. Does anybody out there have any ideas????

    >I wondered if I could use TextEdit to change the code, but something is apparently screwed up on my drive. T...when I double-clicked either the icons
    Just don't double click. These files aren't designed to work that way.
    Use TextEdit and open them directly - if it will do that. Be SURE to
    back up first!!
    Aandi Inston

  • AI CS3 - symbol position changes when editing in place?

    I'm encountering a very frustrating bug with CS3 - wondering if anyone knows a workaround.
    I'm working with very detailed symbols that are precisely positioned on a grid. In order to help position the symbol, I embed a rectangular guide element (the same size for each symbol) within the symbol itself, to act as the outer bounding box.
    However this seems to be working against me - after painstakingly positioning a symbol in its place on the grid, if I ever need to modify the symbol via edit in place, as soon as I enter isolation mode, the symbol will jump randomly 1-10 pixels up and to the left, systematically. When I exit isolation mode, it generally stays in its new position and has to be re-moved.
    T

    Does this happens with all symbols, or if there some element in your symbols that sets this off. Try putting a rectangle with fill & stroke of none that is slightly larger than your symbol, could even use a multiple of your grid size.
    I do this for logos that are lopsided (eg: a logo with a ®) so they center perfectly when using the align command, and has worked great when making design changes to logo that would have otherwise affected their positioning

  • [JS CS3] disappearing page items

    Now this is strange: I've written a script that does some imposition of a an image on a single sheet (page) and puts some special printers marks along the side. Now there's (as far as i am aware of) one instance where all the page items get placed on the page, but when you save, close and reopen the document, half of them are gone!
    When you drag the page items before saving they disappear right from under your cursor! I've tried putting a lot of save commands during the script, hoping that that would nail those items down, but with no luck.
    Has anybody had a similar experience and found a solution?
    Thanks,
    james

    Hi,
    You should send your script then we could have a try on our side.
    Loic

  • CS3: Rotated page item: How can I get the top-right point

    Hi
    I have a rotated page item. Now I should have the top-right and the bottom left point. If I get the rectangle of this page item I only have the top-left and the bottom-right point. And I can read the rotation angle.
    - How can I get the missing points?
    Thanks
    Hans

    Algorithmically speaking (ie, this is NOT real code), isn't it just something like:
    if page.rotationAngle == 90 then
    origTopLeft = (newBottomRight.Y, newTopLeft.X);
    else if page.rotationAngle == -90 then
    origTopLeft = (newTopLeft.Y, newBottomRight.X);
    else if page.rotationAngle == 180 then
    origTopLeft = newBottomRight;
    else
    origTopLeft = newTopLeft;

  • [CS3 Server] Page items copy problem

    I'm trying to copy page items from one document to other. I use kCopyCmdBoss command.
    Command processes successfully but extra pages are generated in destination document and InDesign fails after opening it.
    What could be a problem?
    Thanks in advance.

    -- This works in CS4:
    tell application "Adobe InDesign CS4"
    tell document 1
    tell page 2
    set d to duplicate page item "textframe1" -- the text frame labeled "textframe1"
    -- FYI, d has a class of list:
    -- "text frame id 328 of page id 237 of spread id 232 of document "Untitled-2" of application "Adobe InDesign CS4""
    end tell
    move d to page 4 -- moves to 0,0 on pg4
    end tell
    end tell

  • Illustrator CS2-CS3, Cambiar idioma de los menus

    Algo que quisiera saber si se puede hacer es cambiar el idioma de los menus del illustrator, despues de que ya ha sido instalado digamos en ingles, cambiarlo a Espanol.

    Necesito que me resolvais un problemilla... no sé cómo volver a restablecer el marco de selección que me permite escalar "tirando" de una esquinita, la imagen o cuadro o lo que sea!
    Por favor que alguien me conteste que me he bloqueado [email protected]

  • No Library or Style items for menus and buttons A.En. CS4

    Hi All,
    I recently installed AMC CS4:PP CS4 Ver.4.0.0,PS CS4 extended Ver.11.0,
    AEn Ver.4.0.0.258,AE Ver.4.0.0,ASB CS4 Ver.2.0.The install seem to have
    went ok.But,when I launch Encor I see no Items in the library and style
    categories.I looked in the C:Program files\adobe\adobe encor.I see no
    Library Folder.I also checked the install/uninstall option in the
    control panel and the Adobe PP CS4 Functional content seems to have
    installed it shows 275.5 mb.System:Win XP Pro W/SP3,CPU Intel i7 2.67,
    Ram 3Gig ddr3,H.D.'s OS&Programs WD Raptor 300gig 10,000 rpm,A/V 2 WD750
    raid0,Export WD 750.I installed from disk.Hope I don't have to a complet
    reinstall.Need Help.
    Thanks,
    Barry

    Barry,
    Do not have CS4, but would guess that it is the same. The default installation of Encore will also install the Functional Content. One can uncheck (or maybe a radio-button) in the dialog screen to NOT install, if so desired.
    I'd try a Repair Install. You'll need to start up the installation, and when you get to the dialog box for chosing which programs to install, check Encore. It *should* then bring up the option to Uninstall, or do a Repair Install.
    Seems to be a bit of this going around. I wonder if Adobe made a change with the installation, and set "Do Not Install Functional Content" as the default?
    Good luck,
    Hunt

  • CS3 - Scripts Menu item greyed out after using file info

    This looks like a bug to me, anyone else had the same problem ? Or solutions
    I have a couple of scripts which add an extra menu item called "Scripts" on the menu bar (and sub-menu items to call the scripts). If I open the 'file info' for a selected file and then close it again (doesn't matter if it is cancel or okay) the "Scripts" menu item is now greyed out and not accessible.
    Only cure is to shut down and restart bridge - very annoying.
    Bridge v 2.1.1.9 on Win XP SP2.
    Steve

    sorry for the late reply.. just saw your qn in 2 years time.. ;p
    you need to set "Enable Attached Scripts" to check in the Edit>Preferences>General.
    hope that helps 

  • Positioning items in a frame

    Can someone help me move the AM in my program so that it appears under the time. Also, does anyone know how to put zero,s on the clock when you have single digit numbers, e.g 10:01:03 instead of 10:1:3. Thank You!
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.JLabel;
    class Grid extends Frame
    {   static PrintWriter screen = new PrintWriter(System.out,true);
    int hours, mins, secs, variable;
    Calendar t = Calendar.getInstance();
    final long DELAY = 1000;
    JLabel timeLabel;
    JLabel varLabel;
    public Grid()
    {   setLayout(new GridLayout(1,3));
    hours = t.get(Calendar.HOUR_OF_DAY);
    mins = t.get(Calendar.MINUTE);
    secs = t.get(Calendar.SECOND);
    variable = t.get(Calendar.AM_PM);
    if(variable == 0)
    varLabel = new JLabel("AM");
    else
    varLabel = new JLabel("PM");
    timeLabel = new JLabel(hours+":"+mins+":"+secs);     
    this.add(timeLabel);
    this.add(varLabel);
    private void pause(long DELAY){
    try{
    Thread.sleep(DELAY);
    }catch(InterruptedException ie){System.err.println("Thread.sleep() error)" +ie);}
    public void update()
    {while(true)
    {pause(DELAY);
    Calendar c = Calendar.getInstance();
    hours = c.get(Calendar.HOUR_OF_DAY);
    mins = c.get(Calendar.MINUTE);
    secs = c.get(Calendar.SECOND);
    variable = c.get(Calendar.AM_PM);
    if(variable == 0)
    varLabel.setText("AM");
    else
    varLabel.setText("PM");
    timeLabel.setText(hours+":"+mins+":"+secs);
    class Clock
    { public static void main(String [] args)
    { Grid g = new Grid();
    g.setSize(300, 300);
    g.setTitle("Digital Clock");
    g.setVisible(true);
    g.addWindowListener
    (new WindowAdapter()
    {public void
         windowClosing(WindowEvent e)
         {System.exit(0);}
    g.update();
    }

    see http://java.sun.com/j2se/1.4.2/docs/api/java/text/NumberFormat.html for information on Number Formatting (alternatively you could simply check if your digit is < 10 and add a 0 manually)
    see http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html to learn more about java layout managers (to specify which component should be placed where)

  • ITunes on OS X 10.5.8 stopped working. e.g. no highlighted items in menus!

    I can't even check which version of iTunes I have.
    I tried reloading iTunes 10.6.3, but no change.
    How do I fix this?

    The last compatible build is  iTunes 10.6.3. Suggest reinstalling from there.
    You could test the theory regarding a problem with the library by creating a new one as a test: HT1589 - iTunes: How to open an alternate iTunes Library file or create a new one
    tt2

  • Having DW CS3 update lib items to XHTML strict

    I created 2 .lib files in fireworks but now I am trying to
    update the code so that it will it can be validated to xhtml strict
    (such as the <img>, <a> tags being closed properly ...
    />). So is there a way to automatically have DW do that or must
    I do it manually?
    And similarly, I need to convert all the pages I already
    created to the strict standard, so is there an auto way to do that
    across the whole site.
    No I am not lazy, just like to stream-line the work. :)
    thanks.

    > it was stricter - i.e. it demanded that I closed tags
    such as <li>
    > and all those things
    <ahem> - the <li> tag already has a proper
    closing tag (</li>)!
    > and using validators - I at least found it helped find
    my errors more
    > easily with xhtml.
    How so?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Malcolm _" <[email protected]> wrote in message
    news:[email protected]...
    > On Mon, 21 Jul 2008 18:55:50 +0200, Michael Fesser
    <[email protected]>
    > wrote:
    >
    >
    >>
    >>If you deliver your XHTML as text/html, which almost
    every site does,
    >>then you're in fact delivering HTML, just with a
    fancy syntax. In order
    >>to make that work you can't write "real" XHTML, but
    have to follow the
    >>HTML compatibility guidelines and have to deliver
    your markup as HTML to
    >>make the browsers parse and render it as HTML. In
    short: Your documents
    >>are still much more HTML than XHTML! So what's left
    from the nice and
    >>clean XHTML in the end? Almost nothing.
    >
    > Yes I know that :-)
    >
    > We will never resolve this debate I fear -
    >
    > I have read many books, websites etc on this subject and
    as a humble
    > amateur - albeit with software training in the past - I
    got awfully
    > confused.
    >
    > But I tried both html / and xhtml ( ok, ok rendered
    using html not xml
    > :-)) )
    >
    > What I found was that I preferred xhtml because -
    >
    > it was stricter - i.e. it demanded that I closed tags
    such as <li>
    > and all those things
    >
    > and using validators - I at least found it helped find
    my errors more
    > easily with xhtml.
    >
    > I'm a simple pragmatic sort of guy - I just found xhtml
    easier.
    >
    > If one day html 5 eventually arrives :-)
    > I am 95% sure that browsers will be slow to adapt and in
    the meantime
    > people like Adobe and the vast open source movement will
    produce
    > converters that will change my code from xhtml 1.0 to
    html 5 :-))
    >
    >
    >
    > --
    >
    > ~Malcolm~*...
    > ~*

  • Encore CS3 Does it do popup menus and accept surround LPCM?

    If it does not I might as well stay with DVDIT Pro HD.
    Cheers
    Mike

    I would imagine that now that it has been announced, that the NDA does not apply, I mean, they list all the specs, we know what it can doif it has a certain feature, why would they not want there faithful customers to know, seeing as it has already been announced and there are articles covering the review of the products.
    Mike

  • Unable to set target items correctly in MENUS

    Hi,
    I have an issue when I try to set the target items in menus.
    (Excuse the long explanation)
    Firstly let me explain what I am trying to do.
    I have 4 pages which are linked to each other that provide more detail for each page. Page 1 shows the highest level of summary i.e product category. Select a category and then link to page 2 , the sub-categories page, select a sub-category and link to page 3, the products page, select the product link and link to page 4 showing associated customers for product.
    I have created a menu and displayed it as a bread crumb.
    Home > Categories > Sub-Categories > Products
    When navigating back up the menu structure it works fine. The problem happens when I place on Page 1 (Home) a top 10 product chart with links directly to page 4. You can only specify target items in the menu from one page to another. Level 4 menu (Products) sets the right sub-category item for Level 3 (Sub_Category) but the Level 2 menu targets (Category) are not set because I have jumped over the levels.
    Any ideas how to set the targets on all menus from the last menu when jumping over the sequence.
    Thanks,
    Burke

    The guys may have a better suggestion but I had the same problem and solved it by having a onload computation or a process on page 4 that set the values of items in pages 1,2,3.

Maybe you are looking for

  • DVR/STB/Remote issues - Help Needed

    New to Verizon FIOS (Installed about 2 weeks ago).  Have a few issues. Any help is appreciated 1) When im on the Home Media DVR and i fast forward through a program, when i stop or hit play, an extremely loud beep that lasts for 1-3 seconds comes fro

  • Home directory is shown as package

    Hi, a few days ago I copied the .hdd directory of a parallels installation into my home directory. but i made a little mistake and copied the content of the folder into my home dir. i deleted the files again and copied now the folder. after clicking

  • Urgent :  Workflow Query...

    Hi, I have created one workflow by using the BOR BUS2021. here the Request id is Key field . i have created the 5 methods for this object with the customer name space(Y). when i am binding the from workflow to step.the request id is not appearing in

  • Install OWB Runtime user on other DB than runtime repository

    hello all Is it possible to install a runtime user on a different database than on which the owb runtime repository is installed? The OWB version we currently use is the 9.2.0.2 version so no Paris feature replies please. I think so but my DBA which

  • Deleting old versions of iPod for Windows

    I have the following "iPod for Windows" programs on my hard drive and am wondering if I need all of them or if I can remove the oldest ones. Which can I safely remove? 2005-11-17 115MB 2006-01-10 115MB 2006-03-23 165MB 2006-06-28 232MB Thanks for the