Install Adobe Air application (.air file) from command line in Mac OS X

Hello everybody
I would like to install an air application on many systems (Mac OS X) using remote install. Is there a way to achieve this?
Is there a pure command line utility to install Adobe AIR applications (.air files) in Mac OS X?
Thanks. Masteradi

Thanks for your reply. I already knew that command but it's good to see it again.
In the meantime I have found a tool called ARH (AIR Redistribution Helper) which can be used to install an air application, uninstall an air application, etc.
Now I would like to create a .pkg file (for Mac OS X) that will use ARH together with my .air file and that will install or update (uninstall/install) the application. But I guess this is no more an issue for Adobe AIR. I have to learn the tools specific for Mac (Iceberg, Xcode).
Best regards
Masteradi

Similar Messages

  • Create an Application Object schedule from command line?

    Hi everyone - long-time lurker, first-time poster here.
    Is there a way create an availability schedule for an Application Object via a command line (or any other programmatic method)? The utilities I've obtained from Cool Solutions are great for replicating AOs (Application Objects) and setting certain properties, but none of them seem to have a method of creating a schedule that you would otherwise create within the AO's property book via Availability > Schedule. BTW, we are using Zen 6.5.
    We have a rollout around the corner for which there are several AOs that drive the process, and we are going to have an instance of each of these AOs for every target group (of which there are dozens), and each group will have their own distinct schedule. The schedules are basically going to be "wait until day X to become available and then remain available for the next 2 months".
    For some of the AOs we can use the Schedule Type of Range of days, which is not so terrible to set manually because you just specify a start date and an end date. But most of the AOs must have the Schedule Type of Specified days in order to ensure they do not ever launch during business hours; manually selecting 60 days from the date picker for a single instance is a daunting task, and I shudder at the thought of having to do so for dozens of AO instances.
    I believe that the field in the ZENworks database that corresponds with an Application Object's schedule has a data type of Binary (which may be why there doesn't seem to be an existing solution), but does anyone have any ideas for accomplishing what I'm talking about?
    Thanks in advance,
    Gavin

    Originally Posted by AndersG
    Jeemo,
    > basically going to be "wait until day X to become available and then
    > remain available for the next 2 months".
    >
    Just to clarify, you want:
    Range of days, start date, end date. Nothing fancier than that?
    - Anders Gustafsson (Sysop)
    The Aaland Islands (N60 E20)
    In a perfect world this is what I would like to be able to do:
    For the AOs where we're going to use the "Range of Days" schedule type, be able to specify the start date, end date and also the days of the week when we do not want it to run (or just the days we do want it, if easier).
    For the AOs with the "Specified days" schedule type, we would like to add (or remove) a specific date, and optionally be able to specify that Start Time and End Time that applies to the dates. As for adding multiple dates, I was planning on having a script that enumerates all the dates in our desired range, and for each date in the range it would call the utility with that date passed as a parameter to add it or remove it.
    If all of the above is too much to put together then I would not complain if it is only partially fulfilled. To be honest I would not mind building a mechanism myself that could handle this, it's just that I don't know where to start. I'd be happy to take a crack at it if someone could point me in the right direction for how to send commands to the database (or directory).
    Thank you again for your help.

  • Running Unit Test from test manager that run bat file from command line

    Hi ,
    I am trying to run Jsystem (java framewotk) from command line using runScenario.bat thru unit test that i associated to test in test manager.
    the idea is that when i ran the automated test  from MTM - it will run the the unit test that will run the appropriate test case in java.
    i wrote the code like this : 
    using System;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    namespace UnitTestProject3
    [TestClass]
    public class UnitTest1
    [TestMethod]
    public void TestMethod1()
    try
    String command = "c:\\JSYSTEM\\runner\\runScenario.bat
    c:\\Users\\ryeshua\\Source\\Workspaces\\Auto1\\my-tests-project\\target\\classes scenarios\\feature1 RoeySetup.xml ";
    System.Diagnostics.ProcessStartInfo procStartInfo =
    new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
    procStartInfo.RedirectStandardOutput = true;
    procStartInfo.UseShellExecute = false;
    //procStartInfo.CreateNoWindow = true;
    System.Diagnostics.Process proc = new System.Diagnostics.Process();
    proc.StartInfo = procStartInfo;
    proc.Start();
    string result = proc.StandardOutput.ReadToEnd();
    Console.WriteLine(result);
    catch (Exception objException)
    // Log the exception
    and when i ran it from visual studio it worked perfect. and update  the Jsystem logs of the junit test in the jsystem/runner/log folder.
    but when i added it to associated test and ran it from MTM - it pass but it does not update  the logs in jsystem folder.
    the problem that i dont know what is not working. i cant see the output of it when i ran from mtm but can see when i ran from VS.
    i am using VS 2013 Pro with MTM 2013.
    please advice
    Roey

    Hi Roey,
    Thank you for posting in MSDN forum.
    Based on your issue, could you please tell me how you generate the log file under the jsystem folder?
    Generally, I know that when we run unit test from VS IDE, the file will be saved into the local machine. But when we run unit test from MTM, the unit test method will be run on the test agent machine, so the file will be saved into the test agent machine.
    Therefore, I suggest you could check if you did not see the updated logs file in jsystem folder on the test agent machine.
    In addition, I suggest you could try to copy this unit test project on this test agent machine and then run the unit test method using mstest.exe in command line and then check if you can update the logs file.
    https://msdn.microsoft.com/en-us/library/ms182489.aspx?f=255&MSPPError=-2147217396
    If you have any updated message about this issue, please tell me.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Run PDF File from command line and goto a bookmark

    Hi,
    I need to open a pdf file vi command line (WinXP / Win7).
    Till this I do not have a problem.
    But I need to go to a bookmark in the file direct after opening the file.
    I tried "acrord23.exe /a nameddest=BOOKMARK file.pdf" but this opened only the file.
    "acrord23.exe /a zoom=50 file.pdf" works fine.
    Is there another parameter to go to a bookmark after open a file?
    Where is my mistake?
    Thanks in advance
    Regards
    Marc
    Message was edited by: mgemmerich - reason: typo

    Hi,
    I read the PDF Open Parameters reference. So I tried the nameddest. I think the nameddest is a bookmark, or is this wrong?
    The background is, that we have the dokumentation for our application in word. So we save the word as pdf. Each chapter is now a bookmark.
    In the application we want to call the pdf and jump to the bookmark. Each frame were you can call "help" is a chapter/bookmark.
    Or is there another way to do this?
    Regards
    Marc

  • Passing arguments to the jsx file from command line

    Thanks for taking my question.
    I am using the following to be able to run my script from the command line.In case you were wondering on why i would be doing this- i would need to invoke the javascript from a server side code(like java,php etc. in my case it is java)
    "c:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" "c:\path to script\myscript.jsx"
    Anyways, i have been successful in running the myscript.jsx from the command line but i am not able to figure out how i could pass arguments to "myscript.jsx" from the command line, and be able to refer to these arguments within the script.
    I have tried the following
    "c:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" "c:\path to script\myscript.jsx" "argument1" "argument2"
    and tried to refer these arguments within the script using arguments[0] and arguments[1] . But looks like this does not work.
    Any thoughts?????

    To run JavaScript from the prompt using ExtendScript Toolkit 1.0.3 or 2.0.2 you need to do the following:
    Add the line #target indesign to the top of your script otherwise ESTK will open without executing the script. Example:
    #target indesign
    //MakeDocumentWithParameters.jsx
    //An InDesign CS2 JavaScript
    //Shows how to use the parameters of the document.open method.
    //The first parameter (showingWindow) controls the visibility of the
    //document. Hidden documents are not minimized, and will not appear until
    //you add a new window to the document. The second parameter (documentPreset)
    //specifies the document preset to use. The following line assumes that
    //you have a document preset named "Flyer" on your system.
    var myDocument = app.documents.add(true, app.documentPresets.item("Flyer"));
    //SaveDocumentAs.jsx
    //An InDesign CS2 JavaScript
    //If the active document has not been saved (ever), save it.
    if(app.activeDocument.saved == false){
    //If you do not provide a file name, InDesign will display the Save dialog box.
    app.activeDocument.save(new File("/c/temp/myTestDocument.indd"));
    Ensure Indesign is open. Execute the following command:
    "C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" -run "[path to script]\script.jsx"
    For example:
    "C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" -run "C:\Program Files\Adobe\Adobe InDesign CS2\Presets\Scripts\test.jsx"
    This command can be easily called from Java or any other third party application of your choice.
    It took me a while to find this information, so I thought I'd share it with everyone.
    Good luck!

  • Can't run JavaFX app as a jar file from command line

    I'm trying to build a JavaFX app from scratch (that is, by including the jar file from the JavaFX SDK rather than by using the special JavaFX project type from NetBeans). It runs fine in NetBeans. However, when I try to launch it as a jar file from the command line (using "java -jar dist\TestApp") I get the following. Has anybody seen this before, and if so how can I fix it?:
    *** Fallback to Prism SW pipeline
    Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLink
    Error: Can't load library: C:\dev\TestApp\dist\bin\mat.dll
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    289)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:68)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherIm
    pl.java:145)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:
    27)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.UnsatisfiedLinkError: Can't load library: C:\dev\RedactionT
    oolPrototype\RedactionToolPrototype.Core\dist\bin\mat.dll
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoad
    er.java:155)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoad
    er.java:85)
    at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:
    30)
    at com.sun.glass.ui.Application$1.run(Application.java:28)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:26)
    at com.sun.glass.ui.win.WinApplication.<clinit>(WinApplication.java:33)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:20)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:17)
    at com.sun.glass.ui.Application.Run(Application.java:51)
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    279)
    ... 5 more

    Unsatisfied link means that Java is trying to access a native library, but it cannot be found. As to why this error is being thrown, here is my guess:
    If you open up one of the sample jars with a zip viewer, you will see that the Manifest file has the following entries:
    >
    Manifest-Version: 1.0
    JavaFX-Version: 2.0
    implementation-vendor: Oracle
    implementation-title: BrickBreaker
    implementation-version: 1.0
    JavaFX-Application-Class: brickbreaker.Main
    Created-By: JavaFX Packager
    Main-Class: com/javafx/main/Main
    >
    In other words, a JavaFX project works a bit differently than a normal Java project. com/javafx/main/Main is used as the Main class and your "Main" class is called later.
    If you are trying to build this from a normal Java project, then com/javafx/main/Main will not be created and it will call your Main class right away. Thus, whatever setup is needed to run JavaFX will not occur.

  • Emacs auctex menus empty when not opening file from command line

    I have got a problem with emacs/auctex.
    In a running emacs editor, if I am opening a .tex file out of the editor, the menus "LaTeX", "Command" and "Math" are empty. That is, upon clicking on them, there is no dropdown list:
    Example: http://img8.imageshack.us/img8/7285/ema … ommand.jpg
    If, however, I open a .tex file from the console by invoking emacs
    $ emacs file.tex
    the menus show up the way they should.
    My .emacs
    (custom-set-variables
    ;; custom-set-variables was added by Custom.
    ;; If you edit it by hand, you could mess it up, so be careful.
    ;; Your init file should contain only one such instance.
    ;; If there is more than one, they won't work right.
    '(inhibit-startup-screen t))
    (custom-set-faces
    ;; custom-set-faces was added by Custom.
    ;; If you edit it by hand, you could mess it up, so be careful.
    ;; Your init file should contain only one such instance.
    ;; If there is more than one, they won't work right.
    ;; Auctex
    (load "auctex.el" nil t t)
    (setq TeX-auto-save t)
    (setq TeX-parse-self t)
    (setq-default TeX-master nil) ; Query for master file.
    (setq TeX-PDF-mode t) ;; set pdflatex default, not latex
    (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) ;; set math mode
    What am I missing?
    Edit: I am running linux 2.6.31 x86_64, emacs 23.1-3, auctex 11.85-2
    Last edited by fubar0 (2009-10-22 22:44:48)

    Me too. Same kind of problem with Dired also: the menus are empty. I've even gone so far as to reinstall a fresh Archlinux, although not just for this purpose (I just had to try the Beta Fedora 12, but it crashed all over the place. It lasted about an hour on my machine). I know that if I had any business using Emacs I should know how to fix this, but I don't have a clue. It's been happening for a couple weeks now. And just to reiterate, this is a clean install, I haven't messed with it at all, I don't even have a custom .emacs to show. I haven't looked to see if this empty menu thing happens anywhere else or not--these are just the two things I use emacs for.
    I don't see a bug report for this, but I don't feel I have the qualifications to submit a good bug report, so I'm hoping someone qualified will hear our crys for help. Forgive my ignorance, this is my first time posting on here.

  • OVS 2.2 :: Unable to install RHEL HVM on physical disk from command line

    [root@ovs2 xen]# /usr/sbin/virt-install hvm name=test2 ram=1024 vcpus=1 bridge=xenbr0 file /dev/sdc --nographics
    What would you like to use for the virtual CD image? /var/ovs/mount/1FB2E6B36D21418792A1DD30B62C689F/iso_pool/rhel-server-5.6-x86_64-dvd.iso
    Starting install...
    Guest installation complete... restarting guest.
    exception was: Domain named test2 already exists!
    Domain installation may not have been
    successful. If it was, you can restart your domain
    by running 'xm create -c test2'; otherwise, please
    restart your installation.
    [root@ovs2 xen]# more test2
    # Automatically generated xen config file
    name = "test2"
    builder = "hvm"
    memory = "1024"
    disk = [ 'phy:/dev/sdc,hda,w', ]
    vif = [ 'type=ioemu, mac=00:16:3e:3d:d0:5c, bridge=xenbr0', ]
    uuid = "f99f6a07-6d03-a0ae-8f2f-a7a0e1af5e31"
    device_model = "/usr/lib/xen/bin/qemu-dm"
    kernel = "/usr/lib/xen/boot/hvmloader"
    nographic=1
    timer_mode=0
    apic=1
    acpi=1
    pae=1
    vcpus=1
    serial = "pty" # enable serial console
    on_reboot = 'restart'
    on_crash = 'restart'
    [root@ovs2 xen]# xm console test2
    xenconsole: Could not read tty from store: No such file or directory
    [root@ovs2 xen]#
    + No errors in xend.log or qemu-*.log
    + hypervisor inittab is default .. co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav
    Using similar syntax, and installing paravirtualized guest to physical disk works fine.
    [root@ovs2 xen]# /usr/sbin/virt-install paravirt name=demo3 ram=1024 vcpus=2 bridge=xenbr0 file=/dev/sdc nographics location=http://192.168.229.74/RHEL5764bit
    Starting install...
    Bootdata ok (command line is method=http://192.168.229.74/RHEL5764bit )
    Linux version 2.6.18-238.el5xen ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Sun Dec 19 14:42:02 EST 2010
    BIOS-provided physical RAM map:
    Xen: 0000000000000000 - 0000000040800000 (usable)
    No mptable found.
    Built 1 zonelists. Total pages: 264192
    Kernel command line: method=http://192.168.229.74/RHEL5764bit ...................................
    Any suggestions ??

    and i go to the temp mountpoint that the script will mount on
    Starting install...
    ERROR: Invalid NFS location given: [Errno 2] No such file or directory: '/var/lib/xen/xennfs.7x4Rf4/boot/x86_64/vmlinuz-xen'
    [root@ovs2 opt1]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/cciss/c0d0p2 3050092 3033308 0 100% /
    /dev/cciss/c0d0p1 101086 47114 48753 50% /boot
    tmpfs 288856 0 288856 0% /dev/shm
    none 288768 40 288728 1% /var/lib/xenstored
    /dev/cciss/c0d0p3 288623616 301056 288322560 1% /var/ovs/mount/A52CB661C1CF41D198D50F6379822694
    /var/isos/OracleLinux-R5-U7-Server-x86_64-dvd.iso
    3755446 3755446 0 100% /el/EL5-x86
    192.168.229.110:/el/EL5-x86
    3755456 3755456 0 100% /opt1
    192.168.229.110:/el/EL5-x86/
    3755456 3755456 0 100% /var/lib/xen/xennfs.NnE54I
    [root@ovs2 opt1]# cd /var/lib/xen/xen
    xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
    xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
    [root@ovs2 opt1]# cd /var/lib/xen/xen
    xend-db/ xennfs.7jHT0q/ xennfs.fQNnQD/ xennfs.LR6hDx/ xennfs.QnxyeH/
    xennfs.5Pr0vm/ xennfs.8aMSAA/ xennfs.fRhXiN/ xennfs.NnE54I/ xennfs.yEw4KL/
    [root@ovs2 opt1]# cd /var/lib/xen/xennfs.NnE54I/
    [root@ovs2 xennfs.NnE54I]# ls
    blafdoc.css EULA GPL README-en RELEASE-NOTES-en.html Server VT
    Cluster eula.en_US images README-en.html RPM-GPG-KEY supportinfo
    ClusterStorage eula.py isolinux RELEASE-NOTES-en RPM-GPG-KEY-oracle TRANS.TBL
    [root@ovs2 xennfs.NnE54I]# find . -name vmlinuz\*
    ./images/pxeboot/vmlinuz
    ./images/xen/vmlinuz
    ./isolinux/vmlinuz
    [root@ovs2 xennfs.NnE54I]#

  • Can't open .term Terminal.app files from command line

    Howdy. I use Terminal.app constantly for ssh'ing into numerous remote machines. On my G4 Powerbook I have simply created .term files with customized colors, titlebars, and an appropriate ssh execution string for each machine/userid combination, which I am able to open with "open ~/bin/foo.term". Life is no longer so joyously simple on my new Intel iMac. I create a .term file (via Cmd-s while in a terminal window), but the above command to open foo.term now simply doesn't work on my iMac once a single terminal window has been opened (even after it's been closed) -- I can start one such file only from the finder or via Launchbar or Quicksilver. The only way I can use my .term files is by switching to Terminal and selecting File...Open and clicking on the .term file -- which, being a command line (and Launchbar) junkie, I hate, of course. Applescripts don't work either.
    I would be forever grateful if someone could tell me how to fix this problem!
    txlogic
    Intel iMac Mac OS X (10.4.6)
    iMac   Mac OS X (10.4.6)  

    TXLogic
    I cannot do it either.
    Ah, interesting -- thanks for the input. I had thought the problem might have something to do with the fact that I was using an Intel iMac, but you are using a PPC iBook. The problem isn't with 10.4.6 either, as that is what I'm running on my G4 Powerbook, and the .term files work as expected on that machine.
    Initially I thought it was a
    problem with permissions, i.e the term file hadn't
    the execute bit set (which it did not). Setting the x
    bit though did not help at all.
    Right, the .term files aren't executable.
    A work around was to
    save the command(s) into a plain text document in
    text edit (not rtf) as a .command file (no txt
    extension in this case) and set its execute bit in
    terminal (sudo chmod u+x ...).
    I don't quite understand the workaround -- what command(s) exactly did you put into the .command file? Could you paste the contents of such a file here?
    I have not dealt with term files extensively but I
    noticed that .term files are xml ones. Could anyone
    shed some light in possible changes in the way
    terminal handles them?
    Since the .term files work as desired on my Powerbook, it now doesn't appear that Terminal.app has changed its processing of the files. Something else is going on here.
    txlogic

  • How to launch a specific TestStand sequence file from command line?

    I've written a TestStand sequence file launching other sequence files.
    When I launch it via the TestStand GUI, it works well.
    Now, I would like to launch it via command line. Could you indicate me how to proceed?

    Hi,
    I think this link can help you:
    How to Run a Sequence File When Opened from Windows Explorer
    http://digital.ni.com/public.nsf/websearch/146D372C1F807E6D862567E7004881AB?OpenDocument
    regards,
    Alexandre D
    NIF

  • Controlling Application Layer Firewall from Command Line Not Working

    We are trying to manage the OS X Application Layer Firewall for Mountain Lion from the command-line. We have several hundred Macs that we need to manage and it isn't possible to have someone log in to each one to modify settings. We have used socketfilterfw in the past, and can still use it to add items but we can't seem to manage it at all. We are also having issues trying to remove certain items although it appears we can still add items.
    When we try to block or unblock the feedback we get is that the item has been configured however when we do a list the item attributes haven't changed.
    When we try to verify if the item has been signed we get an error Killed: 9
    When we try to sign an item we get the same error, Killed: 9
    With one item specifically, when we try to remove it we get a Segmentation Fault 11 although we can add that same item just fine.
    It should be noted that doing all of this through the GUI works fine.
    Does anyone have any ideas on how to manage the firewall from te command-line that works? Has socketfilterfw been depricated and replaced by something else? Is this just a bug? I am placing the same information in a bugreport but just wanted to check with the co

    It's a known issue that apparently hasn't been fixed. Not a high priority for Apple Engineering, it seems.

  • Load a new URL from command line under Mac OS X 10.5

    Under Mac OS X 1.05: if Firefox is already running and I type (in a Terminal):
    /Applications/Firefox.App/Contents/MacOS/firefox-bin http://google.com
    a pop-up comes out and complains that "Firefox is already running". The behavior under Linux is load the requested URL in a new tab|window.
    I have also tried *documented* options such as "-new-tab" and "-remote", but I get the same error.
    This only happens when Firefox is already running.
    Is there a way to load a new URL from the command line if Firefox is already running, under Mac OS X? I have tried Mac's open(1), but it does not get along well with Tab Mix Plus, so it is useless for me.
    I think that this difference in the behavior between Linux and Mac's version is very very very annoying for developers and users!

    open -a Firefox.app http://www.google.com

  • Executing jar file on command line [windows]

    Hi,
    I am trying to run .jar file "senthil.jar" . It catures systems screenshot.
    http://sensaran.wordpress.com/2010/06/04/screen-shot-utility-using-air-2-0/
    I am using it in AIR application. I want to execute this file from  command line. I am not sure how to pass command line arguments.
    Currently i am trying to do it like :  java -jar senthil.jar
    I need to provide a parameter as "Print Screen"
    Its corresponding Flex Code is :
                var arg:Vector.<String> = new Vector.<String>;
                arg.push("-jar");
                arg.push(File.applicationDirectory.resolvePath("senthil.jar").nativePath);
                 var file:File = new File();
                file = file.resolvePath(javaPath.replace(/\//g, File.separator));
                var npInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
                npInfo.executable = file;
                npInfo.arguments = arg;
                nativeProcess = new NativeProcess();
                nativeProcess.start(npInfo);
                nativeProcess.standardInput.writeMultiByte("Print Screen" + "\n", "utf-8");
    Thanks

    Did you give the -jar option with javaw? And the "%1"? See the file associations of some other extensions for example of how to do this
    For example on my machine,
    W:\>assoc .mp3
    .mp3=Winamp.File
    W:\>ftype Winamp.File
    Winamp.File="C:\Program Files\Winamp\Winamp.exe" "%1"Now I can
    start song.mp3Or doubleclick on mp3 file in explorer to open it in winamp.

  • CMake behaves differently from within PKGBUILD and from command line

    Hi,
    I am currently struggling with an issue which I cannot find a solution. The problem is, I am trying to create a PKGBUILD for the CasADi code. The following is the PKGBUILD file written. My problem is the cmake configuration part. When the code is configured from the command line, without PKGBUILD, camke detects the -fopenmp flag for C and C++ compilers. For exactly the same compilers, cmake detects openmp for C compiler but fails to do so for the C++ compiler, when configuration is done from within the PKGBUILD file using makepkg.
    My question is, why different behaviors? Any suggestions on what is wrong?
    pkgname=casadi-git
    pkgver=0
    pkgrel=1
    pkgdesc="A symbolic framework for automatic differentiation and numeric optimization"
    arch=('i686' 'x86_64')
    url=""
    license=('GPL')
    groups=()
    depends=('sundials' 'ipopt' 'blas' 'lapack' 'python2')
    makedepends=('cmake' 'swig')
    checkdepends=()
    optdepends=()
    provides=('casadi')
    conflicts=()
    replaces=()
    backup=()
    options=()
    install=
    changelog=
    source=('casadi::git+https://github.com/casadi/casadi.git')
    md5sums='SKIP'
    build() {
    cd "$srcdir/casadi"
    sed -i 's/PythonLibs/PythonLibs 2.7/g' ./cmake_modules/FindNUMPY.cmake ./swig/CMakeLists.txt
    cmake . -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_EXECUTABLE=/usr/bin/python2 \
    -DWITH_DL:BOOL=ON \
    -DWITH_LLVM:BOOL=OFF \
    -DWITH_PYTHON_INTERRUPTS:BOOL=ON \
    -DWITH_OPENMP:BOOL=ON \
    -DWITH_OOQP:BOOL=ON \
    -DWITH_DOC:BOOL=ON \
    -DWITH_OPENCL:BOOL=OFF
    make
    package() {
    cd "$srcdir/casadi"
    make DESTDIR="$pkgdir/" install
    Output when cmake is run from command line
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Found OpenMP: -fopenmp
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /home/hamid/bin/python
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /home/hamid/bin/python (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * OpenMP
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done
    Output when running makepkg
    -- The C compiler identification is GNU 4.8.1
    -- The CXX compiler identification is GNU 4.8.1
    -- Check for working C compiler: /usr/bin/colorgcc
    -- Check for working C compiler: /usr/bin/colorgcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- The Fortran compiler identification is GNU
    -- Check for working Fortran compiler: /usr/bin/gfortran
    -- Check for working Fortran compiler: /usr/bin/gfortran -- works
    -- Detecting Fortran compiler ABI info
    -- Detecting Fortran compiler ABI info - done
    -- Checking whether /usr/bin/gfortran supports Fortran 90
    -- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
    -- Flag needed for enabling C++11 features: -std=gnu++11
    -- x86_64 architecture detected - setting flag -fPIC
    -- Try OpenMP C flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Success
    -- Try OpenMP CXX flag = [-fopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [/openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-Qopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-openmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [ ]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-xopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [+Oopenmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-qsmp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Try OpenMP CXX flag = [-mp]
    -- Performing Test OpenMP_FLAG_DETECTED
    -- Performing Test OpenMP_FLAG_DETECTED - Failed
    -- Could NOT find OpenMP (missing: OpenMP_CXX_FLAGS)
    -- Looking for Fortran sgemm
    -- Looking for Fortran sgemm - found
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.1")
    -- A library with BLAS API found.
    -- Looking for Fortran cheev
    -- Looking for Fortran cheev - found
    -- A library with LAPACK API found.
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
    -- checking for one of the modules 'ipopt'
    -- Detected an IPOPT configuration without development headers. Build will proceed, but without callback functionality. To enable it, see https://github.com/casadi/casadi/wiki/enableIpoptCallback
    -- Detected an IPOPT configuration without sIPOPT headers. Build will proceed, but without sIPOPT functionality.
    -- Found IPOPT: ipopt;lapack;blas;m;dl;coinmumps;pthread;blas;gfortran;m;gcc_s;quadmath;coinmetis
    -- Could not find KNITRO include dir
    -- Could not find KNITRO library
    -- Could not find CPLEX include dir
    -- Could not find CPLEX libraries
    -- Could not find MA57
    -- MA57 libraries not found. Falling back to MA27
    -- Could not find MA27
    -- Could not find OOQP include dir
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Could not find SNOPT include dir
    -- Found Snopt libs: /usr/lib64/libf2c.a;-lpthread;/usr/lib64/liblapack.so;/usr/lib64/libblas.so;dl
    -- Could not find MATLAB include dir
    -- Could not find Matlab libs
    -- Found SWIG: /usr/bin/swig (found version "2.0.10")
    -- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.5", minimum required is "2.7")
    -- Python executable is /usr/bin/python2
    -- numpy.get_include() is /usr/lib/python2.7/site-packages/numpy/core/include
    -- Numpy path found: /usr/include/python2.7/numpy
    -- Python libs: /usr/lib64/libpython2.7.so
    -- Numpy includes: /usr/include/python2.7/numpy;/usr/include
    -- Numpy libs: /usr/lib64/python2.7/site-packages/numpy/core/multiarray.so
    -- Found PythonInterp: /usr/bin/python2 (found version "2.7.5")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.4")
    -- Found DOXYFILE_IN: /usr/src/AUR/build/casadi/src/casadi/documentation/api-doc/Doxyfile.in
    -- pyreport not found -- try 'easy_install pyreport'
    -- The following features have been enabled:
    * dynamic-loading , Compile with support for dynamic loading of generated functions (needed for ExternalFunction)
    * using-c++11 , Using C++11 features (improves efficiency and is required for some examples).
    * sundials-interface , Interface to the ODE/DAE integrator suite SUNDIALS.
    * csparse-interface , Interface to the sparse direct linear solver CSparse.
    * lapack-interface , Interface to LAPACK.
    * ipopt-interface , Interface to the NLP solver Ipopt.
    * qpoases-interface , Interface to the active-set QP solver qpOASES.
    * dsdp-interface , Interface to the interior point SDP solver DSDP (requires BLAS and LAPACK).
    -- The following OPTIONAL packages have been found:
    * LibXml2
    * BLAS
    * Threads
    * LAPACK
    * PkgConfig
    * IPOPT
    * SWIG
    * NUMPY
    * PythonInterp
    * Doxygen
    -- The following features have been disabled:
    * just-in-time , Just-in-time compiliation via the LLVM compiler framework.
    * opencl-support , Enable just-in-time compiliation to CPUs and GPUs with OpenCL.
    * get-ipopt , Download and build Ipopt.
    * knitro-interface , Interface to the NLP solver KNITRO.
    * cplex-interface , Interface to the QP solver CPLEX.
    * ooqp-interface , Interface to the QP solver OOQP (requires BLAS).
    * worhp-inteface , Interface to the NLP solver Worhp (requires LibXml2 headers).
    -- The following OPTIONAL packages have not been found:
    * OpenMP
    * KNITRO
    * CPLEX
    * MA57
    * MA27
    * OOQP
    * MATLAB
    * OCTAVE
    * LATEX
    * PYREPORT
    -- Configuring done
    -- Generating done

    With a little creativity, you can actually do all that from the command line with a single command. It'll look a little crazy, but it can be done.
    Whether the script exists on the local machine or not has zero to do with platform indpendence. You assumedly have to get the application onto the local machine, so including the script is not really an issue at all. However, you're talking about system independence, yet still wishing to run command line arguments? The two are mutually exclusive.

  • Combine two or more pdf as one pdf from command line

    Hi,
    I have to combine two or more pdf file as one pdf file from command line.
    Is it possible.
    Thanks,
    Ansaf.

    Acrobat has a rich SDK, but not using the command line - declared obsolete by Adobe several decades ago (but taking a long time to die). To be fair, implementing thousands of APIs via command line would make for a rather complicated command line. Use OLE. BUT NOT ON A SERVER!!

Maybe you are looking for

  • My ipod touch is stuck on the apple logo, how can i fix this?

    My ipod touch wasnt working so I tried resetting it, now it is stuck on the apple logo. I tried connecting it to itunes but it is not showing up.  Any ideas?

  • Non Dreamweaver Extension Photo Album (Gallery) Recommendations

    Hi all, I knwo this is a dreamweaver forum, but I also know that it's the place to come for non dreamweaver web questions. So, does anyone have any recommendations for a 'non dreamweaver' photo album (gallery)? I found this one JAlbum, has anyone use

  • XSQL-007: Protocol violation

    Oracle XSQL Servlet Page Processor 1.0.0.0 (Production) XSQL-007: Cannot acquire a database connection to process page. Protocol violation ^^^^^^^^^^^^^^^^^^ what is it?????????????

  • Long list of warnings in Application event log

    I'm using windows XP SP2, Nokia PC-Suite 6.84.10.4 and a Nokia 6822 phone. I have full administration rights of the machine. Every time I start my laptop up I get about 62 or 63 application log entries all saying the following. . . Detection of produ

  • Macbook air keeps loosing hp printer.

    Mac book air keeps loosing my new hp wireless printer. Have to uninstall then re-install to print. Once I turn off the Air/HP I must do the same thing. Any suggestions? Thanks