External applications of the script call

Hello

Wish to be able to run an external application via the script, just like the way we do in node.js via the module 'child_process '. The reason is I want my epub converted to mobi automatically after exporting. The app that I will call is kindlegen.exe. Is it possible to extend script? I tried the tutorials on ExternalObject but have not implemented the chance.

The file object has an execute() method. In this way, you can run any script shell application or generated.

InDesign, unlike other environments ExtendScript also has the doScript method to invoke the platform specific languages.

Then, these languages have their way to call the shell without a separate file commands.

For example the following excerpts show files in the Finder/Explorer.

app.doScript(
"tell application \"Finder\"\r"
+ "reveal {"+list.join(", ")+"}\r"
+ "activate\r"
+ "end tell\r" ,
ScriptLanguage.applescriptLanguage);

or

app.doScript(
"CreateObject(\"WScript.Shell\").Run \"explorer /n,/e,/select,"+f.fsName+"\"",
ScriptLanguage.visualBasic);

Tags: InDesign

Similar Questions

  • The external application of Orchestrator J2EE API call

    I want to invoke operations on an external application. The external application exposed the J2EE API.

    I am new to the orchestrator world. As I understand it, to invoke the operations of external application and access to objects in the external application, I must first create a plug-in (specific to the orchestrator format). Then I could call these operations from javascript code for my workflow.

    1. have I missed something?

    2. is there another way to call operations of J2EE Api of the external application (without the help of plug-ins)?

    3. is it possible that my workflow directly invokes a java application?

    Could you give more details on the exposed J2EE API?

    Create a plug-in is the option that will give you the most flexibility. But if the application exposes REST or SOAP API, then you can use our plug-ins of HTTP-REST and generic SOAP to wrap these APIs in the workflows of vCO/actions.

  • Load an external application.

    Hi all!

    How can I load an external application when the user clicks on a button using action script 2?

    I don't know what your situation or context, but Flash (or whatever it is in a sandbox as a Web page) cannot load executable files on the file system. If you run it in a projector, you can use the fscommand exec function, see here for more details:

    Flash CS4 Professional ActionScript 2.0

  • How to pass values to external applications to guests of dashboard?

    Any idea is appreciated.

    How can I pass values of the guests dashboard from external applications to the dashboard inviting so that the dashboard is filtred based on the values sent by external applications.

    Thanks in advance!

    Kris

    Kris,

    I am able to change the session variable and able to call external application dashboard, but I identified the prompt value changes do not. but finally I am able to find a solution for you.

    Use the following URL and he explained here

    http://localhost:9704/Analytics/saw.dll?dashboard&nquser=administrator&nqpassword=administrator&PortalPath=/shared/ABCD/_portal/Dash1&options=RMF&DSN=Madan

    CheminPortail is your dashboard location. / Shared/ABCD is the folder in which I recorded dashboards. Dash1 is my dashboard name.

    internally, this dashboard includes a lot of reports that use the session variable. After above that, I am able to update the session variable to the value I have given in the URL, DSN = value.

    You can observe here called the dashboard and happening of value, but its not updated to the prompt value. so this workaround is change the prompt,

    Replace the default - SQL result and place the code sql

    SELECT CASE WHEN 1 = 0 THEN ANOTHER VALUEOF Markets.Region (NQ_SESSION. DSN) END saw_0 OF paint

    again here Market.Region is a column in the presentation layer and paint material. After you complete this step, the command prompt displays always value in the default session variable.

    Now include reports and dashboard invites in the dashboard and run this url from external applications.

    http://localhost:9704/Analytics/saw.dll?dashboard&nquser=administrator&nqpassword=administrator&PortalPath=/shared/ABCD/_portal/Dash1&options=RMF&DSN=Madan

    It worked for me and blog it soon. If it works for you question mark as answered and mark my answers as being correct.

    Thank you
    -Madan

  • Uninstalling an application of the virtual machine

    I followed the instructions here:

    http://docs.BlackBerry.com/en/developers/deliverables/21877/Remove_app_cmd_line_1375416_11.jsp

    who says to run:

    blackberry-airpackager -uninstallApp bar_file_name -device IP_address
    

    However, when I ran the following, I got an error:

    C:\Program Files\Blackberry Tablet OS SDK\blackberry-tablet-sdk-0.9.1\bin>blackberry-airpackager -uninstallApp AIRHelloWorld -192.168.56.138
    

    Error: Unknown Option:-uninstallApp

    Which seems to be that I cannot uninstall the application I made.

    Thanks for your help.

    Hey moshek,

    to uninstall an application, you use the blackberry-deploy instead of the blackberry airpackager tool to uninstall applications of the Simulator. call the following command, and it should do the job:

    >"C:\Program Files\Blackberry Tablet OS SDK\blackberry-tablet-sdk-0.9.1\bin\blackberry-deploy" -uninstallApp -package AIRHelloWorld.bar -device 192.168.56.138
    

    Make sure that you are in the directory where the .bar file. hope that helps! Good luck!

  • The call to an external application from within WebHelp

    Production of RoboHelp 8.0.2 merged WebHelp.

    I want to be able to call an external application, such as a batch file or a .exe since in a topic, or a table of contents.

    Let's convert Qt (from Nokia/Trolltech) and part of our aid will be in their QtHelp format, which requires the use of assistant.exe. Did someone do something like that?

    . MW

    Hello

    If you were using compiled HTML (CHM) format as released, I wouldn't say no problem! Use a shortcut to the HTML help control.

    Unfortunately, you ask about WebHelp. And WebHelp is a collection of this HTML pages since in a frameset. And you can't run EXE for pages HTML files. It's a security issue. Think about it. If you do, someone could build a link to an EXE file which format your HDD and it destroy.

    Click here to learn more

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Lauch PowerCLI script from an external application

    Hello

    I work with an external application to scheduling. It allows to launch command line scripts. I wrote a ps1 script that creates a new guest VM. I want to be able to call this script - the planning application CreateVM.ps1 however I am not sure of the command line to use. Launch of Powershell is not a problem, but it will launch the normal Powershell that does not give me access to commands PowerCLI. Anyone know how to run a script of ps1 PowerCLI guest BACK from a .BAT file?

    Thank you very much

    Ben

    You can add the snap-in on the first line of the script:

    Add-PSSnapin VMware.VimAutomation.Core

    or use the following to run your script:

    C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe - PSConsoleFile "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" "& C:\CreateVM.ps1 '"

    If you found this information useful, please consider the allocation of points for correct or helpful.

    Alan Renouf

    http://Virtu-al.NET

  • Executing an external application Indesign script

    Hello

    I am building an application in Objective-C which must communicate with Indesign.  I see that it is possible to write Javasript scripts and run them internally in Indesign, but my research have not mounted any results on how to carry out actions of external programs.

    It's a plugin I need?

    Any help is greatly appreciated.

    Thank you

    Dave

    Hi Dave,.

    The Objective-c, I think you need to send a message to InDesign via Apple Events or call an AppleScript script. If you do this, you can use the "script" method of InDesign to run a JavaScript (or an AppleScript). You can use make script to run a string or a file. I don't know Objective-C, so I know exactly how you would do that - but I'm hoping / thinking you do. Take a glance to the Scripting section in the chapter of Scripting in the Scripting Guide for more information.

    Thank you

    OLE

  • How to use the script "click menu item" command on a menu item for an application that runs under another user?

    Hey everyone, quick question...

    I am trying to run this script:

    say application "System events".

    say process of "iTunes."

    click on menu item "Start Station" from the menu 'Song' to menu bar item 'Song' in the menu bar 1

    end say

    end say



    The idea behind this is to start a song selected currently playing station. I know, it's not hard to do it manually, but I want to be able to do it without having to call the iTunes app to the front. Now, this script works for my own iTunes app, but I have a second instance of iTunes connecting the second user on my computer at home (User2), with its own separate library and account and all. script I have works fine for an instance of iTunes under my user account, but I can't figure out how to specify which instance of iTunes, I'd like the script to work on.




    I want to emphasize as an FYI that i use.


    the shell script "connection f User2 /Applications/iTunes.app/Contents/MacOS/iTunes > & - 2 > & - &" with administrator privileges

    -to open my second instance of iTunes as User2



    is there a way to change the "process"iTunes"to say" something like 'process 'unix ID' say' and have the ID for each respective instance of iTunes unix?


    Let me know if I do not make sense... Thanks in advance to anyone who can help






    You can target a process of application using various properties of system events, for example:

    tell application "System Events"
      tell first item of (get application processes whose unix id is 15174) -- or whatever id
        activate --> needed when using GUI scripting
        get properties
      end tell
    end tell
    
  • There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    Hi, I m a bit new in LabVIEW and I'd like to ask a few questions...

    -There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    -One API PI or raspberry beaglebone exists for LabVIEW?

    -Power supply Wich can recommend you control with LabVIEW? (some chip solution witn 0 - 30v / 0 - 3A DC)

    Thank you very much for your advice!

    Best regards

    Elena

    Elena,

    I know raspberry, so no comment on that.

    For the rest:

    -Do you want to create tools for developers? If so, we must look in the API of project VI and VI server. If this isn't the case, please compile your application LV as executable and call this one using a batch file.

    -LV prefer specific supplies. LV is a programming language. There are several power supply providers (including OR) which provide directly the LV API for their power supplies. So, essentially, the approach is:

    1. choose food that serves your needs.

    2. check if the power supply has a standard interface for programming (such as Ethernet, GPIB, or if the power supply is PXI, is already providing a programming interface!)

    3. check if the LV API (so-called "instrument driver") is available for the device. In the case of a PXI system, get you a device driver (for example NI DCPower).

    4. check if the LV samples are available (for example in the Finder for example LV once you have installed the driver).

    Norbert

  • management of the script errors when using the step of the call placed

    I have a script which is activated by a trigger of jtapi. At some point places the caller on hold, makes a call using step Place call, plays a prompt and then terminates the call.

    If the trigger (first contact) hangs up when the phone for the second contact rings, when the second contact answers the phone plays the default script or "Sorry we currently live the problems of the system."

    Here's what I did (without success) to try to get around it: changed the default script for the application (do not know why it does not work.) This logic is invoked in a subflow, maybe that's the problem?), placed a Terminate step for the second contact in case of square step call, put in a bunch of steps On Error Goto who attend a stage finish to the second contact.

    Brandon, until the original caller is replaced, an 'exception' will be thrown.

    To make up for it, to the step "On Exception GoTo" > choose the ContactInactiveException > choose the label you want the call to go into the script > clears the exception (on no exception) and then play your .wav file (sorry, the band hung up.. blah, blah) > and then terminate.

    who should git'r done.

    Pleae rate useful positions.

  • How to call the script shell of the Hyperion Workspace

    Hi all

    I have to call a shell script of the Hyperion workspace. After searching on Google, I came to know that its possible using generic employment applications.

    So I created a generic job application in the workspace to help below in detail.

    Job name: set_run_shell

    Server: Name of the Server workspace

    Order tempate: $PROGRAM $PARAMS

    executable: Cygwin executable path (like hyperion installed in windows server 2008, I had to install Cygwin to make the unix-like environment)

    Just write simple shellscript that the ECHO command displays "Hello World."

    Imported this shell script and above assigned jobs for it but no luck, when I run this job I never see output or less error. It showing the message running for a long time until get session expires.

    Can someone help me to run a shell script.

    Thank you

    Aravind

    The executable file must be %WINDIR%\System32\cmd.exe cmd.exe

    You will also need to create a batch file that comes from this sh.exe and imports that work. Try and let me know.

    Concerning

    Celvin Kattookaran

  • Get the converted HTML (dynamic converter) content of external application

    According to the requirement, external application (java application) assume to get dynamic content (HTML version) converted from the Complutense University of MADRID.
    I am trying to run the GET_DYNAMIC_CONVERSION service with call of web service client and CRMI.
    I see no content HTML is coming as the result of the GET_DYNAMIC_CONVERSION service.
    Could you please guide me in getting converted HTML document to external application.
    Let me know if you need further details.

    Thanks in advance

    Published by: 958795 on Sep 12, 2012 15:29

    Thank you, Ryan. Keep right em... :-)

    IIRC, by default, when the call to this service via RIDC, will get you service data returned back to you in a format of .hda.

    Add "IsJava = 0" to your request for the HTML code instead, for example

    binder.putLocal("IsJava","0")

  • iPad will not bring the keyboard when I try to complete an external application for internet access

    Hello

    I have a new iPad 2 Air, and very recently he began to refuse to show the keyboard properly, when I am trying to log on to an external internet account. I am traveling and need access to the internet but cannot fill all the required fields, it will bring up the top gray bar with the top and down arrow (they don't do anything, I tried pressing all there) but nothing else, just white space below.

    I have read other blogs and tried to reset the keyboard and things like that but he even let won´t let the keyboard.

    So, I can not get Internet access Login. Please help, I m new to the forum and hope I've filled it out properly... apologies if I've made mistakes here.

    Sorry I haven´t understood my operating system, but when I try to check by going to the software update, it won´t not let me because I Don t have internet.

    I suspect a lot of these errors occurred when I updated to version 9.1 of the software as it is not the only problem I encounter now, however, at this stage, it is the most frustrating.

    Thanks in advance to anyone who can help me.

    Hello Cara, there.

    It looks like that your keyboard is not appearing when it should. I'd leave the applications that are run in which you try to get the keyboard works as well as the application of the parameters:

    Force an app to close the iOS
    https://support.Apple.com/en-us/HT201330

    1. press the Home button twice quickly. You will see small glimpses of your applications recently used.
    2. slide to the left to find the application you want to close.
    3. push upward on the overview of the application to close.

    When you have done that reboot the device and test again the question:

    iOS: switch off and on (restart) and reset
    http://support.Apple.com/en-us/HT201559

    I think that these apps may simply need to be reset and refreshed. Thank you for using communities of Apple Support, let us know how it goes!

  • Bad performance of the Script when it is called from another Script

    Hello

    I have developed a. SOUTH who calls another script via "ScriptInclude" command and I noticed a substantial decrease in performance when running in this way.

    Normally my calculation scripts runs in less then 10 sec when it is running alone.

    However, when I call the script of my. Script SOUTH it takes 2-10 minutes on the same set of data.

    It's almost as if he is running in debug mode, where I can see my channel list being filled with data that the script runs.

    What could slow this process down so much?

    With the help of DIAdem 2015 32 bit.

    OK, I used this to speed up the result and it works like a charm

    Call UIAutoRefreshSet (False)     

Maybe you are looking for

  • Satellite Pro A200GE and WXP - can I use the PSAE7 drivers or it won't work?

    The performance of Vista business makes me crazy, I need to go back to XP + sv pack 2.If I format my machine (A200GE) and install XP. can I use the drivers for the PSAE7? (or that the A200GE is PSAE7E this solution will not work?) Also do I need to c

  • G9D51EA

    Hello I'm looking for drivers for this laptop. The site driver for this product is empty full. g9d51ea #abh [Personal information] With sincere friendships. Edwin

  • Install additional languages-

    When I try to add a language through the screen of the Control Panel, it will not activate the OK button, so I can't complete the addition fact. Why is it so different from Windows XP and earlier versions?

  • 5 Lightroom Import dialog does not show all images

    I am trying to import my photos from SD card via a card reader, but the images are not displayed in the dialog. I think not that the problem is related to the card reader SD/because when I copy the pictures on my computer and you try to import from t

  • The band in a string

    How to strip everything from a string of the second slash reverse Therefore, this: \A\B\C becomes this: \A\B play with ltrim and rtrim, but not quite there... Thank you