Automator doesn't wait for app to finish launching.

During "watch me do" actions that lauch an app Automator does not wait for the app to launch. This seems like a bug since Automator does infact know it is launching an app, this shouldn't be something that should require a sleep every time.

Did you try one these actions?

Similar Messages

  • Message: "Waiting for App Store to download Mac OS X Server Add on"

    Trying to install 10.7 (from 10.6.8) on Mac Mini server 4,1. I don't use it as a server, and don't know anything about that.I get a message "Waiting for App Store to download Mac OS X Server Add on" check download at App store. There is none. Help?
    Mac Mini Server 4.1/2.66 GHz/Intel Core 2 Duo/8 GB Memory

    Ran into this myself on a new MacMini Server. I renamed the ServerVersion.plist file in /System/Library/CoreServices/. That allowed the install to start. Unfortunately it seems the installer is setup to install that at the same time. I renamed the file back before the restart and it complained on restart that the server install wasn't found.
    So I thought I would try downloading it on another computer with Lion. That didn't work either. As soon as it finished download it installed and deleted the installer.
    What a pain.
    If you can start from scratch, you should be able to rename the file, do the Lion install then after the Lion install rename it back. Then do the server install. I'm not sure what that will do to existing server configs though. There must be some reason Apple set up the Lion installer this way.
    Oh, now I can't reboot into my existing OS. It keeps rebooting into the installer. Tried the option key and both options are named something like base os. Neither boots my existing Snow Leopard. Gonna have to get an external DVD drive and install from scratch I think. Luckily this is a new server not in production, so not a big deal. I hope people with production machines read the boards and tread carefully.

  • What is meant by  waiting for app store to download mac os x server add on.

    Can't get past that step to upgrade xserver from 10.6.8 to 10.7.  I am trying to upgrade my xserver 10.6.8 to 10.7.  I have purchased the os x lion and the lion server, and they are both downloaded on the machine, but it will not let me get past the step of waiting for app store to download mac os x server add on.  Anyone know what that is or where I can get it?  App store never starts a download. tia

    Ran into this myself on a new MacMini Server. I renamed the ServerVersion.plist file in /System/Library/CoreServices/. That allowed the install to start. Unfortunately it seems the installer is setup to install that at the same time. I renamed the file back before the restart and it complained on restart that the server install wasn't found.
    So I thought I would try downloading it on another computer with Lion. That didn't work either. As soon as it finished download it installed and deleted the installer.
    What a pain.
    If you can start from scratch, you should be able to rename the file, do the Lion install then after the Lion install rename it back. Then do the server install. I'm not sure what that will do to existing server configs though. There must be some reason Apple set up the Lion installer this way.
    Oh, now I can't reboot into my existing OS. It keeps rebooting into the installer. Tried the option key and both options are named something like base os. Neither boots my existing Snow Leopard. Gonna have to get an external DVD drive and install from scratch I think. Luckily this is a new server not in production, so not a big deal. I hope people with production machines read the boards and tread carefully.

  • Why Waiting for App Store to download Mac OS X Server Add On. stopping Lion download?

    I just purchased Mac os x lion and this message is popping up : Waiting for App Store to download Mac OS X Server Add On.
    Help! How do i get it to install?

    Ran into this myself on a new MacMini Server. I renamed the ServerVersion.plist file in /System/Library/CoreServices/. That allowed the install to start. Unfortunately it seems the installer is setup to install that at the same time. I renamed the file back before the restart and it complained on restart that the server install wasn't found.
    So I thought I would try downloading it on another computer with Lion. That didn't work either. As soon as it finished download it installed and deleted the installer.
    What a pain.
    If you can start from scratch, you should be able to rename the file, do the Lion install then after the Lion install rename it back. Then do the server install. I'm not sure what that will do to existing server configs though. There must be some reason Apple set up the Lion installer this way.
    Oh, now I can't reboot into my existing OS. It keeps rebooting into the installer. Tried the option key and both options are named something like base os. Neither boots my existing Snow Leopard. Gonna have to get an external DVD drive and install from scratch I think. Luckily this is a new server not in production, so not a big deal. I hope people with production machines read the boards and tread carefully.

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • Push notifications doesn't work for apps like (fb viber , whatsapp etc ) iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    Sorry, I've forgotten the actions done.
    I've restarted the iphone, and I've recovered a previous backup.
    Thanks.

  • Delete Record Behavior doesn't wait for Submit button

    I have master / detail page set.  From the detail set there are links to delete or update a record.  When I click the link to delete the record, it goes to the   confirmation page with the correct record.  Now, when I add the delete record server behavior and a submit button, this is what happens.  As soon as I click the link to go to the delete confirm page, the record deletes and the page redirects to the page I put in the server behavior.  It doesn't show the confirm page and doesn't wait for me to hit the confirm button.  The page runs and successfully deletes the page from the DB.
    How do I get it to wait until I hit the submit button?

    You need to surround your delete query with an "If" statement that checks for a confirmation variable of some sort, then when the user clicks the confirmation link you can pass the necessary variable and the ID of the record the delete query is expecting.
    As an alternative you could use a JS alert fuction to ask the user if they are sure they want to delete the record and then allwo the delet to run after confirmation. To do this you could use code like this...
    <input type="submit" name="DELETE" value="DELETE"
       onclick="return confirm('Are you SURE you want to DELETE this record?')">
    Lawrence   *Adobe Community Expert*
    www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and CF
    www.twitter.com/LawrenceCramer

  • 10g: Cube  build performance:Waiting for tasks to finish

    I had a question related to cube build performance. We see the following in the OLAPSYS.XML_LOAD_LOG prior to completion of parallel processing. So basically the loading of records etc. happens in 2-3 mins but then the part for "running jobs and started 6 finished 5 out of 6 tasks takes almost 30-40 minutes to complete". At this point in background it invokes the xmlloader and xml_parallel_loader. Any insights as to what specifically this steps do (solving of measures etc.) ? Also what we need to modify in terms of xml tag or anything else to improve these timings?
    14:10:56 Started 6 Finished 5 out of 6 Tasks.
    14:10:56 Running Jobs: AWXML$_4361_77872. Waiting for Tasks to Finish...
    14:01:04 Started Auto Solve for Measures: TOT_AMT from Cube CR_BASE_OSUC.CUBE. 2008 Partition.
    14:01:04 Finished Load of Measures: TOT_AMT from Cube CR_BASE_OSUC.CUBE. 2008 Partition. Processed 189616 Records. Rejected 0 Records.
    Thanks,
    Sudip

    When we checked the scheduler jobs we saw xmlparallel_loader. in terms of v$session_wait we saw a db file sequential read. Following is a snapshot from the stage of finished updating partitions to starting of parallel load. Please advise.
    XML_MESSAGE
    14:49:12 Completed Build(Refresh) of AWM_CR2.CRICUBE Analytic Workspace.
    14:49:12 Finished Parallel Processing.
    14:49:10 Finished Auto Solve for Measures: TOT_AMT from Cube CR_BASE_OSUC.CUBE. 2008 Partition.
    14:40:59 Started 6 Finished 5 out of 6 Tasks.
    14:40:59 Running Jobs: AWXML$_4361_77872. Waiting for Tasks to Finish...
    14:30:58 Started 6 Finished 5 out of 6 Tasks.
    14:30:58 Running Jobs: AWXML$_4361_77872. Waiting for Tasks to Finish...
    14:20:57 Running Jobs: AWXML$_4361_77872. Waiting for Tasks to Finish...
    14:20:57 Started 6 Finished 5 out of 6 Tasks.
    14:10:56 Running Jobs: AWXML$_4361_77872. Waiting for Tasks to Finish...
    14:10:56 Started 6 Finished 5 out of 6 Tasks.
    14:01:04 Started Auto Solve for Measures: TOT_AMT from Cube CR_BASE_OSUC.CUBE. 2008 Partition.
    14:01:04 Finished Load of Measures: TOT_AMT from Cube CR_BASE_OSUC.CUBE. 2008 Partition. Processed 189616 Records. Rejected 0 Records.
    14:01:02 Finished Auto Solve for Measures: TOT_AMT from Cube CR_BASE_FIN.CUBE. 2008 Partition.
    14:01:00 Finished Load of Measures: TOT_AMT from Cube CR_BASE_FIN.CUBE. 2008 Partition. Processed 1494 Records. Rejected 0 Records.
    14:01:00 Finished Auto Solve for Measures: TOT_AMT from Cube CR_CURR1_OSUC.CUBE. 200901 Partition.
    14:01:00 Started Auto Solve for Measures: TOT_AMT from Cube CR_BASE_FIN.CUBE. 2008 Partition.
    14:01:00 Finished Auto Solve for Measures: TOT_AMT from Cube CR_CURR1_ENR.CUBE. 200901 Partition.
    14:01:00 Finished Auto Solve for Measures: TOT_AMT from Cube CR_CURR1_FIN.CUBE. 200901 Partition.
    14:01:00 Finished Auto Solve for Measures: TOT_AMT from Cube CR_BASE_ENR.CUBE. 2008 Partition.
    14:00:58 Finished Load of Measures: TOT_AMT from Cube CR_CURR1_FIN.CUBE. 200901 Partition. Processed 1494 Records. Rejected 0 Records.
    14:00:58 Started Auto Solve for Measures: TOT_AMT from Cube CR_CURR1_FIN.CUBE. 200901 Partition.
    14:00:58 Finished Load of Measures: TOT_AMT from Cube CR_BASE_ENR.CUBE. 2008 Partition. Processed 1577 Records. Rejected 0 Records.
    14:00:58 Started Load of Measures: TOT_AMT from Cube CR_CURR1_OSUC.CUBE. 200901 Partition.
    14:00:58 Finished Load of Measures: TOT_AMT from Cube CR_CURR1_OSUC.CUBE. 200901 Partition. Processed 4521 Records. Rejected 0 Records.
    14:00:58 Started Auto Solve for Measures: TOT_AMT from Cube CR_CURR1_OSUC.CUBE. 200901 Partition.
    14:00:58 Started Load of Measures: TOT_AMT from Cube CR_CURR1_FIN.CUBE. 200901 Partition.
    14:00:58 Started Load of Measures: TOT_AMT from Cube CR_BASE_ENR.CUBE. 2008 Partition.
    14:00:58 Started Auto Solve for Measures: TOT_AMT from Cube CR_CURR1_ENR.CUBE. 200901 Partition.
    14:00:58 Finished Load of Measures: TOT_AMT from Cube CR_CURR1_ENR.CUBE. 200901 Partition. Processed 1577 Records. Rejected 0 Records.
    14:00:58 Started Load of Measures: TOT_AMT from Cube CR_CURR1_ENR.CUBE. 200901 Partition.
    14:00:58 Started Auto Solve for Measures: TOT_AMT from Cube CR_BASE_ENR.CUBE. 2008 Partition.
    14:00:58 Started Load of Measures: TOT_AMT from Cube CR_BASE_FIN.CUBE. 2008 Partition.
    14:00:58 Started Load of Measures: TOT_AMT from Cube CR_BASE_OSUC.CUBE. 2008 Partition.
    14:00:57 Attached AW AWM_CR2.CRICUBE in MULTI Mode.
    14:00:57 Attached AW AWM_CR2.CRICUBE in MULTI Mode.
    14:00:57 Attached AW AWM_CR2.CRICUBE in MULTI Mode.
    14:00:57 Attached AW AWM_CR2.CRICUBE in MULTI Mode.
    14:00:57 Attached AW AWM_CR2.CRICUBE in MULTI Mode.
    14:00:57 Attached AW AWM_CR2.CRICUBE in MULTI Mode.
    14:00:55 Running Jobs: AWXML$_4361_77870, AWXML$_4361_77871, AWXML$_4361_77872, AWXML$_4361_77873.
    14:00:55 Started 4 Finished 0 out of 6 Tasks.
    14:00:55 Running Jobs: AWXML$_4361_77870, AWXML$_4361_77871, AWXML$_4361_77872, AWXML$_4361_77873, AWXML$_4361_77874.
    14:00:55 Started 6 Finished 0 out of 6 Tasks.
    14:00:55 Running Jobs: AWXML$_4361_77870, AWXML$_4361_77871, AWXML$_4361_77872, AWXML$_4361_77873, AWXML$_4361_77874, AWXML$_4361_77875.
    14:00:55 Started 6 Finished 0 out of 6 Tasks.
    14:00:55 Running Jobs: AWXML$_4361_77870, AWXML$_4361_77871, AWXML$_4361_77872, AWXML$_4361_77873, AWXML$_4361_77874, AWXML$_4361_77875. Waiting for Tasks to Finish...
    14:00:55 Running Jobs: AWXML$_4361_77870, AWXML$_4361_77871, AWXML$_4361_77872.
    14:00:55 Started 3 Finished 0 out of 6 Tasks.
    14:00:55 Running Jobs: AWXML$_4361_77870, AWXML$_4361_77871.
    14:00:55 Started 2 Finished 0 out of 6 Tasks.
    14:00:55 Running Jobs: AWXML$_4361_77870.
    14:00:55 Started 1 Finished 0 out of 6 Tasks.
    14:00:55 Starting Parallel Processing.
    14:00:55 Detached AW AWM_CR2.CRICUBE.
    14:00:55 Started 5 Finished 0 out of 6 Tasks.
    14:00:22 Finished Updating Partitions.

  • NI Scope Wait for Acquisition to Finish Obselete in 2014

    Quick Question,
    In LabVIEW 2014, the NI scope Wait for Acquisition to Finish subVI is no longer used and is obsolete apparently, can some one tell me why this is and what I can use instead with the new 2014 NI scope blocks? 
    Thanks for your help!

    Query Acquisition Status until Status is "Complete"  To avoid infiate loops (missing trigger event) you should set a Timeout for the loop
    Alternately use hardwae and rout the End of Acquisition event to something
    Jeff

  • Waiting for App Store to download Mac OS X Server Add On.

    Hi there,
    I am trying to upgrade Mac OS X Server to Mac Lion Server. I get this message when i try to install the OS X Lion
    Waiting for App Store to download Mac OS X Server Add On.
    Please help.

    the message is normal, you are requested to wait!
    check that, when "install" is pressed in App Store a new icon should go to your dock (the "install MacOSX lion" application itself).
    the upgrade is up to 4Gb and apple serves at no more than 200-400Kbps (at least to my country), so be patient.
    If you need more patience, but JUST NOOOOOWWW!!! =)
    then you can see your network activity in Utilities -> Activity Monitor -> Network
    Let us know if there is no Activity during the download!
    And also if you successfully install lion!

  • Update of jlabel does not happen when i wait for thread to finish (join())

    gurus please help.
    I have a main application which in actionevent calls a thread, that thread calls parent method to update ths status in jlabel, but when i use thread.join() to wait for process to complete, the jlabel does not get updated, please tell me how can i update the jlabel, i have to wait for thread to finish and during run i need to update the jlabel.
    thanks

    hi camickr and gurus:
    here is the code:
    notice after pressing the Process button, the label is being updated but its not working. I called the processnow() method directly and also by thread, but in thread I have to wait until it finishes using join() but still does not work, please help. Thanks
    package label;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.text.*;
    import javax.swing.border.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    public class thePanel extends JDialog {
      private DefaultTableModel tableModel = null;
      private JTable theTable = new JTable();
      private JScrollPane scrollPane = new JScrollPane();
    JPanel tPanel = new JPanel();
      private Border mainBorder;
      private BorderLayout borderLayout1 = new BorderLayout();
      private BorderLayout borderLayout2 = new BorderLayout();
      private BorderLayout borderLayout3 = new BorderLayout();
      private BorderLayout borderLayout4 = new BorderLayout();
      private JPanel statusPanel = new JPanel();
      private JPanel buttonPanel = new JPanel();
      private JPanel lowerPanel = new JPanel();
      private JLabel statusBar = new JLabel();
      private JButton processButton = new JButton("Process");
      public JButton closeButton = new JButton("Close");
      boolean image = true;
      theProcess processThread;
      Vector tableData = new Vector();
      ImageIcon Image = new ImageIcon("image.gif");
      ImageIcon oImage= new ImageIcon("oimage.gif");
      boolean errorOcurred=false;
      String statusMessage;
      public thePanel() {
        try {
         jbInit();
        } catch(Exception e) {
          e.printStackTrace();
      private void jbInit() throws Exception {
        tPanel.setPreferredSize(new Dimension(800,424));
        mainBorder = new TitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED)," ");
        statusPanel.setBorder(BorderFactory.createEtchedBorder());
        tPanel.setBorder(mainBorder);
        tPanel.setLayout(borderLayout1);
        scrollPane.getViewport().add(theTable, null);
        tPanel.add(scrollPane,  BorderLayout.CENTER);
        // status
        statusPanel.setLayout(borderLayout2);
        statusPanel.setBorder(BorderFactory.createEmptyBorder());
        statusBar.setAlignmentX((float) 0.5);
        statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
        statusBar.setMaximumSize(new Dimension(600, 21));
        statusBar.setMinimumSize(new Dimension(600, 21));
        statusBar.setPreferredSize(new Dimension(600, 21));
        statusPanel.add(statusBar, BorderLayout.SOUTH);
        // buttons
        processButton.setPreferredSize(new Dimension(70,25));
        processButton.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(ActionEvent e) {
            process_actionPerformed(e);
        closeButton.setPreferredSize(new Dimension(70,25));
        buttonPanel.setLayout(borderLayout3);
        buttonPanel.setBorder(BorderFactory.createRaisedBevelBorder());
        buttonPanel.add(processButton,BorderLayout.WEST);
        buttonPanel.add(new JPanel());
        buttonPanel.add(closeButton,BorderLayout.EAST);
        // lower panel
        lowerPanel.setLayout(borderLayout4);
        lowerPanel.setBorder(BorderFactory.createEmptyBorder());
        lowerPanel.add(statusPanel, BorderLayout.WEST);
        lowerPanel.add(buttonPanel, BorderLayout.EAST);
        tPanel.add(lowerPanel, BorderLayout.SOUTH);
        theTable.setAutoCreateColumnsFromModel(true);
        theTable.setColumnSelectionAllowed(false);
        theTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        theTable.getTableHeader().setReorderingAllowed(false);
    getContentPane().add(tPanel);pack();
        getinfo();
    show();
      private void prepairTable(){
        tableModel = new DefaultTableModel(){
                          public boolean isCellEditable(int row, int col)
                            { return false; }};
        tableModel.addColumn("text 1");
        tableModel.addColumn("text 2");
        tableModel.addColumn("text 3");
        tableModel.addColumn("text 4");
        tableModel.addColumn("text 5");
        theTable.setModel(tableModel);
      } // end method (prepairTable)
      public void refreshTable() {
        prepairTable();
      public void getinfo() {
        try {
            refreshTable();
            tableModel.addRow(new Object[]{"3465465555","0123456789",new Date(1135022905196L),"0100000","errror message","sssssss"});
            tableModel.addRow(new Object[]{"8949344562","0324354549",new Date(1134511763683L),"0166600","errror mes666e","ddddddd"});
    setStatusMessage("ready to process, select record and click Process button to process record");
          errorOcurred = false;
        } catch (Exception ex) {
          errorOcurred = true;
          ex.printStackTrace();
        } // End try
      private void process_actionPerformed(ActionEvent e) {
        try {
          if(theTable.getSelectedRows().length > 0) {
    //        processThread = null;
    //        processThread = new theProcess(this);
    //        processThread.start();
    processnow();
            System.out.println("........finished now.........");
          } else {
        } catch (Exception ex) {
          ex.printStackTrace();
      public void processnow() {
        try {
          int[] selectedRows = null;
          int totalSelected = 0;
          setStatusMessage("processing " + totalSelected + " selected records...");Thread.sleep(1500);
          selectedRows = theTable.getSelectedRows();
          totalSelected = selectedRows.length;
          for(int i = 0; i < totalSelected ; i++){
            setStatusMessage("processing " + (i+1) + " of " + totalSelected + " selected records...");
            System.out.println(".......................row: "+selectedRows);
    Thread.sleep(2500);
    System.out.println("........fins...........");
    errorOcurred = false;
    } catch (Exception ex) {
    errorOcurred = true;
    ex.printStackTrace();
    } // End try
    public void setStatusMessage(String message) {
    statusMessage=message;
    SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    if(image)
    statusBar.setIcon(Image);
    else
    statusBar.setIcon(oImage);
    statusBar.setText(statusMessage);
    statusBar.update(statusBar.getGraphics());
    public static void main(String[] args){
    new thePanel();
    } // class
    package label;
    import java.lang.Runnable;
    public class theProcess implements Runnable {
    private thePanel parent;
    public theProcess(thePanel xparent){
    parent = xparent;
    } // end constructor
    public void start() {
    try {
    Thread thisThread = new Thread(this);
    thisThread.start();
    thisThread.join();
    } catch(Exception ex) {
    ex.printStackTrace();
    } // end method (start)
    public void run(){
    try {
    parent.processnow();
    } catch (Exception ex){
    ex.printStackTrace();
    } // end try
    } // end method (run)
    } // end class

  • Quiz slide waits for Audio to finish before proceeding to next question

    Hi guys, hope you can help. I have 5 questions with audio inside narrating the question and the answer in selection. Once you you have chosend your answer then click submit button..it waits until the audio finishes then proceeds to the next question.
    hope you can help
    Thank you

    Having this action on Slide Exit of the Quiz Results slide may not work if the user clicks a button there to Review Quiz because that will mean that the last frame of the Quiz Results slide doesn't get played.
    There is an internal Captivate system variable that gets set on each question slide when it's in Review Mode, but I don't think you can read this variable via Advanced Actions.  If you could read it, you could check it and then trigger the mute action on Slide Enter of each question slide.
    UPDATE: Just thought of another possible workaround.  There's a system variable called cpInfoPrevSlide that records the last slide you visited before the current one.  You could use this in a conditional action to trigger cpCmndMute.  When the user clicks Review Quiz on the Quiz Results slide it will take them back to the first scoring object in the Quiz Scope. OnSlideEnter of this slide you need to check whether or not cpInfoPrevSlide is the Quiz Results slide, and if it is, set cpCmndMute to 1.  That should turn off the audio on the slides from then on.
    For instruction audio on the Quiz Results slide I prefer to have the audio attached to a rollover caption.  That way, the user only gets the audio if they explicitly roll over the HELP button (or whatever you call it).

  • FM JOB_CLOSE doesn't wait for pred job even when pred_jobname/jobcount set

    Dear experts,
    I need to call in sequential order two batch jobs when there is a special condition. It's not always the case, which means when there is no successor task, then the job should be executed immediately. But when there is another waiting in the queue, then
    I set the parameters pred_jobcount/pred_jobname so that the next job is executed when the previous is finished.
    I tried with the combination of several parameters, read lots of help and checked example programs, but the problem I've got: either both jobs are launched at the same time (so it does';t really wait for the predecessor to be completed sucessfully even if predjob_checkstat is set to X), or the second job is never launched at all! Here is the call of JOB_CLOSE:
    AS_PRED contains the correct information of the predecessor job (I verified against SM37 and no problem there). For the first job to be launched, I have no issue at all. However the successor is not launched at all!
    (Just to play around and to test some other parameter combination, I called the FM with strtimmed always set to X but then both jobs are launched at the same time, which is not convenient for me!).
    IF as_pred IS INITIAL.
        lv_strt_immed = 'X'.
      ELSE.
        lv_strt_immed = space..
        lv_checkstat = 'X'.
      ENDIF.
    * Plan job with direct start after predecessor job (if available)
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = me->job_count
          jobname              = me->job_name
          pred_jobcount        = as_pred-predjobcnt
          pred_jobname         = as_pred-predjob
          predjob_checkstat    = lv_checkstat
          strtimmed            = lv_strt_immed
        IMPORTING
          job_was_released     = lp_job_released
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          invalid_target       = 8
          OTHERS               = 9.
    Do you have any hint what might be wrong with the function call above?
    Many thanks for you help, best regards
    Ebru

    BP_JOB_CREATE can be used to create dependent jobs. The below sample program creates a chain of jobs. Prerequisite: the report program YTEST should exist.
    ++++++++++++++++++++++
    REPORT  yjob_chain.
    DATA cntr(3) TYPE n.
    PARAMETERS:
      job_str(10) TYPE c DEFAULT 'ABC', "default jobname template
      p_njobs TYPE i. "number of nodes in chain
    DATA jobname LIKE tbtcjob-jobname.
    DATA jobcount LIKE tbtcjob-jobcount.
    DATA pred_jobname LIKE tbtcjob-jobname.
    DATA pred_jobcount LIKE tbtcjob-jobcount.
    DATA flg_1stjob TYPE c.
    START-OF-SELECTION.
      CLEAR flg_1stjob.
      DO p_njobs TIMES.
        PERFORM create_job.
      ENDDO.
    *&      Form  create_job
    *       text
    FORM create_job.
      DATA global_job01 TYPE tbtcjob.
      DATA global_job02 TYPE tbtcjob.
      DATA steplist TYPE STANDARD TABLE OF tbtcstep.
      DATA stepline TYPE tbtcstep.
      stepline-program = 'YTEST'.
      stepline-typ = 'A'.
      stepline-authcknam = sy-uname.
      APPEND stepline TO steplist.
      cntr = cntr + 1.
      CONCATENATE job_str '-' cntr INTO jobname.
      global_job01-jobname = jobname.
      global_job01-jobclass = 'C'.
      IF flg_1stjob IS NOT INITIAL.
        global_job01-eventid = 'SAP_END_OF_JOB'.
        global_job01-eventparm = pred_jobname.
        global_job01-eventcount = pred_jobcount.
      ELSE.
        global_job01-reldate = sy-datum.
        global_job01-reltime = sy-timlo.
        global_job01-strtdate = sy-datum + 1.
        global_job01-strttime = '010000'.
      ENDIF.
      CALL FUNCTION 'BP_JOB_CREATE'
        EXPORTING
          job_cr_dialog       = 'N'
          job_cr_head_inp     = global_job01
        IMPORTING
          job_cr_head_out     = global_job02
        TABLES
          job_cr_steplist     = steplist
        EXCEPTIONS
          cant_create_job     = 1
          invalid_dialog_type = 2
          invalid_job_data    = 3
          job_create_canceled = 4
          OTHERS              = 5.
      IF sy-subrc = 0.
        pred_jobname = jobname.
        pred_jobcount = global_job02-jobcount.
        flg_1stjob = 'X'.
        WRITE:/ 'Created Job- ', 'Name: ', global_job02-jobname, 'Number: ', global_job02-jobcount.
      ELSE.
        WRITE:/ 'Error creating job'.
      ENDIF.
    ENDFORM.                    "create_job

  • Second tween does not wait for first to finish

    Having a little problem here and as far as I can tell it is
    just that the second tween starts before waiting for the first to
    finish. Basically on a click event it should slide out a scroll
    pane to the bottom of the screen, change the contentpath of the
    scroll pane, then slide it back up.
    with the code below it just slides up the new movie clip but
    does not slide out the old one, if i remove the code for the new
    clip to slide up the old one does do the slide out how I want it to
    look.
    how can I make a pause in between the two to wait.
    on (press) {
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    _root.mask._x = 54;
    _root.mask._y = 109.3;
    _root.scroll_pane.setMask(_root.mask);
    switch (_root.loaded_clip)
    case 2: var Slide_out:Tween = new Tween(_root.scroll_pane,
    "_y", Bounce.easeOut, _root.scroll_pane._y, 900, 3, true); break;
    _root.scroll_pane.contentPath = "Search_mc";
    var Slide_up:Tween = new Tween(_root.scroll_pane, "_y",
    Bounce.easeOut, 900, 109, 3, true);
    _root.loaded_clip = 1;
    }

    Its still not working with that code but I think I can muck
    around with it and figure it out, the slide out works on the old
    clip now but then the new one never shows up.
    The onMotionFinished was basically what I was looking for,
    think I can eventually figure it out from here, thanks for the
    info.

  • Make jFrame wait for jDialog to finish

    I am making a project in Netbeans i have a main Frame and some Dialog windows that open up if you press some buttons.
    when one window opens i want the main Frame script to pause and wait for it to complete.
    i have tried 3 different ways:
    questionDialog.setVisible(true);
    while (questionDialog.isVisible()) {
        try {
            Thread.sleep(200);
        } catch (Exception e) {
    } but that shows the frame of the dialog box but never loads the inside and the whole application freezes.
    java.awt.EventQueue.invokeLater(new Runnable() {
        public void run() {
            questionDialog.setVisible(true);
    while (questionDialog.isVisible()) {
        try {
            Thread.sleep(200);
        } catch (Exception e) {
    }that loaded my Dialog box but the script never waits for it to close i assume it is because it waits until "later" to show the dialog box and in that time it skips the while loop.
    Thread t = new Thread(new Runnable() {
        public void run() {
            questionDialog.setVisible(true);
            while (questionDialog.isVisible()) {
                try {
                    Thread.sleep(200);
                } catch (Exception e) {
    t.start();
    System.out.println("Dialog started");
    System.out.println(questionDialog.isVisible());
    try {
        t.join();
    } catch (Exception e) {
    }but that had the same result as the first code it waited but never showed the dialog.
    where am i going wrong how should i go about this?
    Scott.
    EDIT:
    by finish i mean become not Visible. so isVisible() will return false
    Edited by: ratcateme on Nov 20, 2008 3:02 PM

    You don't have to do anything to do that
    questionDialog.setVisible(true), this method will block the thread, it would't keep going until the questionDialog is unvisible, this is the mistake of the way 1 and way 3.
    and the way 2: the while block will be execute before the questionDialog.setVisible(true) is execute, so questionDialog.isVisible() will return false
    my en is very poor, good luck!

Maybe you are looking for

  • Did You Know?

    Hi all, I just made this observation and wanted to share it with all you guys. From SAP BASIS Release 700, the SAP Logon password field has become 12 characters in length. Moreover, it is now case sensitive. If you go to transaction SU01 in the chang

  • Problem in Creating the Product Using COM_PRODUCT_MAINTAIN_MULT_API

    Dear CRMExperts,          I am working in SAP CRM 5.0 version.I want to create the Product Using the Function Module "COM_PRODUCT_MAINTAIN_MULT_API".For this i have gone through the SAP Note 810153.I copied the Report Program from that note and i dev

  • Transfer from icloud to my itunes

    Hi I have a lot of movies stored in my cloud they are a mixture of purhased and redeemed through purchasing blu rays and downloading through apple itunes redemption. However I can see my entire collection on icloud but not on my itunes. I want to cop

  • Savings play counts/dates added?

    Hi, I'm going through the process of re-installing Windows XP on my computer, which means I'll have to back up all of my music on CD's, but I really want to keep my play counts and my dates added for my music when I add it back to the computer...is t

  • Using applet to upload data?

    I have a php site running with a mysql backend. Many of the site users will also be running an app on their local machines with an access db. I want to collect a lot of the same data on my site that the users already input into their app and I don't