Realtime Dialog boxes in Bash Scripting

I would like to try and push the output of FFMPEG and HandBrake into a dialog window using the dialog command.
I noticed there is a tailbox option but I cannot find much information on how to use this.
Does anyone have any examples I could work off?
I thought maybe using something like the below would work.  But it doesn't.
ffmpeg -i 02.ts -acodec pcm_s16le -ac 2 02.wav | dialog --title "Extracing" --tailbox 10 75
What would be the best way to this to create something like this?

Tailbox requires a file parameter.  So you'll need to do one of the following:
ffmpeg -i 02.ts -acodec pcm_s16le -ac 2 02.wav > outfile &
dialog --title "Extracing" --tailbox outfile 10 75
dialog --title "Extracing" --tailbox <(ffmpeg -i 02.ts -acodec pcm_s16le -ac 2 02.wav) 10 75
In the first case, you may need to use `mkfifo outfile` then change the > to a >>.
EDIT: wait, why are you trying to use tailbox?  Progress box is exactly what you want.
Last edited by Trilby (2013-11-11 23:53:00)

Similar Messages

  • "Security Warning" dialog box when click script set to Run at Server

    I am rendering a PDF form using the renderForm component.  I'm setting the Target URL.  I have a script on a button set to "run at server".  I can render my form in a browser and fill it out, but when I click the button I get a dialog box with a title of "Security Warning".  It says "Acrobat is attempting to connect to [target URL]" with options to Allow or Block.  Is this the expected behaviour for server-side execution of scripts?
    I'm thinking that maybe I should just use a submit button instead.  The problem with that though, is that I don't want to run the mandatory field rules and validation rules.  As I understand, you can't submit a form with a submit button unless all the mandatory fields are completed.
    Here's the requirement.  I need to have two "submit" buttons.  One checks all the mandatory field rules before submitting a "final" version of the form.  The other button submits a "draft" version without the mandatory checks.  I was hoping that the second button could be implemented as a normal command button with a script that executes server-side.  Sure enough, it attempted to submit without checking the mandatory fields.  Unfortunately I ran into other undesirable side-effects including a distressing "Security Warning" dialog box.
    Ideas?
    Jared Langdon

    This was helpful (stopped the request to execute Thunderbird) . However, The pop up window is now asking what program do you want to use to access the website??? What is the next step??

  • Disable alert and dialog box in vb script

    Pls. help to disable the alert and dialog box for indesign CS3 in vb script?
    I have try to add the following code to my vb script:
    myIndesign.ScriptPreferences.UserInteractionLevel=1699640946
    (Indesign still display missing Link alert box)
    myIndesign.ScriptPreferences.UserInteractionLevel=idUserInteractionLevels.idNeverInteract
    (Indesign shows need object idUserInteractionLevels)
    myIndesign.ScriptPreferences.UserInteractionLevel=idNeverInteract
    (Indesign shows values should be idUserInteractionLevels enumerator)
    Vb script is running outside Indesign. Script will be automatically stop running when open a missing link document.
    Pls. Help. Thank you!

    Check out this link, it might help.
    http://indesign.objectsdefined.com/adobe/indesign/CS3/clsidUserInteractionLevels.htm

  • Photoshop "Fill" Dialog Box is missing "Scripted Pattern" option..

    Photoshop "Fill" Dialog Box (using the most current Creative Cloud) is missing "Scripted Pattern" option which is supposed to be at the very bottom.  Instead, in the middle of the box I have the option to check the word "Script" which brings up only six fill patterns (such as Brick, Sprial, etc).  In the tutorials I see that by using Scripted Patterns (the tree option for one) brings up many, many choices.

    Big changes made in Fill between CC and CC 2014.  CC Fill dialog on top CC2014 Fill dialog bottom. Picture Frame and Tree moved from Fill to Render Filter and new Flame pattern added into render filter grouped with Picture Frame and Tree.

  • Can't access Modal dialog box via Powershell script

    Hi,
    I have a powershell script to login to an IE website and everything works fine excepting when I call a modal dialog box.  I've attached the line where the modula dialog is invoked.  When it gets to this part the script hangs and I'm unable
    to get past this.  I've googled a few articles where it suggests I should run an a scheduled task to scrape for the modal dialog box but I've tried it without much luck.  If you can please give me some pointers on resolving this issue. 
    Thnx
    Sue.
    $ie.Document.getElementsByTagName("button") | ? { $_.innerText -eq 'UNLOCK User' } | Select-Object -first 1 | % { $_.Click() }
    Sue

    Hi,
    I have a powershell script to login to an IE website and everything works fine excepting when I call a modal dialog box.  I've attached the line where the modula dialog is invoked.  When it gets to this part the script hangs and I'm unable
    to get past this.  I've googled a few articles where it suggests I should run an a scheduled task to scrape for the modal dialog box but I've tried it without much luck.  If you can please give me some pointers on resolving this issue. 
    Thnx
    Sue.
    $ie.Document.getElementsByTagName("button") | ? { $_.innerText -eq 'UNLOCK User' } | Select-Object -first 1 | % { $_.Click() }
    Sue

  • Dialog Box and VBS Scripting

    Within the dialog box I have a combo box and an Edit box. I would like to take the value I select from the Combo Box and have it used in a calculation and then output to the edit box.

    Hi Croxtonj,
    Please have a look at the DIAdem online help and there in ...Examples->Viewing, Presenting, Automating->User Templates->DIAdem Script->User Dialog Boxes->"User Dialog Box with Selection Lists" or "User Dialog Box with Selection Fields" etc.
    I hope this will help you.
    Greetings
    Walter

  • Complicated question: dialog box-batch processing script

    I am adapting the working script I found on this forum.
    Script: Open files as layers in Photoshop
    https://forums.adobe.com/thread/1313579
    The goal of the adaptation is to include a javascript Folder dialog to set the save folder destination at run time and
    use this folder destination for the remaining script batch processing functions.
    Presently, the script loads a Bridge stack as Photoshop layers and saves the layered tiff using the Folder dialog.
    The folder dialog is manifesting every time the script encounters a Bridge stack.
    The question is what is the correct script logic to set the destination folder once at run time and keep this destination
    folder for the stack batch processing.
    #target bridge
    var stacks = app.document.stacks;
    var stackCount = stacks.length;
    for(var s = 0;s<stackCount;s++){
          var stackFiles = getStackFiles( stacks[s] );
          if(stackFiles.length> 1){
               var bt = new BridgeTalk;
               bt.target = "photoshop";
               var myScript = ("var ftn = " + psRemote.toSource() + "; ftn("+stackFiles.toSource()+");");
               bt.body = myScript;
               bt.send(5);
    function getStackFiles( stack ){
          var files = new Array();
          for( var f = 0; f<stack.thumbnails.length;f++){
               files.push(stack.thumbnails[f].spec);
          return files;
    function psRemote(stackFiles){
    app.bringToFront();
    var thisDoc = open(File(stackFiles[0]));
    var Name = decodeURI(app.activeDocument.name).slice(0,-4);
    thisDoc.layers[0].name = decodeURI(Name);
    for(var a = 1;a<stackFiles.length;a++){
        open(File(stackFiles[a]));
        Name = decodeURI(app.activeDocument.name).slice(0,-4);
        activeDocument.activeLayer.duplicate(thisDoc);
        app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
        thisDoc.layers[0].name = Name;
    var tifOptions = new TiffSaveOptions();
    tifOptions = new TiffSaveOptions();
    tifOptions.embedColorProfile = true;
    tifOptions.imageCompression = TIFFEncoding.TIFFLZW;
    tifOptions.alphaChannels = false;
    tifOptions.byteOrder = ByteOrder.MACOS;
    tifOptions.layers = true;
    var theFolder = Folder.selectDialog ("Select Folder");
    if (theFolder) {
            var myFile = new File( theFolder + "/" + app.activeDocument.name);
            app.activeDocument.saveAs(myFile, tifOptions, true);  
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

    I am thinking the Folder dialog is not correct for this application.
    On a second thought a persistent dialog to set the save folder path and run the script from the persistent dialog can make sense.
    Any ideas?

  • Canceling Dialog Box after a button is pushed

    The problem I have is I open the dialog box and push my button to call another script to run.  But if there is an error the error is hid behind the dialog box.  I would like to Call the dialog box, push button and then close my dialog box before the script runs.  Can that be done.
    So far I have tried this and can get it to do what I want.
    SubButton4_EventClick(ByRef This) 'Created Event Handler
    CallUIAutoRefreshSet(0)
    Call dialog.cancel
    Callscriptinclude ("D:\_Calterm_Configuration_Files\Technical_Information\DIAdem_Scripts\Insite_DataLog_FileLoader.VBS")
    CallUIAutoRefreshSet(1)
    End Sub
    Solved!
    Go to Solution.

    Hi J,
    If you're willing to have the SUDialog close to unubstruct the view of a potential error dialog, then why not conditionally call the next script right after the SudDlgShow() command in the script that calls the SUDialog?  If the user closes the dialog with the Cancel action, you don't run the script, but if they close with the Ok action, you do-- like this:
    Response = SudDlgShow("MyDialog", CurrentScriptPath & "MyDialogFile.SUD")
    IF Response = "IDOk" THEN Call ScriptStart("MyScriptPath")
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How to avoid missing font dialog box(alert) while running the script??

    Hi....
         In Illustrator CS4 ,I tried to skip missing font dialog box(alert box) by using the following  script .But,I could not skip the dialog box
    So if you have any suggestion about this let  me know..
    tell application "Finder"
      set user interaction level to never interact
        activate
        set fileName to (path to desktop folder as string) & "fer11757_f1208.eps"
        --set user interaction level to never interact
        --    set user interaction level of script preferences to never interact
        open file fileName
        --set alert missing fonts to true
        set user interaction level to never interact
        activate
    end tell
    display dialog ("completed")
    end tell
    Thanks,
    Mubeen

    Does this NOT error when run? Your target application here is 'Finder' Apple's system file browser and you are giving it Adobe illustrator commands?
    Im not 100% about the versioning with Illustrator installs I think they are all just…
    Tell application "Adobe Illustrator" -- No CS Versioning?
         -- do stuff here
    end tell
    you could check by just picking the app from this list
    choose application

  • FF 7.0.1 on Mac OSX 10.6.8: I sometimes get the "unresponsive script" dialog box in the top left corner of the screen, so far out that I can see only the bottom right corner of the dialog box. Is there any way of re-centring it?

    FF 7.0.1 on MacOSX 10.6.8 (not this machine!): I sometimes get the "unresponsive script" dialog box jammed into the top left corner of the screen so that only a quarter of it is visible.
    Is there a way of re-centring the dialog box (in particular, when its top edge is off the screen)?
    Thanks!

    There is no way to preserve view preferences.Just remember or annotate the zoom % used in the package.
    You may want to open an MS Connect item asking to add such a feature.
    I can tell you it may not be implemented because a package may be opened on different size monitors.
    Arthur My Blog

  • If the "unresponsive script" dialog box appears while another dialog box (e.g. a "Save As" box), the two dialog boxes lock each other out

    FF 7.0.1 on MacOSX 10.6.8 (not this machine!)
    While doing a "Save As", and while the "Save As" dialog box is showing, a second dialog box "unresponsive script" shows up. I can't deal with the "unresponsive script" box as it doesn't have focus, and I can't complete the "Save As" operation because its script has become unresponsive. I end up having to Force-Quit Firefox via the Activity Monitor.
    Any less brutal suggestions?

    figured it out:
    - power off mac and turn back on while holding down Command + R (dont do it on an external keyboard just to be safe)
    - choose the re-install Lion option (I'm sure there is another way to re-install Lion, this is just the way I did it, not saying its the best or only method)
    - DO NOT INSTALL MACBOOK (Mid 2012) Software Update 1.0 - THIS SCREWS ADOBE UP!

  • Problem GUI scripting an inDesign dialog box

    I've posted this on the inDesign forums, but haven't received any answers.
    I'm trying to automate the opening of .indd files with InDesign CS3. Naturally they often come in folders with attached/included linked files, and opening the .indd files results in a dialog box offering to 'Fix Links Automatically'
    Trouble is, there's a dialog default button 'Don't Fix', that is selected when sending a return to the inDesign process (that works OK).
    I'd like to select the 'Fix Links Automatically' button, but trying to send a click to the button doesn't work. I can get the button to flicker with multiple 'clicks', both by GUI addressing by name and by position, but the button won't respond. Even 20 consecutive clicks turns the button blue, but doesn't work.
    I think it's a bug, but is it Adobe InDesigns or Apples?.
    Any thoughts anyone?
    Regards
    Santa

    Thanks Budgie
    Turns out it's easy to tuen of the dialogs, and re-do links after opening the document.
    tell application "Adobe InDesign CS3"
    try
    activate
    set user interaction level of script preferences to never interact
    open theItem
    delay 5
    set myDocument to document 1
    tell myDocument to update links
    set myFontCheck to (count (every font of document 1 whose status is not installed)) = 0
    if not myFontCheck then say "[[rate " & TheSpeechRate & "]]There are fonts missing. " using TheVoice
    set myGraphicsCheck to true
    set myGraphics to all graphics of myDocument
    repeat with myCounter from 1 to count myGraphics
    set myGraphic to item myCounter of all graphics of myDocument
    set myLink to item link of myGraphic
    if status of myLink is not normal then
    set myGraphicsCheck to false
    if SpeakTheErrors then say "[[rate " & TheSpeechRate & "]]There are linked graphics missing. " using TheVoice
    exit repeat
    end if
    end repeat
    end tell

  • I see two dialog boxes when I run this script, why?

    When I run this script I see two dialog boxes of "Would you like to Minimize firefox", the first has no default button selected, the second one does.
    What is going on? How do I end up with only one dialog box?
    set minfirefox to "Would you like to Minimize firefox?"
    set tempvar to display dialog minfirefox buttons {"Yes", "No"}
    set ButtonPressed to button returned of tempvar
    display dialog minfirefox buttons {"Yes", "No"} default button "Yes"
    if ButtonPressed is "yes" then
    display dialog "you pressed " & ButtonPressed
    else
    display dialog "you should have pressed yes but you pressed " & ButtonPressed
    end if

    Hi--
    Welcome to the Apple Discussions...
    StewartAlexander wrote:
    When I run this script I see two dialog boxes of "Would you like to Minimize firefox", the first has no default button selected, the second one does.
    What is going on? How do I end up with only one dialog box?
    You're telling it to display the dialog twice. Once here without the default button:
    set tempvar to display dialog minfirefox buttons {"Yes", "No"}
    and then again here:
    display dialog minfirefox buttons {"Yes", "No"} default button "Yes"
    But you're ignoring the buttons returned from the second one.
    charlie
    PS. This probably does more like what you want:
    set minfirefox to "Would you like to Minimize firefox?"
    set tempvar to display dialog minfirefox buttons {"Yes", "No"} default button "Yes"
    set ButtonPressed to button returned of tempvar
    if ButtonPressed is "yes" then
    display dialog "you pressed " & ButtonPressed
    else
    display dialog "you should have pressed yes but you pressed " & ButtonPressed
    end if

  • New script dialog box only displays momentarily

    FM10 in TCS3 on Windows XP
    My coworker and I decided to investigate Extendscript and when we select File>Scripting>New from the main toolbar, the New Script dialog box flashes momentarily and then disappears. However, selecting Run displays the Choose Script dialog box, and selecting Catalog displays the Script Library.
    We have the latest patches and have installed DITA-FMx, FrameSLT, and SDLAuthorAssistant in FM.  Could any of those be affecting the scripting function?
    Thanks in advance.
    m

    Using TechCommSuite 3.0 on Windows XP.
    I always like to close loops and this posting is no exception.
    After almost two weeks of diligent sleuthing by Adobe techs and our own security personnel, we determined that the problem of ExtendScript not launching was an in-house problem.
    We have a DLP application that interfaces with our desktops for security purposes.  We needed to identify the ExtendScript.exe that was running in order to allow it to function.  Our security guy performed some wizardry and voila!  I had my ExtendScript window.
    Mary

  • Dialog box with one button, when clicked will launch another script

    How do I create a button inside a dialog box, which, when clicked, will open up another script?

    ]I've typed
    set myDialog to display dialog "Finished?" buttons {"Shutdown", "Screensaver"}
    if button returned of myDialog is "Screensaver" then
    run script ("Macintosh HD:Users:Seb:Applescript:ScreenSaver.scpt" as alias)
    if button returned of myDialog is "Shutdown" then++
    run script ("Macintosh HD:Users:Seb:Applescript:Shutdown.scpt" as alias)
    end if
    but it gives me an error and says "Expected end of line, etc. but found end of script."

Maybe you are looking for

  • ADF and SiteMinder not working

    Hi, I'm working on a project where the CA SiteMinder Authenticator and IdentityAsserter have been configured in a clustered environment alongside the Default Authenticator and IdentityAsserter. An ADF app using a combination basic J2EE security (isUs

  • Purchasing from a military installation Authorized Reseller

    So I bought a iMac from an authorized reseller, the local PX (military store on post), in Dec 2012. The Apple store is an hour drive and the PX is a 5 min walk, I was thinking convenience, plus the price was right. Just a couple weeks ago my mouse we

  • Can I output to my TV with big frame sizes

    Hi guys.. I always though I could store a video on the ipod as frame size 720 by 576 and when outputed to the tv, it play at this frame size. When played on my ipod, it downsizes it to fit. Is this right? Basically I just want my home video dvds, whe

  • How do i run a vi on a remote computer in a network

    on one computer(using Labview 6i)i have a vi that acquires data from "lab-pc+" board.now i want to run this vi on another computer(using labview 6i) in the network,but this computer does not have the "lab-pc+" board.how do i do this thanks shri

  • File saveAsOpen and Base64 encoding...

    In order to send the activeDocument to a web service, i need to save is as a file image, and send in an xml format. Thus, i also need to encode it in Base64. At this point everything is OK. But between the saveAs of the file, its reopening, and its e