Return to a point in an script

Hello,
Is there a way to return to a point in a script without a repeat.
Basically I have a script that does a few things and then when it is done it asks if you would like to do them again. However, I do not know how to tell the script to begin again from a certain point.
Is this possible?

What's your aversion to repeat loops?
I concur with the 'handler' response above, but even with a handler, you're still going to need a repeat loop since you repeatedly want to ask the user if they want to run again after each run.
repeat
  doYourStuff() --> this is your code/handler that does the work
  display dialog "Run again?" buttons {"Cancel", "Yes"} default button "Yes"
end repeat
Note that this relies on the fact that clicking 'Cancel' in display dialog will cancel the script execution, but there are other, more formal, ways of managing the loop.

Similar Messages

  • Setting clone/healing sample points with a script.

    Is it possible to set a clone and/or healing sample point with a script? I prefer to clone and heal onto a blank layer so having a way to set the sample point on another layer using a script would save a lot of time. Otherwise I have to go back and forth between the layers.
    I can't always use the "Current and below" setting due to the different blend modes on some layers. It would also be difficult to hide all other layers while doing this since I can't really see the overall effect it has on the image.
    What I'd ideally want to do is keep the blank clone layer active and when I set the sample point, set it from the layer below the currently active layer.
    More info: The blank cloning layers are set as a Clipping Mask for the original. I'm using CS4.
    Thank you.

    Sorry, there are very few tools that use the mouse that can be scripted. I have never found a way to script the stamp/healing tools.

  • Pointing a Class script to a library item dynamically

    Hey all,
    So it's straight forward to:
    create a library item
    point it at a class script
    addChild(new Class())
    Bosh,  and then it does on the canvas whatever the script associated says it should do!
    I would love to be able to:
    create library items with AS Linkage
    create a class script extending Sprite
    addChild(new Class())  pointing to any of the library items I want by simply passing a string reference to the AS Linkage

    use:
    function createClassF(s:String):*{
        var ClassRef:Class = Class(getDefinitionByName(s));
        var cr:* = new ClassRef();
        return cr;

  • Task flow return-Current Record pointing issue.

    Hi friends
    Newbie in ADF (basically from .net back ground)...........I am in the process of developing my first module.
    I have a task flow where a master detail records are displayed ..When I click "Edit" it is calling a edit task flow where the editing of master/detail tables are performed .When I click "New" a blank record is created and it is calling same edit task flow.
    my problem is when the child task flow exits and returns to the parent it is not pointing to the current record I edited...This is true if return either by commit or cancel.
    My data control is shared , parent task flow does not have any transaction and child always starts a new transaction.
    What is the ideal solution to point to the current record when I return?.
    Thanks .
    Ashraf

    Below is updated bean code
    ViewObject VO;
    FacesContext fctx = FacesContext.getCurrentInstance();
    DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iter = bindings.findIteratorBinding("Delmast1Iterator");
    VO = iter.getViewObject();
    Key currKey = iter.getCurrentRow().getKey();
    Row[] rows = VO.findByKey(currKey, 1);
    if (rows.length == 1) {
    System.out.println("row found");
    VO.setCurrentRow(rows[0]);
    iter.executeQuery();
    iter.setCurrentRowWithKey(currKey.toStringFormat(true));
    iter.setCurrentRowWithKeyValue(iter.getCurrentRow().getAttribute("SaleId").toString());
    If my child task flow does not have a commit or rollback the above code works fine...But I am beginning a transaction in my child flow(edit flow) so it is a must to have commit/rollback.
    Is there any other options experts ?..Please guide me.
    Thax.

  • Break point in SAP Script

    Hi Guys,
    I just wanted to clarify something.
    In report if i do write break point then while running the program the system will halt there allowing me to debug.
    Is this functionality possible in SAP script too??
    I mean is breakpoint a valid statement in SAP Script?

    Hi,
    1) If you want to debugg the perform  then
    there are 2 ways to bebug a sap script.
    one by using standard program
    goto se38 and ececute RSTXBUG and give ur script name debug the perform.
    other one is
    put a soft breat point in u r perform code(in program)
    like
    BREAK SAP-USER.
    then when u execute u will directly goto debug mode.
    2) normally you can debugg the script by
    In se71, Chose from menu:
    Utilities-> Activate Debugger
    From the transaction, In the output message screen, you chose chose your output type, Go to Further options, Chose the dispatch option as Send at periodically scheduled jobs . then save the transaction. And run the prigram RSNAST00 It would stop at the debugging.
    Regards
    Kiran Sure

  • Return to click point in timeline

    Does anyone know whether FCP allows us to return to the location clicked in the timeline before playing? In other words, if you click to find a frame, then press the spacebar to play, then how can you return to the frame you clicked?
    Is there a "back-to-last-clicked" command somewhere?
    Thanks.

    set an in point, then use up arrow...
    set a marker, then use option-m
    But I'll bet Hanumang will pipe in here with the proper way.
    EDIT - But in case he doesn't...look at the bottom of 'Mark' on your main menu bar..there are several ways to accomplish this along with keyboard shortcuts. And know ye, that Hanumang is THE pre-eminent (sp) keyboard shortcut KING.

  • SDO_Relate does not return an interior point

    When I use SDO_Relate to try to find a point contained within a polygon, I can only get any results if the point actually lies on a boundary - the interior point is not detected, even with an ANYINTERACT filter. Here's an example:
    create table test (id NUMBER(10), shape mdsys.sdo_geometry);
    INSERT INTO USER_SDO_GEOM_METADATA
    (TABLE_NAME,
    COLUMN_NAME,
    DIMINFO,
    SRID) VALUES('test',
    'shape',
    MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('LONG', -180.0, 180.0, 1), MDSYS.SDO_DIM_ELEMENT('LAT', -90.0, 90.0, 1)),
    8307);
    create index test_idx on test(shape) indextype is MDSYS.SPATIAL_INDEX;
    insert into test values (1, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(0,0, 0,-5, -5,-5, -5,0, 0,0)));
    SELECT id from test where SDO_RELATE(shape, SDO_GEOMETRY(2001, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1, 1), SDO_ORDINATE_ARRAY(-2.5, -2.5)), 'mask=anyinteract') = 'TRUE';
    The above select statement returns no results...

    Hi Kent,
    In addition to fixing the data as Siva suggests, please see the following for more information regarding geodetic data:
    Re: problem with sdo_relate returning unexpected results
    Re: SDO_FILTER Bug in 10.2.0.1 and 10.1.0.2

  • Return vector for points done of check buffer status in onboard program

    Background
    I am trying to develop a trigger application based on the current position of a contour profile.
    I can not use breakpoints as the application is using hydraulic cylinders with analog feedback
    for the primary position. In order to make sure the trigger happens relative to the motion regardless
    of host load I want to run the application as an onboard program.
    My idea is to read the buffer status points done and generate a pulse out as a trigger when the
    points done is greater than the programmed trigger point. For example if I want to trigger on the 42
    point of a 100 point profile, I would read points done of the main contour buffer. When points done
    is greater than or equal to 42, I would generate a short pulse as a trigger.
    Question
    My problem is, I cannot find the order that the check buffer status VI returns the data to an onboard program
    return vector. As I understand it, I need 3 variables to hold the returned data. One each for State, Backlog, and
    Points Done. If I set the return vector to 10, does State get stored in 10, Backlog in 11, and Points done in 12, or
    is there a different order?
    If you could provide the return vector mapping order for all the motion VIs, it would be greatly appreciated.

    Hello,
    This is a very good question. I checked in the help for the LabVIEW VI, and it does not explicitly state the answer. The VI calls the FlexMotion function "flx_check_buffer_rtn". In the "NI-Motion Function Help" (Start>>Programs>>National Instruments>>NI Motion>>Documentation), the information for the functions states that it "...returns data in the following order: backlog, bufferState, and pointsDone." It also tells you the size of each of the elements. I will be filing a report so that the LabVIEW documentation includes this information in the future. I hope this helps. Take care!
    Regards,
    Aaron B.
    National Instruments

  • SDO_RELATE to return rows where point is in polygon

    Is it possible to return rows from a table where an input point geometry falls within the polygon sdo_geometry column stored in the row? I don't just want to return the geometry, but all columns in the row where the geometry "intersects".
    I'm trying this, but run into an error:
    SELECT * FROM COUNTY_PARCEL R where SDO_RELATE(R.SHAPE, MDSYS.SDO_GEOMETRY(2001,2868,MDSYS.SDO_POINT_TYPE(656849.49,883088.84,NULL),NULL,NULL), 'mask=anyinteract') = 'TRUE'
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13282: failure on initialization of coordinate transformation
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 286
    Any help is much appreciated.
    Edited by: user12167574 on Feb 25, 2010 3:10 PM

    Guddie
    YOUR SQL as such should do what you have described, however, the error message "ORA-13282: failure on initialization of coordinate transformation" is indicating an issue with coord transformation.
    from the user manual:
    "If geometry1 and geometry2 are based on different coordinate systems, geometry2 is temporarily transformed to the coordinate system of geometry1 for the operation to be performed, as described in Section 6.10.1."
    could it be that the COUNTY_PARCEL table geometries have a different SRID then 2868 (from your input point geometry)?
    might it even be so, that the COUNTY_PARCEL have no srid set?
    Can you check that and let us know?
    tx
    Luc

  • Applescript: return focus to another app after script runs

    I'm currently running the following script via Hazel to back up plain text notes in a specific folder to Evernote:
    tell application "Evernote"
      activate
      create note from file theFile notebook {"!inbox"} tags {"to review"}
    end
    Is there any way to do this so it happens in the background i.e. returns focus to whatever app was active when the script is triggered?
    Thanks in advance for any responses.

    Ah— solved.
    tell application "System Events"
      set frontmostApplicationName to name of 1st process whose frontmost is true
    end tell
    tell application "Evernote"
      activate
      create note from file theFile notebook {"!inbox"} tags {"to review"}
    end tell
    tell application frontmostApplicationName
      activate
    end tell

  • Tp return code 8 when doing importing script files ie KX ..

    Hi,
    Our import was running fine and when importing KX Files it ended with return code = 8.
    And now we want to check whetner the client independent data ie :<SID>KT has been imported succesfully or not..
    Now we are unable to logon to the imported client using sap* password..It is saying that is locked..
    we are unable to logon using any ID..
    Could you please provide your valuable suggestions in this regds..
    Appreciate for quicker response..
    Regds,
    Satyanarayana N.

    Hi,
    The good way i know is to go to the table usr02 directly in the DB and delete the entry for sap* (for the client you created) then when you'll restart the instance the user will be created again with the defult SAP password. This is always works.
    This is the procedure to do it from SQLplus
    sqlplus "/as sysdba"
    DELETE from SAPR3.USR02 where mandt='000'
    and bname = 'SAP*';
    After this if you are trying to log in with SAP* ans password "pass" you should check in the cleint (source client the following profile parameter and set the value as 0
    login/no_automatic_user_sapstar = 0. Then only you can login to any new client as SAP* with pwd PASS)
    If it is not the case try with sap standard password.
    Kind Regards,
    Vamsi.

  • Network Manager Dispatcher returns error code 1 on tested scripts

    I'm trying to write a simple script to test the network manager dispatcher but while it's working when I manually launch the script, the nm dispatcher print "nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/start_dropbox.sh' exited with error status 1" into the logs.
    #!/bin/sh
    IF=$1
    STATUS=$2
    /bin/su USERNAME -c "/usr/bin/notify-send lol woot"
    exit $?
    I tried using absolute paths, just the commands, running with sudo(although the scripts should be run as root) and without su. I tested the script as root and as a simple user using a terminal and it works just fine every time.
    echo seems to work fine as I don't get any errors in the logs, but that way I can't see what's inside $1 and $2 when the dispatcher calls the script and I can't think of any way to debug the script which doesn't involve notify-send.
    I'm sure I'm missing something very simple here, but I can't see it myself and searching google and the arch forums hasn't helped me any.

    I solved the problem. Here is a little explanation.
    After NetworkManager establishes network connection, NetworkManager-dispatcher service is started( for ~10 seconds). This service execute /usr/lib/networkmanager/nm-dispatcher.action, which execute scripts in /etc/NetworkManager/dispatcher.d. After exiting nm-dispatcher.action mount.davfs process appears in NetworkManager-dispatcher`s CGroup. By default all processes in CGroup must be killed when service stops. To change this behavior I have added KillMode=process to [Service] section of NetworkManager-dispatcher.service file.
    sudo nano /usr/lib/systemd/system/NetworkManager-dispatcher.service
    Here is it`s code now.
    [Unit]
    Description=Network Manager Script Dispatcher Service
    [Service]
    Type=dbus
    BusName=org.freedesktop.nm_dispatcher
    ExecStart=/usr/lib/networkmanager/nm-dispatcher.action
    KillMode=process
    [Install]
    WantedBy=multi-user.target
    Alias=dbus-org.freedesktop.nm-dispatcher.service

  • Add workflow to contenttype by share-point power shell script

    Hello,
      I need to add work flow "Publish Approval" to content type by SharePoint power shell script .
      how Can I implement that ?
    ASk

    Hi,
    According to your post, my understanding is that you want to add the workflow to a content type using PowerShell script.
    The following PowerShell script for your reference:
    function AddWorkflowToContentType($site, $ctName, $WfName, $WfAssociationName, $TaxTaskList)
    [void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SharePoint')
    [void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.Office.Policy')
    [Guid]$wfTemplateId = New-Object Guid
    $web = $site.RootWeb
    $ct = $web.ContentTypes[$ctName]
    $culture = New-Object System.Globalization.CultureInfo("en-US")
    $template = $site.RootWeb.WorkflowTemplates.GetTemplateByName($WfName, $culture)
    if($template -ne $null)
    $tasklist = $TaxTaskList
    $historylist = "IP Workflow History"
    # Workflow Association with Content Type
    $association = [Microsoft.SharePoint.Workflow.SPWorkflowAssociation]::CreateSiteContentTypeAssociation($template, $WfAssociationName, $web.Lists[$tasklist], $web.Lists[$historylist])
    $association.AllowManual = $false
    $association.AutoStartCreate = $true
    $ct.AddWorkflowAssociation($association)
    $ct.UpdateWorkflowAssociationsOnChildren($true, $true, $true, $false)
    $association.Enabled=$true
    $ct.Update()
    $web.Update()
    else
    Write-Error "Workflow Template not found"
    Add-Content $logFileName "Workflow Template not found."
    More information is here:
    http://anujabhojani.blogspot.com/2013/04/powershell-to-attach-workflow-on.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to force Get Type Array(..) return a direct pointer to the elements

    So, my question is how the native method can ask the VM to pin down the contents of an array.
    Performing storage allocation and copying is too long for
    Java objects containing many primitive data types...
    Thank you !

    I must use GetPrimitiveArrayCritical(..) instead of
    Get<type>array(..).
    Thank you for me!

  • Imaqdx registers returning errors on point grey cameras

    I am trying to control Pt Grey Flea3 USB3 cameras.  Mostly these have been excellent, but I have come unstuck trying to access certain trigger modes.  THe trigger modes that Pt Grey claims are accessible, do not appear to be available as attributes, so I tried accessing registers directly.  Turns out I can read registers (in steps of 4) at offsets up to 20Ch, but after that I consistently get the same (rather unhelpful) error message "Unknown USB3 Vision error" (-1074360261 xBFF6903B).  This maximum offset is well shy of anything interesting in the registers.  I can revert the drivers back so I can use the native FlyCap software and this does allow me to access the registers at the offsets I expect (e.g. 803h).  I have seen similar posts to this problem, but don't see anything directly related.  Anyone got any ideas?

    Hi bostonscot,
    What version of LabVIEW and NI-IMAQdx do you have on your machine? Would it be possible for me to receive a screenshot of the error message you are receiving? 
    How are you configuring the IMAQdx Read Register VIs? Would it be possible to receive a screenshot or VI snippet of the code where the reading from the register is taking place?
    Regards,
    Jordan G
    Applications Engineer
    National Instruments

Maybe you are looking for

  • I uploaded a PDF and converted to Word but only the 1st page has been saved in the .docx file

    How do I select an individual page to convert to Word. Or why does the whole document not convert. Would be grateful for advice! (new user!)

  • How to access Flash Apps over https with a self signed certificate?

    I have a Flex app that needs to access data from a SOAP web service over https with a self signed certificate. The app needs to ignore the https warnings, just as a browser would warn & allow the user to proceed. Buying a valid signed certificate is

  • How to measure CPU utilization from Oracle AWR

    Hi All, How to measure the cpu usage % from the AWR reports. Oracle : 10.2.0.3 OS : AIX 5300-12-02 I see the top 5 waited events listing CPU time in it. Top 5 Timed Events Avg %Total ~~~~~~~~~~~~~~~~~~ wait Call Event Waits Time (s) (ms) Time Wait Cl

  • Error in getting cube from BC (BW 7.0)

    hello. when i try to copy cube from bw content it display error: You attempted to use a 'NULL' object reference (points to 'nothing') access a component (variable: " "). An object reference must point to an object (an instance of a class) before it c

  • Upgrading from Adobe Photoshop CS

    My cousin took her Photoshop CS from her computer and copied the file to mine. It is missing some functions. I recently upgraded my system to 10.5.3 and was wondering what the next Adobe Photoshop program I could get to upgrade and have all working f