Adding menu items and making system calls in AfterEffects (AE,CS3)

We are looking to do the following things via javascript in AfterEffects CS3. It does seem straight-forward, but am unable to find a good reference or example.
* Add at startup a menu item under "File" (or similar main menu) and have it call a script function when clicked.
* Have a script make an external system call (to launch an external application/executable with a few parameters)
Any insights on how to achieve this?
Many thanks!

I wanted to see if there was any update on this, I'm writing a series of tools and would love to create a custom menu for quick and easy access.
If it turns out there isn't an "easy" way to do this (env variables, special directory locations, javascripts) would anyone know if access to the menubar is possible from the Plugin API?
I'm fairly new to After Effects, just getting up-to-speed on the environment now... seeing if I can duplicate the functionality of some old Nuke scripts in AE.
thanks,
Rick_

Similar Messages

  • Equal Space between Menu Items and Drop Down Menü left aligned not possible?

    It seems like I can either have equal spacing between the horizontal menu items and the drop down menu will show up centered , or I say the menu items should be of equal size, and then drop down will be left aligned. Is there any way of having equal space AND left aligned drop down???? Thanks in advance!

    Hello Anjum,
    Thank you for reporting the issue. It seems to be a Bug and we have logged the same. Hopefully it will get fixed in coming releases.
    As of now we do not have any workaround for same. However once we have some workaround, we will definitely share it with you.
    Regards,
    Sachin

  • Quick question about making system calls

    hello all
    i have a simple quick question regarding making system calls. Basically I want to mimic the command "system" for perl. I am not quite sure how to do this for java.
    any feedback would be appreciated.

    look at:
    java.lang.RunTime

  • Implementing menu items and saving state in my app

    Hello
    I'm a new user to the forums, but have a little bit of java programming experience.
    currently i'm writing some business applications, one of which is a payroll system. The target audience is end-user bookkeepers so i am planning for a GUI front end.
    My first question relates to how programs save their state. for example, each month the bookkeeper will launch the program and add the next months payments, or he/she will open the program to fix a mistake. In general how do programs like word, excel (or anything) save and load files to work with? I was thinking about using XML. I thought i would load in an XML file containing all work so far, and then the user could save to it, which would add the new work.
    Question the second: A lot of gui java apps i use (like argo, symphony etc) have standard menus at the tops. Items like open, save, close, print etc. How are developers actually doing this? is there some premade classes i can just use in my programs as well that would be me this funtionality? This kindof relates to my first question about saving and opening. Further, it seems there are two GUI libraries to consider - either SWT or Swring. Eclipse plugins are written in SWT (from what i have heard). Can anybody recommend which API i should be using to create a GUI for my program?
    I think that's it for now. If anybody can provide me with advice i woudl be most grateful, as i'm at a bit of a standstill with my development.
    thanks.
    Edited by: minofifa on Oct 25, 2007 1:09 PM
    attempted to take topic off the watch list - sorry guys

    My first question relates to how programs save their state. for example, each month the bookkeeper
    will launch the program and add the next months payments, or he/she will open the program to fix a
    mistake. In general how do programs like word, excel (or anything) save and load files to work with? I
    was thinking about using XML. I thought i would load in an XML file containing all work so far, and then
    the user could save to it, which would add the new work. It sounds more like you are talking about saving the data instead of state--save in a database for mass and long term storage. Simple state info can be easily save in a database also or in a bean or text file.
    Question the second: A lot of gui java apps i use (like argo, symphony etc) have standard menus at
    the tops. Items like open, save, close, print etc. How are developers actually doing this? is there
    some premade classes i can just use in my programs as well that would be me this funtionality? This
    kindof relates to my first question about saving and opening. Further, it seems there are two GUI
    libraries to consider - either SWT or Swring. Eclipse plugins are written in SWT (from what i have
    heard). Can anybody recommend which API i should be using to create a GUI for my program?Maybe this is not what you are asking, but menu systems are implemented with Menu, MenuBar, MenuItem, etc objects in Java. The specifics of what happens when the individual menu items are selected are left up to the programmer.
    If you are looking for prebuilt menubars with code attached to perform common functions, then I do not know of any included in Java.

  • Help Adding Menu Items to Bridge

    I've created (modified) a couple of Bridge Scripts and finally have them working nicely. Now, I want to add a couple of Menu Commands to execute them. I tried modifying a script in the SDK, SnpAddMenuItem.jsx, which would work fine if I only had one Menu Item/Command. Here is what I have. I obviously don't understand the 'this' object or how to separate the Commands. Help much appreciated.
    function SnpAddMenuItem()
              this.requiredContext = "\tAdobe Bridge must be running.\n\tExecute against Bridge CS5 as the target.\n";
              this.menuID = "snpAddMenuItem";
              this.menuCommandID = "snpAddMenuItemSub";
              $.level = 1; // Debugging level
    SnpAddMenuItem.prototype.run = function()
              var retval = true;
              if(!this.canRun()) {
                        retval = false;
                        return retval;
        var newMenu = new MenuElement( "menu", "Scanning", "after Window", this.menuID );
        var stackCommand = new MenuElement( "command", "Gather NNYY Into Stacks", "at the end of " + this.menuID, this.menuCommandID );
        var maskCommand = new MenuElement( "command", "Process Stacks into Layers", "at the end of " + this.menuID, this.menuCommandID );
              stackCommand.onSelect = function()
                        var scriptFilePath = "~/Documents/Adobe Scripts/AutostackNNYY.jsx";
             var scriptFile = new File (scriptFilePath);
             $.evalFile( scriptFile );
        return retval;
              maskCommand.onSelect = function()
                        var scriptFilePath = "~/Documents/Adobe Scripts/StacksToLayers.jsx";
             var scriptFile = new File (scriptFilePath);
             $.evalFile( scriptFile );
              return retval;
      Determines whether snippet can be run given current context.  The snippet
      fails if these preconditions are not met:
      <ul>
      <li> Must be running in Bridge
      <li> Must only be executed once in a session
      </ul>
      @return True if this snippet can run, false otherwise
      @type boolean
    SnpAddMenuItem.prototype.canRun = function()
              // Must run in Bridge
              if(BridgeTalk.appName == "bridge") {
                        // Stop the menu element from being added again if the snippet has already run
                        if((MenuElement.find(this.menuID)) && (MenuElement.find(this.menuCommandID)))
                                  $.writeln("Error:Menu element already exists!\nRestart Bridge to run this snippet again.");
                                  return false;
                        return true;
              // Fail if these preconditions are not met. 
              // Bridge must be running,
              // The menu must not already exist.
              $.writeln("ERROR:: Cannot run SnpAddMenuItem");
              $.writeln(this.requiredContext);
              return false;
      "main program": construct an anonymous instance and run it,
      as long as we are not unit-testing this snippet.
    if(typeof(SnpAddMenuItem_unitTest ) == "undefined") {
              new SnpAddMenuItem().run();

    This will put the two commands at the bottom of the Tools menu....
    #target bridge  
       if( BridgeTalk.appName == "bridge" ) { 
    var stackCommand = new MenuElement( "command", "Gather NNYY Into Stacks", "at the end of Tools","uniqueId1");
    var maskCommand = new MenuElement( "command", "Process Stacks into Layers","at the end of Tools","uniqueId2");
    stackCommand.onSelect = function () {
    //Your code goes here
    maskCommand.onSelect = function () {
    //Your code goes here

  • Why do keyboard shortcuts for menu items created in System Preferences appear in Firefox menus but not work?

    Given that Firefox does not obey the System Preferences custom keyboard shortcuts, why does it still display those shortcuts in the menus, thereby incorrectly telling users that they will work?
    This issue was raised 6 months ago, but the only posted answer did not explain why the menus reflect the shortcuts that Firefox doesn't obey.

    Outlines are discussed in a series of articles beginning with Creating an Outline in Chapter 5 of the Pages '09 User Guide. A similar set of articles, beginning with Creating Lists follows immediately.
    Reading through the articles, I don't see any mention of a keyboard shortcut or menu item related to moving an item up or down in the list. A search through Pages '09's menus was also unproductive.
    Apparently this 'essential function' is unsupported in Pages.
    Feature requests should be made through Provide Pages Feedback, found in the Application menu (in Pages, the 'Pages' menu), where they'll go to and be read by Apple. Here you're posting to Pages users, who can help you use existing features, but have no direct influence on missing ones.
    The Pages '09 User Guide, a searchable pdf document, is available for download via the Help menu in Pages.
    Regards,
    Barry

  • CK-200 Audio qualiy, missing menu items and softwa...

    Hi all.  First post and all that jazz.
    Wonder if anyone can assist with several issues I'm having with a CK-200.  to list them:
    Audio quality.  This is perhaps the worst problem.  I can hear the person I'm talking to quite clearly, (ISO version on decent car speakers) but the background noise reported by the other person is really really bad.  Whilst my car isn't the quietest in the world (LandRover Discovery) it's certainly not loud, but everyone has commented that they can barely hear me when I'm at motorway speeds.  Does the external microphone help remove background noise much?  I certainly hope so, as at the moment I have to be at 40mph or below to be heard properly.  I've tried calling someone else driving my car, and sure enough it sounds like the microphone is in the engine bay, and the person I'm talking to is in the boot!
    Second:  When I first got the kit, it appeared to understand that one of my phones (E90) was not compatible with downloading the address book, and so it didn't try, but if I made a few calls the kit remembered the numbers called.  After "updating" the software a few months ago, it now constantly tries to download the address book, fails, and if I try to do a "last number redial" it tells me that it can't download the address book.
    Lastly... (and has been mentioned in another thread) There appears to be a number of menu items missing, most noticeably the option to read a received text message.  The icon appears to tell me I have a new text, but there's absolutely nothing I can do about it!
    Shame, as it's a nice car kit, and the two-phone-connectivity is excellent, but I really must address these issues!
    Any and all assistance gratefully received!
    David.
    PS. as a sidenote, where can I actually buy a CA-134 for this kit from?  I know it's the cable I need, but I can't actually find one for sale anywhere!

    Glad you got it improved, I guess perhaps a 'mechanical' sound transmission problem. Not sure about inside the CK-200 unit - but inside Nokia external mic's the mike element is usually mounted in a block of foam rubber to absorb vibrations carrying through. I am certainly getting a little higher volume level on my 'answerphone' trails with an external 
    Little confused by the download issues. The CK-200 can download your contacts as one aspect but also your call history (calls made/missed/received etc) as another.
    The contacts (address book)  download certainly seems to stop dead when you set auto to off on all version and handsets I have tried. On recent software versions Nokia introduced the automatic download of call history, as far as I know this cannot be disabled - I would quite like to be able to as I don't really need it and it delays the initial connection before you can make a call. But anyway it sounds like its this thats giving you trouble. It may be down to some setting in your phone you can make to deny it permission to cooperate with the CK-200. Anyway see how it goes with V.3 first of course. (can't be long now )

  • Data menu items and Forms

    I am enabling the Data menu items for my custom form like this:
    myForm.EnableMenu("1281", true);
    myForm.EnableMenu("1282", true);
    myForm.EnableMenu("1283", true);
    myForm.EnableMenu("1288", true);
    myForm.EnableMenu("1289", true);
    myForm.EnableMenu("1290", true);
    myForm.EnableMenu("1291", true);
    This works fine for my form but as soon as a SAP system form gets focus, the Data menu items do not work until I close my form. Do I need to do something in the "lose focus" event for my form?

    In your menu event code, are you checking to see if your custom form is the active form before processing the menu event?
    If not your code will be processed regardless of which form is currently active, and this could lead to the behaviour you describe.
    You can tell if your custom form is active by looking at the "selected" property of form object.
    Regards,
    John.

  • Muiltiple menu items and unwanted square

    I'm not sure what happed but all of a sudden i have multiple menu items on the main apple menu and there is a square box either on the desktop or various applications such as entourage or word etc.
    I'm not sure if it has something to do with user preferences but I have no clue what triggered it.

    Tony A,
    You can turn VoiceOver on/off in the Universal Access pane of System Preferences, or by pressing Command-F5.
    ;~)

  • Need to remove default dock menu item and add new.

    Hi ,
    I am working on Carbon application on Xcode . I need to remove default menu item attached to my application dock menu like ( Remove from Dock , Open at Login , Show in Finder ).
    I also need to attach new items to my application dock menu and want to handle its event.
    Thanks in advance,
    Sunil Adhyaru.

    Well, this is a programming question more than a question on how to use the Leopard environment (you might want to post to one to the programming forums).
    However, basically, you can't remove the Dock menu items that the Dock itself adds (add/remove from dock, etc.). You can add your own menu items, however. Use the interface builder to create a nib that has a menu in it -- call it something catchy like MyMenu.nib.
    Then in the application property list file (Info.plist) add property called "AppleDockMenu" and set the value to a string that's the name of your nib file (without the .nib extension).
    Subsequently, you treat that menu just as you would the menus in your menu bar. That's all there is to it.

  • Sidebar items and some system prefs not synched

    does anyone know how to get sidebar items synched? I explicitly synch sidebar.plist (deleted it in Apple's predefined exclusions) and BezelServices.plist - but without success.
    Also annoyingly not synching: the system prefs for the keyboard menu, the screen saver prefs and the synch menu item.
    Thanks for any idea to solve this.
    Message was edited by: lhberg

    check your ~/Library sync, remember this is not synced in the background most of these files are in use.
    Do you have a login or logout sync rule?

  • Cisco Jabber for Windows in Extend and Connect mode and making outbound calls

    Hi guys,
    I've set up Cisco Jabber for Windows to use Extend and Connect to control a remote PBX endpoint. I've configured the required CTI-RD device, remote destinations, associated the users to the line and added the devices to end-user controlled device. The extend and connect part is working flawlessly without any issues. I'm able to receive inbound calls on the remote PBX endpoint and control the call (hold, resume, transfer etc.) using the Jabber call window that pops up.
    However, I'm unable to make any outbound calls via the Jabber client when in extend and Connect mode. Reading the Extend and Connect guide, I need to configure Dial Via Office (DVO) Reverse. So when the user initiates a Dial-Via-Office reverse call, CUCM calls and connect to the Extend and Connect device (CTI-RD). CUCM then calls and connects to the number the user dialled and finally connects the two call legs.
    After attempting to configure DVO-R for Jabber for Windows in Extend and Connect mode following the CUCM feature services guide, i'm unable to get any outbound calls working. From RTMT, i am receiving the following Termination Cause Code: (27) Destination out of order. What i also notice is that there is no calling number for that trace either. I would've thought that the calling party would've been the Enterprise Feature Access (EFA) number.
    Has anyone got this working or can provide some guidance?
    Thanks.

    Hi guys,
    I've set up Cisco Jabber for Windows to use Extend and Connect to control a remote PBX endpoint. I've configured the required CTI-RD device, remote destinations, associated the users to the line and added the devices to end-user controlled device. The extend and connect part is working flawlessly without any issues. I'm able to receive inbound calls on the remote PBX endpoint and control the call (hold, resume, transfer etc.) using the Jabber call window that pops up.
    However, I'm unable to make any outbound calls via the Jabber client when in extend and Connect mode. Reading the Extend and Connect guide, I need to configure Dial Via Office (DVO) Reverse. So when the user initiates a Dial-Via-Office reverse call, CUCM calls and connect to the Extend and Connect device (CTI-RD). CUCM then calls and connects to the number the user dialled and finally connects the two call legs.
    After attempting to configure DVO-R for Jabber for Windows in Extend and Connect mode following the CUCM feature services guide, i'm unable to get any outbound calls working. From RTMT, i am receiving the following Termination Cause Code: (27) Destination out of order. What i also notice is that there is no calling number for that trace either. I would've thought that the calling party would've been the Enterprise Feature Access (EFA) number.
    Has anyone got this working or can provide some guidance?
    Thanks.

  • Making system calls in java

    I want to join some split files into one. In command prompt I use COPY /B file.1+file.2 file to join the files. How can i do the same in my java application. Please show the code which I suppose will use getRuntime. Thanks in advance.

    Well if there is a problem with system calls then can
    you tell me if there is a class in java for
    concetanating files. Not directly.
    At present I am joing the files
    by reading each byte from the files and writing them
    to another file which takes hell lot of time. You should read the files in large chunks. Much much faster.
    Thanks
    in advance again. Also if you say about sequential
    file class then please expalin a bit bcs I couldn't
    implement it.Post the code you are having trouble with explaining what it should do and what it actually does.

  • Making system calls in Flex

    - Can I make system calls to access the local file system? If
    so, is there a sample?
    - Can I make system calls to run local console
    scripts/binaries and get the output back? If so, is there a sample?
    Thanks,

    "Greg Lafrance" <[email protected]> wrote in
    message
    news:gd8flp$sul$[email protected]..
    > To be fair, Adobe's initial vision for AIR is not as a
    technology that
    > would
    > permit you to create desktop apps that do all that
    "regular" desktop apps
    > do.
    >
    > Part of the reason is because they wanted to have a
    solution that "starts"
    > to
    > blur the lines between online and desktop, but I suspect
    another reason is
    > because they wanted to get it out the door, and dealing
    with the
    > additional
    > security considerations might delay that.
    >
    > That said, I'm right there with you, I am looking
    forward to when AIR apps
    > can
    > execute native apps.
    >
    > One of the problems is that Adobe has "grown up" and now
    is getting a
    > touch
    > stiff, though I still believe they will continue to be
    one of the greatest
    > software firms out there for the next 5 - 10 - 15+
    years.
    >
    > Of course I work there, so I'm at least a bit biased.
    But then again, I am
    > a
    > bit of a rebel against some aspects of Adobe (and
    definitely against some
    > aspects of the former Macromedia) culture.
    Heh. Been there, done that. They stopped giving me t-shirts

  • Adding menu items

    I am writing a program using netbeans. I have put in a menu bar and a menu from the palette. I don't know how to add menu items. The explanation in the tutorial says how to code it in at the place where the GUI is constructed. But this is in a blue area in the source listing and it won't let me edit it. Help.

    I am writing a program using netbeans. I have put in
    a menu bar and a menu from the palette. I don't know
    how to add menu items. The explanation in the
    tutorial says how to code it in at the place where
    the GUI is constructed. But this is in a blue area in
    the source listing and it won't let me edit it.
    Help.just look at the properties maybe you miss something or you can add
    menu items manually.

Maybe you are looking for

  • Disk Utility: Restore Failure-Source image needs to be scanned for restore.

    Hello guys, I have a .dmg (source image) that I have created from a DVD by myself (read-only format). I am trying to restore it to a destination and a Restore Failure notification pops-up as follow: "Restore Failure Could not find any scan informatio

  • Why do I have a font problem in my FROM and TO lines?

    I have converted this week from Entourage to Apple Mail. I'm getting used to it, but really miss the formatting capabilities of Entourage. Given Apple's mastery of fonts and typography, how did Apple Mail end up being so basic? But more immediate is

  • Problem with Query designing

    Hi All, I had created a query and started designing a crystal report. But after designing the report, i came to know that some infoobjects are missing in the query. So i went to query designer and added the corresponding infoobjects inorder, they cou

  • [SOLVED] wine. can't change drive C mapping

    hi! i use winecfg to change the mapping of the C drive, but i realized that i cant change it because, if i change it with winecfg, when i close winecfg and open it again, it revert all my mappings to the defaults: C -> /mnt/cdrom D -> /mnt/cdrom when

  • Report Builder 10.1.2.0.2 Crashes on opening a rdf file

    Hi, I am trying to do a customization on an oracle standard report (sales order acknoledgement),when i try to open the rdf file from the Reports builder it crashes immedietly. Also i noticed the builder is crashing if i open rdf file having size more