Afterfx command line "restores" maximized window - any way to duplicate ExtendScript invocation?

Hi all,
I am controlling After Effects CC from another application by invoking JavaScript files from the command line. But the command *always* restores the maximized window of After Effects. That is, if the After Effects application is maximized, it always *restores* it, every time I invoke the JavaScript file through the command line (e.g. through Windows cmd prompt or through my application). When I execute the same JavaScript file through ExtendScript IDE, it doesn't do this erronous behaviour.
For example: "AfterFx.exe -r C:\path\showDialog.jsx"
Contents of showDialog.jsx:
alert("Showing Dialog from JSX file");
My question is: Is there *any way* to mimic what ExtendScript does to invoke JavaScript files?
From listening on Windows processes, it seems that ExtendScript tacks on some JavaScript code, dynamically, to do the execution (i.e. couldn't trace any command line processes/arguments). But I can't seem to figure out what exact JavaScript code it invokes. ExtendScript also seems to be working via Bridge.
I get the same "restore window" behaviour when I try to use "-s" argument with the JavaScript expression passed as a string argument or if I use "AfterFx.com" instead of "AfterFx.exe". I couldn't find any documentation for what command line parameters are supported for AfterFx (other than "-r" and "-s") and what Extend Script might be doing exactly to invoke the .jsx files. I managed to take a peek at the executable binary of AfterFx.exe (through a hex editor) and noticed the following switches.
-rquiet, -noerr, -noui, -debug, -livelink, -selflink, -headlessonly, -rquiet, -rq, -mp
But I couldn't get the "window restoring" behaviour to stop with any of the parameters.
Any advice will be really appreciated.
Thanks.

Hi,
Thanks again for your comments. I tried with PsExec just now but no luck still. The only useful argument parameter in PsExe seems to be:
-d
Don't wait for process to terminate (non-interactive).
But the same behaviour happens. I tried with "-e" as well (separately and combined with "-d").
I also tried a few command line argument options with "start" command, on the Windows Command prompt. For example:
"start /MAX AfterFx.exe -r C:\path\file.jsx" <-- supposed to start the application in the maximized state
"start /b AfterFx.exe -r C:\path\file.jsx" <-- supposed to start the app without a creating a new window
But no luck still . Tried various combinations of the above two arguments as well.
Seems like Adobe After Effects explicitly does something weird to snap the application *out* of the MAXIMIZED state, if the executable is invoked (either via command line, with or without arguments or directly from start menu/GUI items). I don't know why they would do this though. I also wonder whether this is simply a bug in their implementation of Adobe After Effects CC on Windows 7.
Is there any way to MAXIMIZE Adobe Effects Effects through their JavaScript API? I am wondering whether I can explicility check/set the window to be maximized in my invoked script, to fix this behaviour.
Thanks.

Similar Messages

  • Java command line programming in windows

    Here's what I want to do:
    -write .java files in a text editor
    -compile and run them from a command line, rather than using a
    compiler like codewarrior or MS J++
    Here's my problem:
    In a program that produces output, I can't seem to find a way to
    retain the output that goes off the screen in a DOS window. Is there
    a way to enable scrolling in a DOS window, or are there any
    alternative command line terminals for Windows? Any suggestions
    would be greatly appreciated.

    I think you can increase the Screen Buffer size which should give you a scroll bar. For this right click on the icon on the top left of the DOS window -select Properties - Go to Layout tab.
    Another option will be to redirect the output to a file
    java SomeClass > log.txt
    Hope this helps.

  • I have a 2011 mini that won't power up. The apple on screen comes onn then turns into a circle with a line in it. Any way to fix it?

    I have a 2011 mini that won't power up. The apple on screen comes onn then turns into a circle with a line in it. Any way to fix it? It is running Mavericks on a 1T drive.

    First thing, see if it will boot into the Recovery Partition: Hold down Command R at restart.
    If it boots up there, then it's likely that the hard drive has failed, or simply doesn't have a working system.
    If it doesn't boot up there, then it's likely to be some other part of the hardware.
    If it is the hard drive, then this can be replaced. You can find videos showing you how to do this on sites like ifixit.com.
    Then you can just restore all your data from your backup. You do have a backup, right?

  • TS1702 i have a ipod touch 2g and after a restore none of my apps will restore because it says that i need a newer version of the ipod software to run them they all work fine till i did the restore . is there any way to get them back ?

    i have a ipod touch 2g and after a restore none of my apps will restore because it says that i need a newer version of the ipod software to run them they all work fine till i did the restore . is there any way to get them back ?

    Your only way is if you have the version that was compatible on your computer such as in the recycle bin/trash or in a computer file backup. In that case delete the current version that is in your iTunes App library and replace it with the older version. Then sync.
    Also see:
    Recover Older Versions of iPhone Apps After Updating — Apple News, Tips and Reviews

  • Execute script from AfterFX command line

    Hello all
    I'm trying to run a script from the AfterFX.exe command line and I get a message: "Unable to execute script at line 1. Syntax error"
    If I run the same script file from the AE Script Editor, it works perfectly
    Here is the command line I'm using:
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "D:\Product\Watermark\Rendering\WatermarkedSecuritySample.jsx"
    Anyone have an idea of what can cause this error? I've tried running the script directly in the command line like
    "C:\Program Files\Adobe\Adobe After Effects CS6\Support Files\AfterFX.exe" -noui -s "alert('1')"
    and it works fine for short script but mine is way to big to do that
    As you can probably guess with the "Watermark" and "Security" in the filename, I cannot post the script file here, all I can say is that the line 1 is:
    var projectName = "D:\\Product\\WatermarkTemplate.aep";
    I've tried to replace the entire script with "alert('1');" and it cause the same error when running it from the command line
    Also, if anyone know where I can find the AfterFX.exe command line arguments description, I would be very happy.. everybody talks about aerender.exe but I need thoses options for AfterFX.exe
    Thanks for your help

    Have you tried to use "-r" instead of "-s"?
    (argument for "-s" is a script; and argument for "-r" is a path to script)

  • Command line error on Windows server 2008, GUI works

    I'm running Windows Server 2008 with a Blackmagic Decklink card. Everything works fine with the GUI but when I try to start from command line it extis with an error (see attached image).
    Note: I have the desktop experience enabled.

    I came across the identical problem with an Osprey card. I did some digging and for some reason, on Windows Server 2008, the "Desktop Experience" must be enabled for the command line version of FMLE to function. Not sure why this is, but it worked for me. Here's the note from Microsoft on how to enable this feature on your server...
    http://technet.microsoft.com/en-us/library/cc772567.aspx

  • Last time I synched miphone to iTunes it destroyed my phone (error code came up and asked me to restore phone....kept getting error messages when trying to restore) is there any way to synch wirelessly?

    Any way to download new IOS version, upload my music without synching to iTunes? Apple had to send me a new phone mine was so FUBAR'd after synching to iTunes :(

    If you could successfully download iOS 5, then you would be able to sync over Wi-Fi rather than iTunes. But older iOS versions must be synced through iTunes.

  • Is there any way to duplicate an exact location???

    Hi-I am using iPhoto '11 (9.4.1) on my MBP running the latest version of ML. I have come across a couple of pictures that for whatever reason is not showing the correction location. Of the 3 pictures I took, 2 are correct and one is not. Is there any way to copy the Places info for the correct ones onto the incorrect Places info on the one picture? I can type in the name of the city but the actual location is just outside the city. I am very, very OCD about this. I couldn't see any way to do it. I took the pictures with my iPhone 4S so I am not sure why 2 out of the 3 are correct and one isn't...... This is the first time I have come across this. Thanks so much for any help! Judy

    Yes - simply highlight the line and use apple+c to copy it, and apple+v to paste it. You can then use the property inspector to adjust the jump targets and values, etc.

  • Quite often when I plug in my iPad 2, iTunes goes to the "Set Up Your iPad" screen and makes me restore it. Any way to stop this?

    I have had my iPad 2 since the start of June 2011. There are a lot of times when it works great, but I have had trouble sometimes when I sync. Prior problems were with SQLite3.dll, but got help copying that file to the right place. I have also completely uninstalled and re-installed iTunes. However, my biggest problem is that sometimes when I plug it in to sync with iTunes, it automatically goes to the "Set Up Your iPad" screen. It only allows me to set it up as a new iPad, or restore it from a backup. This is happening more and more. So much so that everytime I plug it in and it actually does work, before disconnecting I will right click on the iPad on the left hand bar and do a backup. This is really starting to get on my nerves. I'm not doing anything out of the ordinary with my iPad. Just playing some games and having a few other apps. It's so hard when playing some games like Angry Birds, getting 3 stars in all levels, only to plug the iPad in again to sync and have to restore it and lose all progress! Does anyone know why it goes to this screen? It doesn't happen all the time, but I'd say once every 4 times I connect. Also, I'm using Windows 7, and yes, all windows updates are done, and iTunes always is on the most up-to-date version. Thanks for any help!

    Normally, I would suggest restoring the iPad and uninstall and reinstall iTunes but you have done both of those things - more times than you ever imagined!
    Have you thought about turning auto syncing off?
    Without connecting your iPad to your laptop, start iTunes. Click on Edit. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    If you do this you can backup the iPad right away before it syncs. You may want to go into all of the iTunes tabs and just make sure that all of the current content on the iPad is selected to sync before you actually do sync.
    This doesn't solve the problem, but it would prevent the automatic sync and erasing content. Hopefully, in the next few days- when iOS 5 is released - you will also be relieved of this weird iPad behavior - since the iOS devices are supposed to become PC free.
    BTW - and this is no excuse for what you are experiencing, but I have found that some of the game apps that I had on my iPad turned out to be quite troublesome and after I removed them, my problems went away. I know that is almost sacrilege with regard to the Angry Birds addiction .... But I'm just saying ...

  • Ubuntu url command line different than windows

    I have used Firefox for Windows for years.
    I have recently started using it on Ubuntu. Works well.
    I have seen one difference that bugs me.
    It doesn't automatically highlight the URL address when clicked. (see Troubleshooting Information for how to reproduce behavior)
    Any ideas? is there a control or setting that regulates this behavior?
    ==================================
    Four cheers to all who have built and maintained it.

    On Linux you can do that with a double-click: browser.urlbar.doubleClickSelectsAll (true)

  • My computer crashed and I did a complete restore.Is there any way to get my bookmarks back if I have never done a backup of them? Or am I just SOL and need to start backing up now? I also lost my saved themes.

    I was previously registered w/ Firefox.

    Profile is a folder which store all your personal data in a safe place
    * https://support.mozilla.com/en-US/kb/Profiles
    * here explain how to backup profile https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information
    * here explain how to restore it
    https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile

  • Any way to duplicate a track and designate a channel to it?

    My issuse is that I have audio with 2 channels that i import into Audition and they all need noise reduction. I need to take out multiple low frequency band hums, and cant nail them with any filters so I need to do the clips oen by one with the noise reduction. What i would LIKE to do, and was wondering if there's a way to do it, is just delete the one track I didnt do the NR on so i don't have to apply the noise reduciton to all the other separate clips, and just instead duplicate the one track that I did all the noise reduction in and, set it to either be left or right channel?

    You could what you want (delete the "unchanged" track and copy the "changed" track in its place) but if your original audio is a stereo track you are going to lose one half of the stereo signal.  If the two tracks are both mono and both contain exactly the same audio, then go ahead as you propose.  If you then set this remaining track to "mono" it will be exported equally to both left and right.
    For future reference, if you have similar problems with this type of multi-frequency noise, which demands a multi-pass approach in Audition, you might consider investing (some serious bucks) in iZotope RX2.  It is capable of removing "multiple low frequency band hums" in far fewer passes, perhaps as few as one!

  • Any way to duplicate XML data keeping it once in the structure?

    I already started a related topic
    zwettemaan, "Is there an equivelent tool to the "placeholders" in quark where one..." #25, 7 May 2008 3:12 pm but am hoping someone in the XML realm may have a solution...

    Fair enough. That is the answer I keep getting and I DO understand that it is part of the nature of xml. believe me.
    But let me explain the why behind why I think this needs a solution. I work in-house at a large medical company. We have many products, part numbers, marketing blurbs and prices scattered throughout dozens of marketing pieces. Lets say when a part number changes (which is in 2 or 3 places in the catalog, 3 places on the price list, 2 places on the data sheet and even once on the website). Sometimes it's a blurb that changes, sometimes it's a part number.
    I am trying to make a system where if you have to change a price, you change it once and that's it. Isn't that one of the basic things a computer is meant to do?
    Is there another programming language perhaps that can accomplish this?
    It is hard to keep track of how many places in all of my materials I have that price. Plus these changes come often. Perhaps something like the shared content pallette in quark xpress should be developed.

  • Is it possible to change network adapter priority in windows 7 by command line?

    Ik need to change my users network adapters so that the LAN network adaperts have a higher priority than the WLAN adapters.
    I would prefer to do it trouhg a command line so that is can distrubute it with SSCM.
    Can annybody help me??

    I've found the following Blog article for you:
    http://win7settings.blogspot.be/2012/04/how-to-set-network-adapter-priorities.html
    From the Command Line
    Unfortunately there is no out-of-the-box command line interface for these Advanced settings described above. Luckily, there are two ways to set the priorities from the command line. The more difficult way is to set metrics for each network adapter (using netsh). The much easier way (easier to manage too) is to use nvspbind made by Microsoft. If you set the priorities using nvspbind, the effects can also be seen in the Advanced settings in ncpa.cpl. Here is how you use nvspbind:
    Go to http://archive.msdn.microsoft.com/nvspbind and download nvspbind. Extract the nvspbind.exe and copy it to the target machine and run:
    nvspbind.exe /++ "Wireless Network Connection" ms_tcpip
    nvspbind.exe /++ "Wireless Network Connection" ms_tcpip6
    nvspbind.exe /++ "Local Area Connection" ms_tcpip
    nvspbind.exe /++ "Local Area Connection" ms_tcpip6
    And that's it! You're done.
    This will set the priorities (IPv4 and IPv6) to:
    1. LAN
    2. WLAN
    3. WAN (if present)

  • Is ther any program similar to Process Monitor(Procmon) to use command line?

    Hi.  I need to find some kinds of program like process monitor in terms of using command line
    there is a little bit restrictions to use ProcMon for exploiting command line.
    well, I tried to find such programs like multimon, yapm and so on..
    They are really good. However I couldn't use command line for them.
    Any guys can solve my problem?
    help me

    I agree, the procmon forum is the best place to ask about this.
    You do have command line options available to you:
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

Maybe you are looking for