Help with the Menu item

I created an action that...

  1. Select a Smart Object Layer, called YOUR IMAGE
  2. Selects the Menu item > layer > Smart Object > replace content

Action 100% work, but when I convert the action of a script and run it, the IMAGE of YOUR gets selected the menu Item does not show.

Can anyone help please.

cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };

//==================== Load Image ==============
function LoadImage() {
  // Select
  function step1(enabled, withDialog) {
    if (enabled != undefined && !enabled)
      return;
    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
    var desc1 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putName(cTID('Lyr '), "YOUR IMAGE");
    desc1.putReference(cTID('null'), ref1);
    desc1.putBoolean(cTID('MkVs'), false);
    var list1 = new ActionList();
    list1.putInteger(9);
    desc1.putList(cTID('LyrI'), list1);
    executeAction(cTID('slct'), desc1, dialogMode);
  };


  // Select
  function step2(enabled, withDialog) {
    if (enabled != undefined && !enabled)
      return;
    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
    var desc1 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putEnumerated(cTID('Mn  '), cTID('MnIt'), sTID("placedLayerReplaceContents"));
    desc1.putReference(cTID('null'), ref1);
    executeAction(cTID('slct'), desc1, dialogMode);
  };
  step1();      // Select
  step2();      // Select
};
LoadImage.main = function () {
  LoadImage();
};
LoadImage.main();

You have the withDialog variable, but I don't see how define you it. Is a UI checkbox if you don't understand? How do populate you this value?

Tags: Photoshop

Similar Questions

  • Help with the Menu

    Hi all

    I have a menu, as shown http://charlesgalea.com/menu_bar.html my problem is that I need to control each tab on its own so that I can change the width of each tab. Is there a way I can do?

    Thank you

    No, you don't understand.

    You had this idea to control each tab separately and it is not true. The text inside each menu item will tell us how wide, it should be the list item. Padding allows you to separate them so that your website visitors can see as separate links.

    You did do the things and have increased your fill (left and right) to 50px.

    If you create a menu, I would not attribute a width. You have a container of 45px height and a height of 45px navMenu. I'll assume that your container will be your container for everything, header, footer, and so on, in order to get rid of the height of the it. Your container must set the total width, so I would attribute the width of your web page to this container if you are looking for a fixed width. I do not recommend one with wider than 950px. You will also need to Center your container in your body.

    For example, replace:

    #container {}

    position: relative;

    height: 45px;

    color: #ffffff;

    Width: 1000px;

    }

    with:

    #container {}

    margin: 0 auto; / * your container.* centers.

    color: #ffffff;

    Width: 950px; / * Let a small place for chrome browser and will allow your web page take in at least 85% of all the easy.

    }

  • help with the menu button and the film load

    Hi all... I am very new to flash and actionscripting and I am self-taught using mainly Internet searches.
    I'm building a site with a menu and a banner that is controlled by the menu (two swf files). I got to the make contact however, I'm stuck at this point.
    When 'bt_1' is hit I would like to be respected a "mv_1" to load in the banner.swf with intro animation... this I figured out how to... but now when you click on "bt_2" I want to play the rest of the animation of "mv_1" to unload the film before loading "mv_2" with its animation enterance respected... that I would make to several buttons. The method that I use for my local connection is...

    Sending script
    mySender = new LocalConnection();
    on (release) {}
    ------each button corresponds to a different setting... 1,2,3,4,5,6
    _root.mySender.send ("menuconnect", "action", 1);
    ------This is the best way that I could understand to disable the buttons appropriate... There might be a better way?
    Home.Enabled = false;
    couple.enabled = true;
    Events.enabled = true;
    Bridal.enabled = true;
    Media.enabled|disabled = true;
    RSVP.enabled = true;
    }



    Script of reception

    myReceiver = new LocalConnection();
    myReceiver.action = {function (doThis)}
    If (this == 1)
    gotoAndPlay (2);
    If (this == 2)
    gotoAndPlay (3);
    };
    and so and soforth for all six buttons
    myReceiver.connect ("menuconnect");

    If all this makes no sense at all, I'm sorry... I tried my best...
    If some pro out there can understand what I'm trying to do and can help me I would greatly appreciate it... Thank you all

    SJS

    I would like to use the ID to link to each of your mv_1, mv_2 etc. in the main stage and control them. This would have the advantage of eliminating the duplication of code and keeping most of your code in one place (image 1 of your _root timeline).

    If mc_1 etc was connection id mc_1ID etc, the other began on a frame labeled "outro" and ended on the last image, you can use:

  • Need help with the menu in British Colombia?

    I've set up a menu in British Colombia, a screenshot below.

    Why do the end two kitchens of menu items and rooms appear lower than the rest of the items in the same menu, there seems to be enough space?

    Screen shot 2013-05-01 at 17.12.36.png

    Screen shot 2013-05-01 at 17.12.44.png

    Hello

    The question on the page is an extra div is created, and it pushes the elements from the menu below.

    Please watch this video:

    http://gauravr183.BusinessCatalyst.com/images/2013-05-02_1759.swf

    Kind regards

    Radi amin

  • Help with the menu in dreamweaver

    Here's the menu that I built using pop menu magic:

    http://www.ivoog.com/link10

    I need each of the four tabs in the menu above to look like this:

    http://www.ivoog.com/Link2


    How can I make the background the same width and including this image? Please help me and try to do the same. Thank you and I appreciate your help.

    CSS: http://www.ivoog.com/link10/p7pm/p7pmh0.css

    JS: http://www.ivoog.com/link10/p7pm/p7popmenu.js



    Thank you and I will be wait for a response.

    Hello

    Here is an example using a repeated horizontally thin gradient as the
    background for the link "buttons."
    There are borders added to the link to make the edges of the buttons.
    Margins are applied to the links and a color background blue applied to the

  • links for relaxation are in 'space the buttons '.

    An another, larger image gradient is applied again as a repeating background
    for

      tags in the UL p7PMnav, who styles background for the
      the drop-down menus.

      http://tnsgraphics.com/delete.htm

      You can change the layout by adjusting the padding and margins.
      You can add shadows to the buttons using images more extensible, containers
      and CSS.
      Just Google CSS shadows.

      Compare CSS and a few additions in the HTML code on this page to your
      to see the changes.
      Take care

      Tim

      "hahahaadobeman" wrote in message
      News:fp788l$8e6$1@forums. Macromedia.com...
      > See buy it, sell, my ivoog and help? All I want is the background image
      > be
      > identical
      >
      > http://www.ivoog.com/link2
      >
      > I think I know how to do the rest.
      > Would you please show me where and show and make that edit. Thank you.
      >

  • Help with the menu, Spry bar 2.0

    I installed a spry menu bar 2.0 for this site that I'm working. Test site is here.

    It seems to work in every browser but IE7. The menus will not fall, but I guess that the links on the work of navigation of the high level (House on etc.). I hate IE. I'm also not sure if it works in previous versions of Firefox as 4.0.

    Laboratory Adobe browser either doesn't like me, or I don't know how to use it properly, but I do not understand how to make sure your links work. I do the thing to click Control command. But for example: he will work one day when I saw the page in IE8, but not the next day (and I know it works in IE8 because I physically tested in IE8). If the lab browser lets me feel confused.

    If anyone can help me solve the problem in IE7 (or other browsers, who knows what happens I have of course not :/) I would be very grateful.)

    Thanks for any help you can give me.

    Spry Menu 2.0 is actually quite stable.

    You use IE-Tester, your drop-menus seem to work in IE6, IE7, IE8 & IE9.

    Also works in Chrome & Firefox 3.6 x.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • If I go to your stand at the NEC photographic show (21-24 March) can I expect to get personal help with using of items 13 - esp. vertical correction and the addition of sky to architects plans?

    If I go to your stand at the NEC photographic show (21-24 March) can I expect to get personal help with using of items 13 - esp. vertical correction and the addition of sky to architects plans?

    No, but Adobe offers a discount on the price of admission to the entire show. Adobe seminar room will be back this year yet, but are of demonstrations and public seminars. A number of speakers UK will be available, but the emphasis is on creative cloud, Lightroom and Photoshop CC.

    http://blogs.Adobe.com/richardcurtis/?p=4100

  • Messages arrive, but the "Inbox" or any other folder open even if the content still there (and almost all the menu items do not work)!

    Using last Thunderbird on Windows 7. Had problems with the operating system and had to use a system restore. When I opened TB, it displays the folders in the left pane, but the credits of "Thunderbird Mail-...» "and the 3 topics: E-mail; Accounts; and advanced features. None of the files would open. I used the "Search messages" function and has been able to show existing and new messages in the 'Inbox '. Also wanted to know if files are always in my 'profile'... and they were all there where they should be. (And almost all the menu items are disabled).
    I wonder if I need to reinstall Thunderbird... maybe the OS issues this morning - and restore - have corrupted or damaged key elements of the program?
    Thank you...

    System Restore is not always a very good thing for applications.

    Reinstall is unlikely to help. But if your accounts are all imap and that you do not have a lot of other data (address book, for example) in Thunderbird, you could start from scratch.

    But before that, you should try Thunderbird started in SafeMode https://support.mozilla.org/en-US/kb/safe-mode-thunderbird

  • Add the menu item to app mail as the mail message?

    Hello

    I know how to add menu items in the mail application, but can I add one, according to the mail message? I want to send a single something in an email and after that one of my applications.

    Is it possible to do? Perhaps a listener?

    Thank you

    Matthias

    Hello Matthias.

    Well, if I understand your message, it's that - you send mail with unique label or message (something unique added with the text of the message) and you want to add the menu item when a user opens the message.

    According to my understanding - I have a solution.

    We have a listener "VeiwExtendedListener", that provide notifications for new, open, close, reply, and forward.

    You can implement this listener and to open(), you get the instance of the message object, which is open.  With this object message get the content of the message, locate the tag unique in the text of the message, if it is in the message, and then add your menu item.

    I hope this will help

    Good luck

    -Nidhi

  • Is there a way to get the submenu above the menu item?

    I'm creating a digital magazine I need to a menu at the bottom with a drop-down list for the pages, which I obviously need this submenu to go up because the menu is at the bottom.

    I was playing with the settings but I can't seem to make it work. I forgot something, or it's just not as simple as that?

    Arviage,

    Yes, you can accomplish a submenu "move up", but not by using a typical submenu item. Create your menu down as you normally would, but your submenu in the context of a widget of composition and place the transparent trigger on the menu item that you want to appear.

    Follow this video (starting 16 minutes) and see if that helps - it should show you how to create the submenu of the composition and to your application, simply let you shoot at the bottom of the composition to create the effect of "moving upwards":

    Muse Jam Sessions_97_MuseFall2013

    If it doesn't make sense, let me know and I can send along a video of doing me this feature myself.

    -Emily

  • my muse site, the menu item will not open unless you press twice

    On my version Tablet and phone of my muse site, the menu item does not open except if you press two times the menu item. This happens only on the menu items that have submenus. Help, please! Thank you!

    Thank you for posting.

    This is the default behavior of the tablet or mobile devices. When press once, the submenu opens, and when you tap again once, the menu items opens. Please let me know if I'm missing something. In addition, please provide us with the URL of the site if you need help.

    Kind regards

    Aish

  • Why the menu items change automatically?

    As I'm changed some stuff around on my test Business Catalyst site, I noticed that if I change the URL of a given page (I've changed the 'Shop' page to / sponsor), the menu item URL has not changed automatically. I don't even know the name of it has changed (I can understand as a 'function'). I thought it was a reason to use a CMS like this, that a lot of things like link exchange occur automatically. I'm sure other CMS like Drupal and Joomla do this automatically. There are chances that this will change in the future? Or maybe there is a reason why it's like that I forget?

    Thank you!

    Hi umiwangu,

    In my experience with BC as well as other systems, it is important to note that the pages and menu items are separated from each other.

    When a user creates a page it is not automatically added to a menu. Similarly, when a user changes the URL of a page that has been added to a menu, the menu item URL in question not is not updated automatically.

    So, if you changed a URL of the page that ends by "/ shop" to "/ sponsor ' you should be able to easily view this new URL in a browser. However, if you want the menu item that is linked to the old URL to reflect the new URL, then you will need to change the URL of item of the menu so they can talk to each other in the future.

    Yes, it's an extra step (crucial) update your menu items, but (in my experience) URL decisions are not something that is changed frequently - especially when it comes to SEO.

    In any case, I hope it helps! -Alex

    PS - If you haven't already, you can check zero to hero of gurus of the BC. They put together a huge set of training Sessions of BC (FREE) that are amazing!

  • Disable the menu item in the third party application (such as Photoshop)

    Please suggest me to disable the menu item in the third party application (such as Photoshop).

    Hello

    I suggest you to send your query to the following link:

    Photoshop Help Center: http://www.adobe.com/support/photoshop/

    Hope this information is useful.

  • Add the Menu item to default custom Blackberry file browser

    Hello

    I try to add the Menu item by default Blackberry file browser.

    I want to add the menu item 'PRINT' files. It is when I browse through the media-> Explore-> photo, we get a list of images and when clicked on the Menu. I expect the element menu to print it.

    I use ApplicationMenuItemRepository to achieve this. And the documentation says.

    MENUITEM_FILE_EXPLORER
              ApplicationMenuIteminstances registered with this ID appear when the file Explorer application is running.

    MENUITEM_FILE_EXPLORER_BROWSE
              ApplicationMenuIteminstances registered with this ID appear when a user uses the Windows Explorer application to browse files and folders.

    MENUITEM_FILE_EXPLORER_ITEM
              ApplicationMenuIteminstances registered with this ID appear when a user uses the file Explorer application to open a file.

    Whence this Explorer of files mentioned in the CIHI means. I added the Menu item in the browser, and I could see the IMPRESSION here. But I don't know where this IMPRESSION would be visible IF we add the menu item to one of them.

    Thanks in advance.

    Provision ApplicationDescriptor solved my problem.

  • the menu item run method not called

    Eclipse SDK Version: 3.4.1

    BlackBerry JDE plugin for Eclipse Version: 1.0.0.50

    BlackBerry JDE component package Version: 4.5.0.14

    I added a menu item to the contacts list. I would like to get the context when the user clicks the menu item, but the run method is not entered. When the user clicks the item in the menu the main routine is entered with correct arguments. Should not called run with the context method? No exception is thrown.

     

    Import net.rim.blackberry.api.menuitem.ApplicationMenuItem;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;
    Import net.rim.device.api.system.Application;
    Import net.rim.device.api.system.ApplicationDescriptor;

    SerializableAttribute public class BwMain extends Application {}
    private static final long APP_ID = 0xf46f5a7867d69ff0L;
    private static final String ARG_LAUNCH_BW = "1";

    public BwMain() {}
    long menuItemLocation = ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST;
    ContactsBwMenuItem menuItem = new ContactsBwMenuItem();
    ToolBarMenuButton.AddMenuItem (menuItemLocation, ARG_LAUNCH_BW, menuItem);
    System.Exit (0);
    }

    Public Shared Sub main (String [] args) {}
    If (args == null | args.length == 0) {}
    BwMain bwMain = new BwMain();
    bwMain.enterEventDispatcher ();
    }
    else {}
    System.out.println ("App launched from the menu");
    }
    }

    private public static Sub ToolBarMenuButton.AddMenuItem (long location, String argOfAppl, ApplicationMenuItem appMenuItem) {}
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor ();
    app = new ApplicationDescriptor (app, new String [] {ARG_LAUNCH_BW});
    amir.addMenuItem (location, appMenuItem, app);
    }

    private static class ContactsBwMenuItem extends ApplicationMenuItem {}
    {ContactsBwMenuItem()}
    Super (20);
    }

    public String toString() {}
    return "PC connection";
    }

    public Object execute (object context) {}
    try {}
    System.out.println ("input run method");
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    Returns a null value.
    }
    }
    }

    You call system.exit() in the Builder before entering the EventDispatcher. I'm guessing that you add the menu item, but leave the application, and when the menu item is called it is more a reference to the context of the application and decides not to continue. The menu item will not remove itself when the application closes.

Maybe you are looking for