Automator: how to stop a sequence of actions?

Hi, i have 4 sequence of actions
find Finder Items - Move Finder Items
find Finder Items - Move Finder Items    (in folder 1)
find Finder Items - Move Finder Items    (in folder 2)
find Finder Items - Move Finder Items    (in folder 3)
There is one item that matches the first sequence of actions but the problem is that the script continues and the file is moved to "folder 3".
How can i stop the script when the first criteria is matched?

Hi,
One way could be to use 2 regexp_like :SQL> with sampledata as (
  2  select 'RBA' v from dual
  3  union all select 'RBAM' v from dual
  4  union all select 'RBAMS' v from dual
  5  union all select 'RBAS' v from dual
  6  union all select 'RBASM' v from dual
  7  union all select 'RBATEST' v from dual
  8  union all select 'RB' v from dual
  9  union all select 'MSRBA' v from dual
10  )
11  select v
12  from sampledata
13  where regexp_like(v,'^RBA')
14* and not regexp_like(v,'^RBAMS');
V
RBA
RBAM
RBAS
RBASM
RBATESTI'm still trying to see how to do both condition at once...
Gotcha
SQL> with sampledata as (
  2  select 'RBA' v from dual
  3  union all select 'RBAM' v from dual
  4  union all select 'RBAMS' v from dual
  5  union all select 'RBAS' v from dual
  6  union all select 'RBASM' v from dual
  7  union all select 'RBATEST' v from dual
  8  union all select 'RB' v from dual
  9  union all select 'MSRBA' v from dual
10  )
11  select v
12  from sampledata
13* where regexp_like(v,'^RBA([^M]|M[^S])'):
V
RBAS
RBASM
RBATESTArg !..... Not good.
Still trying...

Similar Messages

  • How to stop Add or Update  action  using  StatusBar  message ?

    Hi all ,
        I want to add validation using StatusbarMessage  and validation will be stop Add/Update Action .I have use
           1) B1Connections.theAppl.SetStatusBarMessage("Please select Product Type ! ", BoMessageTime.bmt_Medium, true);
           2) B1Connections.theAppl.StatusBar.SetText("Please select Product Type ! ", BoMessageTime.bmt_Medium, BoStatusBarMessageType.smt_Error);
           3) B1Connections.theAppl.StatusBar.CreateProgressBar("Please specify the SKU ! ", 0, true);
           all  process are show error message but Add/Update Action successfully . i want to stop add or update  action  .please help any one  how it is possible  using statusbar message?
    thanks & regards
       Surajit

    Hi,
    You Can set BubbleEvent=false
    Try This.....
    If pVal.FormType = "65211" And pVal.ItemUID = "1" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.BeforeAction = True Then
                Try
                    Dim oedit As SAPbouiCOM.EditText
                    oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                    oedit = oform.Items.Item("12").Specific
                    If oedit.Value = "" Then
                        sbo_application.MessageBox("Field Should Not Be Blank")
                        BubbleEvent = False
                        Exit Try
                    End If
                Catch ex As Exception
                    sbo_application.MessageBox(ex.Message)
                End Try
            End If
    Thanks
    Shafi

  • How to stop animation sequence at a frame number?

    Hi all
    I've just recently started learning Flash (I have CS4) and I
    have a small simple animated sequence at the start which then leads
    to the main home page.
    now the animation part works fine but when I test it it just
    runs right through - it doesn't stop at my main page which then the
    viewer will click a button to go to a different part of the site
    etc.
    I've tried adding a stop actionscript but I'm sure I'm not
    doing it right! how do I refer the stop to the animation... do I
    have to enter the frame number I want it stopped at etc?
    if anyone can make any suggestions or point me in the
    direction of a tutorial (or the correct wording for me to do a
    search myself) then I would be very grateful!
    Thank you for your time :-)

    Thanks.. I manage to miss off the semi-colon and put the
    double dotted one (I've just gone blank on it's name) *sigh*
    I always manage to miss something 'small' off and then takes
    forever to spot it!
    thanks for your help.

  • How to stop validation for Back action in ADF

    Hi,
    In ADF form, I have a 'Back' button which should just go back to the previous page. But when I select 'Back' button, the form is validated again and I do get validation error messages.
    How can I stop validation for these type of simple actions?
    Please do let me know.
    Thanks,
    priya.S

    You might find this blog post useful in finding a generic solution to your problem:
    http://one-size-doesnt-fit-all.blogspot.com/2007/02/jdeveloper-and-art-of-rollback.html
    CM.

  • URGENT: Sequence of action execution

    Hi,
    I have a very urgent query. How to control the sequence of actions definations to be executed. There is a sort field when we define the action profile but that is only for display.
    Thanks
    Adi

    Hello Aditya,
    Please refer the link and see if this helps.
    [Actions|http://help.sap.com/saphelp_crm40/helpdata/en/33/9e0b3bad9bcd5ae10000000a114084/frameset.htm]
    Please assign some points.
    regards,
    Muralidhar Prasad Chatna

  • How to Stop the method Action When an Exception Occur in other Method

    Hi All ,
    public void action( Event clientEvent) {
    startAction();
    JOptionPane.showMessageDialog(null, getDocumnetId());
    how to Stop the method action ( "action" ) if an exception occur in the method ("startAction")
    ( if the exception occur we doesn't need to show the JOption Message )

    Hi,
    try FacesContext.getCurrentInstance().renderResponse();
    Frank

  • How to stop the charges incurred to my account based on the action of itunes storing U2's newest album into my iPhone that I personally did not pay for?

    How to stop the charges incurred to my account based on the action of itunes storing U2's newest album into my iPhone that I personally did not pay for?

    There was no charge. The album was free.

  • How can I create Droplets using Actions with several Stops?

    My Droplets (using Actions but with several Stops) work very nicely when using a single image source. However when using multiple images thing start to go crazy.
    At the first stop on the first image a pop-up emerges asking me to continue to the next image or stop. If I select stop I can continue with the Action for this first image and complete the Action on that first photo.
    If I select continue it halts the action on that photo at the first stop then opens the 2nd image and repeats the action to the first stop on the next photo then the pop-up appears again and the cycle repeats.
    How can I create Droplets using Actions with several Stops?

    I don't believe this is possible when starting from Java. I think you need to start with a WSDL to get this to work. I am curious as to why having multiple WSDLs is an issue, would you care to eloborate.
    Thanks

  • How to stop the animation at a certain frame using action script 3.0 .

    How to stop on a frame to stop the animtion using adobe flash cc.

    Either put a stop(); command in the desired frame of the animation's timeline, or have an ENTER_FRAME event listener working who's event handler function constantly check the currentFrame value of the animation and issues an animation.stop(); command when the desired frame is reached

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

  • How to stop while loop

    I can't figure out how to stop a while loop in my labview program. 
    When the user presses the Run arrow in the toolbar I want my program to begin reading the serial port for GPS messages.  These messages should be displayed on the front panel.  Currently I have this read/display in a while loop.  The program is also waiting for an extrenal trigger.  When that trigger arrives, I want to grab the current string from the serial port and save it and continue reading and displaying the serial/gps string.  This trigger starts the other parts of the program- signal generation, recording, and saving data which need to run concurrently with the serial/gps reading/displaying.  Once the AO and AI have finished and the data have been written to disk, I want the program to stop.  The serial/gps messages should be updating this whole time.  Only when the data are written to disk should the whole program end.  This whole sequence of events should only be done once when the user preses the Run arrow. 
    So far I'm unable to pluck the serial string when the trigger comes in if I'm watching the serial port all the time.  The program also doesn't stop when it finishes writing to disk because the read serial while loop is still running.  I don't want to use a front panel stop button.  The program should stop itself when the data havebeen written. 
    I'm really stumped on this one but I'm new to LabVIEW so I'm sure there's an easy solution to this. 
    Thanks for any and all help. 
    Attachments:
    SPoleLakeChirp.vi ‏199 KB

    Dennis and altenbach-  Thank you both for your patience. 
    I was trying to do just what Dennis suggested-"As I said, setting a local variable is one way." even before posting to this forum, but I couldn't get my local variables to reflect changes made elsewhere in the program and I wasn't able to wire from them because they were writes.  The critical part I was missing was how to change a local variable from a write to a read.  It was staring me in the face the whole time- just right click.  When I finally found it, my problems were solved. 
    altenbach- thank's for putting the figures together.  I do understand the logic and wiring there, but I was really trying to avoid stop buttons.  The program should be smart enough to figure out when to stop.  And using local variables turns out to be one way of solving this.  I still have some clean up to do, but I've included my current working version just so you can see how I implimented your suggestions.  There's still a lot of clean up to be done, but I'm delighted to be able to watch the serial/gps messages until I'm done reading in data.  At first I had this stop variable set in the final sequence frame.  That didn't work because I wasn't getting to the final frame because the loop wasn't finishing.  Once I placed the stop variable in the same frame as the while loop it began stopping when it should. 
    If you have other comments/critiques about the wiring diagram I'm earger to hear them.  I'm considering the structure finished, however.  It still needs cleaning up and commenting, but I'm satisfied with the functionality. 
    Thanks,
    Peter
    Attachments:
    SPoleLakeChirp.vi ‏210 KB

  • How to stop while loop when a specified function is terminated?

    I want to make a program which has 2 thread, one of which is to control some devices, and the other is to measure outputs of the devices.
    To do that, I should make a 2 independent loops, but there comes a problem here.
    I want to terminate 2 loops at the same time, but it's difficult for me to do that, because when I try to notify upper sequence's termination to lower loop by some value change, they have some dependency.
    That's why I need your help. I want to know how to stop lower loop when the upper sequence's termination keeping their independency.
    Please let me know. Thank you.
    Attachments:
    help.JPG ‏200 KB

    Is the upper loop commanding the lower loop at all?  I would think you would have some type of communication between the loops.  Just use that communication to send a stop command.  Or the next best way is to just simply use a notifier.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to stop system from doing calculation of pricing in sales order?

    Recently I am working on how to stop consecutive entries of identical condition type in pricing of a sales order. For this I have written a custom routine to track multiple identical condition type. If it gets multiple condition type then system shows error message. But after this while pressing back button of the SAP Screen System is doing the corresponding calculations for all the condition types. I want to stop this.
    Is there any way to do so that I can stop the system form doing the calculation. Or is there any way to disable back button of the SAP Screen. Basically I want to stop a user from posting a sales order if he enters multiple identical condition type in a sales order.

    Transaction VOK0
    If you go to Condition Type -> Access Sequences and highlight the relevant access sequence and navigate to folder "Accesses" there should be a column which indicates "Exclusive". This check box should be active. This will prevent duplicate condition types.

  • External Hard Drives - how to stop LR3.3 wanting to import.

    I have 3 external hard drives which I use for backing up pictures and other folders. Whenever I plug one of them in, LR opens the Import dialog, even though I have auto import switched off. It's not serious, but it is annoying! Can anyone tell me how to stop it doing this?

    Try the following:
    In <My Computer> right-click the external drive, in the dialog box click on <Properties>, and on the <Autoplay> tab. Select <Pictures> and Make <Select an Action to perform> active by clicking on the radio button. Scroll down the list and make sure that <LR import photos> is NOT selected. Or select <Take no action>.
    WW

  • I have been sampling new imported drum loops. And if I adjust region to song or time strecth it updates the audio file in the library. How to stop this? I lost the original setting to one loop. automatically doing it ??

    I have been sampling new imported drum loops. And if I adjust region to song or time strecth it updates the audio file in the library. How to stop this? I lost the original setting to one loop. automatically doing it ??

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

Maybe you are looking for

  • Query on Materialized View Logs

    We need a denormalised data step-up, we decided on implementing Materialized Views and started working on them. I have created Materialized View log on a table using below mentioned syntax CREATE MATERIALIZED VIEW LOG ON <table_name> WITH ROWID I hav

  • Add to Address Book not working in mail.app

    On all my computers : MacBook Air and Mac Mini, the Add to Address Book (command + Shift + Y) is not working in Mail.app. It doesn't add the email and name in the Address Book (now called Contact). Is this a broken link ? Best. StG

  • Made new html page, I cannot find an pactual font size

    Doing DW in a book, Lesson 1 made a html page "two col fixed header footer" There is a text size, an h1, h2 & <p> text size and it is 100% in the body, and 100% in the header, and after lesson #1, it is 90% in the main content, however of what?  I we

  • Will apple fix your computer for free if you have guarantee

    I was walking with my macbook open when suddeny i fainted, my macbook fell off my hands and i was unconcious so i idid not see it fall or where it hit, when i noticed it fell i paniced the system worked perfectly so i was okay. Later that day i was c

  • Grey out and disable all controls at once

    Is there a simple way to grey out and disable all of the controls on a FP at once? Thanks, Paul