Make automator pause until previous action completes before starting next a

I'm trying to use Automator to loop through a series of presentations and movies we have, without any user intervention (it's for a project in a reception area of our company). I start with the slideshow and then would like to play the movie -- but I'd like this to happen after the slideshow is completed and not as soon as the slideshow starts. I could try to calculate the time the slideshow will need and place a pause there but this will complicating things (I'd like to be able to tell people to place movies to be displayed in this folder and slideshows in this folder without any reconfiguring of Automator being necessary)?
Is this possible?
Thanks in advance,
David

Solved it! For anyone else with similar issues, I used a quick timer to pause the stage for 1/10th of a second before moving on using the following code;
-- wait for a split second (so user can see blood splatter before next action executes!!)
    startTimer
    repeat while the timer < 0.1*60
      updateStage
    end repeat
Sorted

Similar Messages

  • Can I force html project to download completely before starting

    ver 7
    I can't use captivate if it generates tutorials that stop every few seconds to download.  I could live with a long wait before starting playback to download all files. Is this possible?

    What you're talking about here is not necessarily Captivate's fault.  It's more likely due to the design of your course content and the limitations of your target audience bandwidth.
    So how have you designed your content?
    How many megabytes is your module?
    What is the effective end-user bandwidth of your target audience?
    What output format are you using (HTM/SWF or HTML5)?
    If you can answer these questions, we may be able to help you.

  • How to make VI wait until data is saved before it can open and read data

    I have developed two VIs for continuous monitoring. First VI is for acquiring raw strain data and saving it into a folder, let's say, every 10 minutes or every 100 Mbyte of data (for example, after monitoring for an hour, the folder will have 6 files, each of which contains 10 minutes of data). Second VI is for opening/reading/processing data files collected by the first VI.   Right now, this second VI can handle only one file at a time. What I am trying to do is to have this second VI open the files one after another automatically. Also (here is what I think will be difficult part), I want the second VI recognize that a file is saved by the first VI before opening it (i.e., wait until the first 10 minutes of data file is saved by first VI, open and process this first data, wait until the second 10 minutes of data file is saved by first VI, open this second file and process it, wait until the third 10 minutes of data file is saved by first VI, open and process it........). Any help or comments would be appreciated.
    Thanks in advance for your help.
    Brdg.

    Basically, If your purpose is to keep one thread from opening the file until the DAQ thread has finished with it, then the queue is what I would use.
    All functions are on the ADVANCED | SYNCHRONIZATION | QUEUE palette.
    Use the OBTAIN QUEUE to create the queue. Set the DATA TYPE to a PATH constant. This creates a queue of paths.
    Pass the QUEUE REFNUM to both the DAQ VI, and the PROCESSING vi.
    In the DAQ VI, when you write a file, take the PATH from the CLOSE FILE function and use ENQUEUE ELEMENT to put it into the queue (use the refnum you passed in).
    In the processing thread, use DEQUEUE ELEMENT to fetch the path from the queue. You probably should use a timeout value of 1000 mSec or so. If you timed out, go check your PROGRAM RUNNING flag (so you can stop without waiting forever on the queue), and if you're not stopped, try again.
    If the DEQUEUE ELEMENT returns WITHOUT a timeout, then open the path it gives you - the file is guaranteed to be closed, since you closed it before you enqueued it.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • Fundamental questions before starting next project

    Last project I put together received scathing criticism - and I have to say that I did not put any effort at all to clean the code up or optimize it. The reason is I started with small projects and within couple of months it just grew out of hand with requirements matrix gradually increasing.
    So this time around I want to take advice from you guys on architecture issues before I jump into programming. The two fundamental questions:
    1) I always thought that SubVi is like a method in C++. If I need to use that code multiple times, then I better put it in a SubVi. But after going through some of the posts on this forum it seems that people use SubVis to reduce # of wires,blocks,etc. on the main Vi too. Is this a standard practice?
    2) If I want to have more than 1 VI in the software, what is the best way to send data from one VI to the other VI? SubVI has input and output wires. So it is easy. But VIs do not. Basically I want to have Main VI where I get all the information from the use through a front panel and then go off doing my data acquisition. I want to keep the Main VI as clean as possible. There will be some operations which will need only 1 input and will have only 1 output. But this operation will be used only once in the who operation. So can I have this operation all in a VI and then call it in the Main VI?
    3) If I have 3 different VIs in my application, and I define something (say an array) in the Main VI or for that matter second_VI.vi in my application, will that be available in the third_VI.vi ?
    Thanks in advance.

    labview_beginner wrote:
    1) I always thought that SubVi is like a method in C++. If I need to use that code multiple times, then I better put it in a SubVi. But after going through some of the posts on this forum it seems that people use SubVis to reduce # of wires,blocks,etc. on the main Vi too. Is this a standard practice?
    You could call it similar to a method.  I would say a subroutine or function is a better terminology since the term method is more applicable to object oriented based programming.  Basically any way to encapsulate a portion of code, particularly if you use it over and over.  It might have input and/or outputs, or neither.
    2) If I want to have more than 1 VI in the software, what is the best way to send data from one VI to the other VI? SubVI has input and output wires. So it is easy. But VIs do not. Basically I want to have Main VI where I get all the information from the use through a front panel and then go off doing my data acquisition. I want to keep the Main VI as clean as possible. There will be some operations which will need only 1 input and will have only 1 output. But this operation will be used only once in the who operation. So can I have this operation all in a VI and then call it in the Main VI?
    There is no difference between a VI and a subVI other than semantics.  Both are completely independent excecutable portions of code.  Your main or top-level VI can have inputs and outputs as well.  You could execute it stand alone, or it could become a subVI of an even higher portion of code in your hierarchy.  The only difference between the two is that a subVI is just a term to distinguish it as being a portion of a higher level of code.  There are multiple ways of passing data between VI's.  One is wires.  When a subVI ends, the data on its indicator that is connected to the panel is available to travel down the wire to another portion of code.  Another is global or shared variables which stores data to be used by multiple locations.  Another is a function global variable, a LV2 style variable, or action engine.  All of these use special characteristics of uninitialized shift registers to store data between calls of that subVI.  Other methods of sharing data are on the Synchronization pallette such as queues and notifiers to store and pass data.
    Using a subVI, even it used in only 1 location can help keep a portion of your block diagram clear.  It gives you the ability to hide some details such as a complicated algorithm.  You can write an algorithm as a subVI and it gives you the ability to test the inputs and outpus as a standalone.  Once you have that. You can drop it in and use it even if it is only at 1 location.  If you need to change it, you can modify the subVI and test it without risking the corruption of the rest of your main VI
    3) If I have 3 different VIs in my application, and I define something (say an array) in the Main VI or for that matter second_VI.vi in my application, will that be available in the third_VI.vi ?
    Possibly, it all depends on which of the methods listed in number 2 you would like to use.
    Thanks in advance.

  • How prevent movie from loading completely before playing?

    Hi,
    how do I prevent an swf from loading completely before
    starting to play in the browser? When simulating a download in the
    Flash application, several preload stages work perfectly, but not
    in the browser. Preload stages don't appear, instead it takes ages
    for the 3.5 mb file to completely load before displaying the first
    frame of the movie.
    I have tried inversing the load order in export settings and
    different flash versions, but just can't get it to work.
    Can someone help? Thank you!

    hi kglad
    I thought it should be that way; the point is that I don't
    want to add code that loads the entire movie before starting to
    play the first frame, but only a certain number of frames (i.e. 11
    out of 35, for example). I'm trying to do this with this code in
    the first frame:
    ifFrameLoaded (11) {
    gotoAndPlay("start");
    in the simulation, it works perfectly, but when uploading the
    movie and viewing it in html, the entire thing loads, and the
    preloader doesn't appear.
    Many thanks for your help.

  • Why is the green screen visible on the last frame before the next clip?

    Hey guys!
    Maybe I'm ******** but i m having trouble here. I have "key-ed" a bunch of clips and successfully removed the green screen from them. But when placed in the timeline, the green screen of the clip reappears for the single frame before a next clip starts.
    I've re-rendered and chopped ends off but the green screen keeps appearing in the last frame of any keyed clip that is about to cut to a different clip.
    Where am i going wrong?

    Hey! I tried both suggestions but even the self contained quicktime file has the green screen frames popping up.
    I just dont get it, it's infuriating!
    I used "chroma keyer" effect on the clip, only enable "key on saturation", the green screen disappears, I place clip on V2 and image on V1. Image is then visible where the green screen was. All is well until the last frame before a next clip because on that ast frame the green screen appears again. Where am I going wrong? Please help!

  • Calling an applescript inside a Javascript, waiting for it to complete before moving on.

    I've got a handly little applescript compiled as an app that performs an Adobe Illustrator action which exports the current file's artboard #1 to a specific location at 300ppi. I can even call it from a javascript... which is great because I want a javascript that will loop x times, changing text and exporting on each each loop. But, each loop will export a file with the same name... not a problem, I'll rename the file after each loop, and javascript will wait patiently for me the export to complete before moving on to the next step, right? Wrong! Javascript just keeps moving through the script.
    So, how do I get Javascript to wait until the AppleScript completes the export? I can't have it wait a specific amount of time...export might take between 2 and 180 seconds.
    My ideas:
    1) can the applescript fire some sort of event letting Javascript know to move on?
    2) Is there a Javascript equivalent to AppleScripts "do javavscript " command, which would allow me to move the Applescript code into my core javascript?
    3) I could kludge a stopwatch on the first loop, checking every 10 milliseconds to see if the exported jpg file has been written... then using that as a baseline timer to pause later loops (not great, because the file will exist while AI writes it, and JS may rename it and try to export the second loop before the first is done).
    for (z =0; z<copyArray.length; z++) {
    var jpgExt = "-01.jpg";
    var newExt = ([z] + jpgExt);
    var exportASfile = File('/Applications/Adobe Illustrator CS5.1/Presets.localized/en_US/Scripts/VCS_Specialty Scripts/StandardExport.app');
    exportASfile.execute();  // export the file
    renamedFile = new File(exportFile); //variable exportFile is a reference to the jpg being written by the export
    renamedFile.rename (exportFile.name.replace(jpgExt, newExt)   ); // replaces part of the filename with a new

    I'd love to stay in one language, but since we're stuck on CS5 here, I have to make do.
    My task for the script:
    1) pop up a window to collect: 1a) number of copies, 1b) custom text, 1c) choice of three radio buttons -- I can't figure out how to do this in AS besides popping up three separate dialogs, I have it working great in JS
    2) loop step 1, write a named text frame with an array value containing a concatenation of 1a, 1b, 1c  -- pretty easy in either
    3) loop step 2, export the file at a higher than 72ppi resolution with artboard -- currently controlled by an action, can't be done programmatically in either AS or JS using CS5
    4) loop step 3, rename the file to match what was written to the text frame -- again, pretty easy in either
    In CS5, neither JS or AS have the ability to control the resolution of a jpg when exporting.... just the scale. So an action is required.
    My window JS has some of the basic edittext, statictext, buttons, panels elements, not too tricky:
    var win = new Window ("dialog","Cover Copy Builder");
        win.orientation = "column";
        win.add ("statictext", undefined, "Copy and Format Instructions");
        var input = win.add('panel', [0,0,320,300],  undefined, {borderless:true} );
        win.add ("statictext", undefined, "Output Summary");
    etc.
    Is there an AS equivalent to this sort of window building construction?

  • Automator - i want multiple actions at once

    Hello fellas,
    i'm trying to write a little automator-action, that opens me 8x the terminal and writes yes > /dev/null.
    I'm pretty stuck in the feeling, automator can handle actions only one-after-another and not multiple-at-a-time.
    Could anybody help me out here please?

    Automator Workflows "flow" from one action to another. The input for an action comes from all the previous actions, so it must wait for each action to complete before proceeding on.
    You could try setting each action to ignore the output of the previous action, but I don't know if it is smart enough to know it doesn't need to wait since the previous action output is ignored. However, it is likely programmed to wait as each previous action may be setting up some state which the following actions might expect.

  • Disable Next Button Until Slide is Completely Viewed

    I need the slides to automatically advance, be able to go back, but not go to next unless it has already been viewed for the entire slide. So my thinking was only show a playbar if the user goes back, but then if I just have the back button it can't advance. If I put the next button at the end of the timeline it messes with my animations are no longer in sync.
    1. I wish there were an ability to disable the next button in the play bar until the slide is over.
    2. I tried making a variable v_view set it to 0
    Created an action called PlayBarVisible as a conditional action
    where if v_view is equal to 1
    then assign cpCmndShowPlayBar with 1
    else assign cpCmndShowPlayBar with 0
    Set the slide On Enter to Execute Advanced Action to PlayBarVisible
    On Exit to v_view to 1
    So this works with one slide, the next one automatically has a play bar.
    So, how can I get the slide to only allow next if the slide has been viewed, but if it has been viewed then the next is always available? Again, it has to not mess with my animations.

    I have a widget on my website that will pause every slide 5 frames before the end-of-slide. I could easily add some code to hide the playbar and keep progress to show the playbar if the slide has been completed.
    You could contact me through our website www.tlcmediadesign.com and we could work something out.

  • How to get out of pause until date if target is achieved?

    Hi,
    We are developing a SharePoint Designer 2013 platform workflow on Office 365 SharePoint Online. Following is what we are trying to achieve:
    Document Library workflow.
    There are 3 users involved e.g. UserA, UserB and UserC.
    There are 2 content types e.g. Notification Letter and Statement Method.
    As soon as UserA uploads/adds a document the workflow kicks-off.
    An email is sent to UserB where he verifies it and select a dropdown verification complete.
    This workflow also kicks-off on item change hence it creates a task process and assign UserC a task.
    If UserC rejects the task, the email is sent to UserB and he has to resubmit.
    However if UserC approves it then it goes to the approval folder.
    In the above process we need to have reminders/notifications to UserC. There are 3 reminders. As soon as the document is added the document should be sent to the approval folder within 30 days (cut off) from the item creation date. First reminder 7
    days before the cut off date. Second reminder 2 days before the cut off date. Finally the last reminder on the cut off date itself.
    If I set Pause Until Duration event then the workflow as expected doesn't do anything till the date. How to break the Pause Until Duration if the UserC approves the task within the date range before cut off date.
    I was thinking of loop but couldn't figure out how to achieve it in a better way.
    Thank you
    Tanzim
    Tanzim Akhtar

    http://blog.qumsieh.ca/2012/01/27/sharepoint-designer-workflow-pause-until-date-change/
    Here the user break the pause duration using code. if you don't want to code means just split the workflow into two
    One for managing approval
    One for managing Email
    So that the pause state in email workflow will not affect the approval workflow.
    Also in Email workflow we have check the approval and moved status so it will not send the remainder mail to approved request
    Ravin Singh D

  • Parent Request Completes before child

    Hi All,
    I have created a UNIX shell script that calls a sql script and it submits 3 concurrent request. The UNIX shell completes before the 3 concurrent request and i can not move my log files in the specific folder as they are not created till now.
    Is there a way, that i can make the UNIX shell script as pending until the 3 concurrent request gets over?
    I thought of creating another shell script that will be called after the 3 concurrent requests but i think there should be a better way of doing this.
    Any idea would be really appreciated.....
    TX
    K

    the only way to be certain that the database save is complete, is to return from that call.
    So it could return a page with an onload event which closed the child window, and refreshed the parent pane.
    ie
    rather than doing
    save()
    reloadParent()
    close()do
    save()
    (save call returns with html page to child window)
    (onload event of this form: )
    reloadParent();
    close();

  • MTM Is possible make an exploration test with action recording on lab center machine (using hyper-v)?

    Hi everybody.
    I am getting crazy with Lab center. I cant record an exploration test if i try to make it on Lab center's remote machine.
    I have follow msdn help. And if i make it on local machine it works fine. 
    Test agent is configured correctly like "Interactive process".
    On lab center, my Lab status is "Ready".
    Connecting with lab center to target machine, Test Agent status is "Online" before run exploration test.
    While exploration test is running, Test Agent status is  "Running Tests".
    But when I make click on "Create Test case" there isn't any information of desktop click events from target machine.
    By other hand, when i finish there are attachments file with info from target machine. As you can see on  the flowing pick:
    And this make me come here to answers: Is possible make an exploration test with action recording on lab center machine (using hyper-v)? 

    Hi everybody.
    I am getting crazy with Lab center. I cant record an exploration test if i try to make it on Lab center's remote machine. I am using standard
    lab environment.
    I have follow msdn help. And if i make it on local machine it works fine. 
    Test agent is configured correctly like "Interactive process".
    On lab center, my Lab status is "Ready".
    Connecting with lab center to target machine, Test Agent status is "Online" before run exploration test.
    While exploration test is running, Test Agent status is  "Running Tests".
    But when I make click on "Create Test case" there isn't any information of desktop click events from target machine.
    By other hand, when i finish there are attachments file with info from target machine. As you can see on  the flowing pick:  
    (sorry i cant upload the pick until Microsoft verify my account)
    And this make me come here to answers: Is possible make an exploration test with action recording on lab center machine (using hyper-v)? 

  • Dreamweaver CC October 2014 release - make sure you have plenty of time before updating

    The October 2014 release of Dreamweaver CC has a lot of changes, most of which are improvements on the previous release. However, it also changes the default workspaces and the way that Split view works. Other UI changes include combining the Design and Live View buttons into a single button, and moving the Document Title field to the Property inspector.
    Because this version has been completely rebuilt to make it 64-bit on both Mac and Windows, migrating extensions could take several minutes.
    Make sure you have plenty of time before you hit the Update button in the Creative Cloud application manager. It takes a little while to get used to some of the changes.

    Thanks for the heads up, David. I agree.
    This was precisely why I had a detailed post today Dreamweaver October 2014 release is now live! Read this first. on this release.

  • Code to wait until one event is finished before starting another?

    Hi all,
    Coding isn't my strong point but I have a basic understanding of how functions etc work.
    I've been learning about referencing symbol timelines with the awesome tutorial from the Adobe Blog, included below.
    http://blogs.adobe.com/edge/2012/07/18/tutorial-leveraging-independent-symbol-timelines/
    I've been able to get my symbol to play from a certain part of it's timeline depending on whether the mouse is rolling in or out but now I'm a little bit stuck.
    The mouseover event triggers an animation and the mouseout triggers another animation that starts from the same frame that the mouseover animation ends with.
    The problem is this. If I move the mouse quickly over the buttons, the first animation will play halfway through and when the mouseout triggers the second animation, the first animation will seemingly "skip" to the ending and move straight to the first frame of the second animation.
    I know enough to code it so that the second animation will check if the first animation is still playing before starting by using an else/if statement. Using this method I only know how to skip the second animation if the first is playing but that isn't really what I'm looking to do.
    Here comes the question; can anyone explain to me how to create a wait loop in Edge Animate?
    When I say wait loop, I am talking about code that will check a variable and perform an action if the variable is true OR loop back to the start of the function if the variable is false (to check the variable again).
    The behavior I am trying to achieve is somewhat like queuing the second animation so that it will "wait" until the first animation is played before beginning the second animation.
    Any ideas?

    Ok Mr Doon,
    Clearly, I read to quickly
    The behavior I am trying to achieve is somewhat like queuing the second animation so that it will "wait" until the first animation is played before beginning the second animation.
    So, say the anima symbol is a 2s animation and has autoPlay set to false. There are two instances anima-1 and anima-2 on stage.
    The event handler anima-1.mouseover starts the first animation :
    We select Stage in the code panel and place before the first Symbol.bind… the declaration for two symbol (stage) variables :
    Inside the anima timeline, click the top left bullet+curly brackets icon and select complete : when the animation is complete, we set the boolean variable (what is not very clean here is that this is done for the two instances anima-1 and anima-2) :
    The event handler anima-2.mouseover starts the wait loop, by calling a function defined at the stage level :
    More precisely, the function is defined in the document.compositionready handler. It defines (and stores in variable waitLoop in order to be able to remove when finished) an interval, that is the repeated call, every 10 ms, of an inner anonymous function.
    The latter simply tests the boolean and when its true
    - starts the second animation ;
    - clears the interval.
    You can download the example here : https://www.box.com/s/6yxjfmrqd0b5zbhmd3lx
    You can hover over the left rounded rectangle, and immediately after over the second one. Subsequent rollovers are not handled, but it gives you a possible logic to adapt to your particuliar problem (that I still do not understand completely : it's hard without seeing).
    Gil

  • New "Photos" is a piece of JUNK!  How do I get my image numbers to display as imported like they used to? Can no longer make Events or view old events as before either.

    How do I get my image numbers to display as imported like they used to? Can no longer make Events or view old events as before either.
    If this is replacing Aperture and previous iPhoto it is USELESS...WAY fewer options for editing available. New "Photos" is a piece of JUNK!

    Hi.
    I have just migrated my library from Aperture to photos. All seems to have gone smoothly, except for one thing. All of my photos are 'untitled', whereas in both Aperture, and previously iPhoto, the filename was used for the title. If I hit CMD+I and get info, the title is still there as the filename, as I use the filename for all titles.
    Is there a way to batch copy all filenames as photo titles, this was done automatically in Aperture and iPhoto, as when photos were imported the filename was used automatically.
    Any help appreciated.
    Thanks.

Maybe you are looking for

  • HT1277 Can I sync a smart email folder to my wife's email app on our Mac?

    I set up a smart folder in Mail to hold all iTunes receipts and would like it to automatically sync to my wife's account so she can have copies of them. Is this possible to set up automatically or do I have to forward the receipts each time?

  • Cost Estimate error is coming at the time of billing document release

    Dear All, Hi, I am facing one problem that is whenever i am releasing the billing document system gives the error message. Error : No standard cost estimate found for this material 164001001. Here problem is some finished products we have a cost run

  • Action to convert 4-colour black

    Hi I looking for a smarter way - an action - to convert an Illustrator file with various combinations of 4 colour black to 100% K (black). It could be that the document has a lot of different combinations of black (fx. 86,5C, 89,6M, 88,9Y, 87,4K and

  • Screen exit for PIR

    Hi experts, Is there any screen exit for MD61. I need to insert two columns in MD61 transaction. Can anybody help me? Naren

  • If user exits an exam in the middle, the next time thru the answers are still there.

    I am using Captivate 3.  Quizes have 2 attempts, if user exits in the middle of the exam, the next time thru the answers are still there from the last time.  This only happens if user leaves the exam without completing it.  I've had this issue out on