Scripting newbie...help for a "simple" crop mark script

Hello,
I am after some advice or assistance on the scripting side of things for indesign please.
Basically where do you start? I'm wanting to do some scripts to speed up some repetitive processes.
What I'm trying to do initially is (what I'd think would be) a very simple script. Basically it's adding crop marks to document, with the horizontal ones running the full width of the document. I've just no idea where to start...
So, I think the process of the script would be this:
1. Find document size
2. Add a horizontal line at 0.1 pt size,
Length = document width + 20mm
X axis =  document width divided by 2 (line sits centrally, hanging 10mm over left and right edges)
Y Axis = 0mm
3. Add a horizontal line at 0.1 pt size,
Length = document width + 20mm
X axis =  document width divided by 2 (line sits centrally, hanging 10mm over left and right edges)
Y Axis = document height
4. Add a vertical line at 0.1 pt size,
Length = 10mm
X axis =  0mm
Y Axis = -2mm to -12mm (bottom line sits at -2, top of line at -12)
5. Add a vertical line at 0.1 pt size,
Length = 10mm
X axis =  document width
Y Axis = -2mm to -12mm (bottom line sits at -2, top of line at -12)
6. Add a vertical line at 0.1 pt size,
Length = 10mm
X axis =  0mm
Y Axis = document height + 2mm, to document height +12mm (top of line sits at document height +2mm, bottom of line at document height +12mm)
7. Add a vertical line at 0.1 pt size,
Length = 10mm
X axis =  document width
Y Axis = document height + 2mm to document height +12mm (top of line sits at document height +2mm, bottom of line at document height +12mm)
For the future I am wanting some more complex scripts but this will hopefully help me understand a little bit.  (I will need one with input tables where you can add variables if that's do-able, but i somehow think it wont be me doing that one!!)
Thanks in advance for any help or pointers.
Phil

As said above, we can walk you through a custom script step by step
Let me get you started with this: the ESTK Help -- or one of its variants -- is your biggest friend!
"1. Find document size"
Use app.activeDocument.documentPreferences.pageWidth and app.activeDocument.documentPreferences.pageWidth for these.
"2. Add a horizontal line at 0.1 pt size,
Length = document width + 20mm
X axis =  document width divided by 2 (line sits centrally, hanging 10mm over left and right edges)
Y Axis = 0mm"
app.activeDocument.graphicLines.add () adds a new graphic line on a default position. You can then move it into position.
Doing the math results in this little script to add the first line:
newLine = app.activeDocument.graphicLines.add();
newLine.paths[0].pathPoints[0].anchor = [ -20, 0 ];
newLine.paths[0].pathPoints[1].anchor = [ app.activeDocument.documentPreferences.pageWidth+20, 0 ];
newLine.strokeWeight = 0.1;
newLine.strokeColor = app.activeDocument.swatches.item("Registration");
newLine.strokeStyle = app.strokeStyles[0];
A 'line' can consist of a number of paths (consider a compound path), but usually has only one single path. A new line only has two endpoints -- the anchors --, and you can move these around by setting the coordinates with an array of [ x y ] values. Important: These values are in your current measurement units! I'm assuming, for convenience, that you have mm for this. If you see 20 inch wide lines popping up, you know why :-) Another important point: the rulers' zero point must be in the top left of your document. All "absolute" values are relative to this zero point.
It is perfectly possible to have the script set the correct measurements and move the zero point for you, but now you know why it has to do that.
Notice you don't explicitly move the center of the new line; in this case, it's easier to immediately move each end point into its correct place.
There are a few other things you can do to make the script misbehave. The new line is created with the active defaults in your document. You could have the script change the defaults to the correct settings, but that's not really user friendly. Instead, you can change everything by applying new values to the new line only. You can see I set its weight, color, and stroke style.
A few points on these latter three settings:
Didn't I just tell you all values are in current measurement units? Well, line widths are always in points (as is font size and line spacing).
The correct line color is grabbed by asking for a swatch called "Registration" -- you might want to replace this with another swatch name.
The stroke style is grabbed by blindly using the very first stroke style in InDesign. I found out the hard way using "Solid" (or what is it called) does not work across different languages. Much later I learned there is a language-independent way of using the names, but hey, that's harder to remember.

Similar Messages

  • Pls i need help for this simple problem. i appreciate if somebody would share thier ideas..

    pls i need help for this simple problem of my palm os zire 72. pls share your ideas with me.... i tried to connect my palm os zire72 in my  desktop computer using my usb cable but i can't see it in my computer.. my palm has no problem and it works well. the only problem is that, my  desktop computer can't find my palm when i tried to connect it using usb cable. is thier any certain driver or installer needed for it so that i can view my files in my palm using the computer. where i can download its driver? is there somebody can help me for this problem? just email me pls at [email protected] i really accept any suggestions for this problem. thanks for your help...

    If you are using Windows Vista go to All Programs/Palm and click on the folder and select Hot Sync Manager and then try to sync with the USB cable. If you are using the Windows XP go to Start/Programs/Palm/Hot Sync Manager and then try to sync. If you don’t have the palm folder at all on your PC you have to install it. Here is the link http://kb.palm.com/wps/portal/kb/common/article/33219_en.html that version 4.2.1 will be working for your device Zire 72.

  • Drawing and some layout help for a simple control: thin lines and application start

    I am trying to create a new, simple control. The control should act as a grouping marker much like that found in the Mathematica notebook interface. It is designed to sit to the right of a node and draw a simple bracket. The look of the bracket changes depending on whether the node is logically marked open or closed.
    After looking at some blogs and searching, I tried setting the snapToPixels to true in the container holding the marker control as well as the strokewidth but I am still finding that the bracket line is too thick. I am trying to draw a thin line. Also, I am unable to get the layout to work when the test application is first opened. One of the outer brackets is cut-off. I hardcoded some numbers into the skin just to get something to work.
    Is there a better way to implement this control?
    How can I get the fine line drawn as well as the layout correct at application start?
    package org.notebook;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.scene.control.Control;
    * Provide a simple and thin bracket that changes
    * it appearance based on whether its closed or open.
    public class GroupingMarker extends Control {
      private final static String DEFAULT_STYLE_CLASS = "grouping-marker";
      private BooleanProperty open;
      private IntegerProperty depth;
      public BooleanProperty openProperty() { return open; }
      public IntegerProperty depthProperty() { return depth; }
      public GroupingMarker(boolean open) {
      this();
      setOpen(open);
      public GroupingMarker() {
      open = new SimpleBooleanProperty(true);
      depth = new SimpleIntegerProperty(0);
      getStyleClass().add(DEFAULT_STYLE_CLASS);
      // TODO: Change to use CSS directly
      setSkin(new GroupingMarkerSkin(this));
      public boolean isOpen() {
      return open.get();
      public void setOpen(boolean flag) {
      open.set(flag);
      public int getDepth() {
      return depth.get();
      public void setDepth(int depth) {
      this.depth.set(depth);
    package org.notebook;
    import javafx.scene.Group;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.FillRule;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import com.sun.javafx.scene.control.skin.SkinBase;
    * The skin draws some simple lines on the right hand side of
    * the control. The lines reflect whether the control is considered
    * open or closed. Since there is no content, there is no
    * content handling code needed.
    public class GroupingMarkerSkin extends SkinBase<GroupingMarker, GroupingMarkerBehavior> {
      GroupingMarker control;
      Color lineColor;
      double shelfLength;
      double thickness;
      private Group lines;
      public GroupingMarkerSkin(GroupingMarker control) {
      super(control, new GroupingMarkerBehavior(control));
      this.control = control;
      lineColor = Color.BLUE;
      shelfLength = 5.0;
      thickness = 1.0;
      init();
      * Attached listeners to the properties in the control.
      protected void init() {
      registerChangeListener(control.openProperty(), "OPEN");
      registerChangeListener(control.depthProperty(), "DEPTH");
      lines = new Group();
      repaint();
      @Override
      protected void handleControlPropertyChanged(String arg0) {
      super.handleControlPropertyChanged(arg0);
        @Override public final GroupingMarker getSkinnable() {
            return control;
        @Override public final void dispose() {
        super.dispose();
            control = null;
        @Override
        protected double computePrefHeight(double arg0) {
        System.out.println("ph: " + arg0);
        return super.computePrefHeight(arg0);
        @Override
        protected double computePrefWidth(double arg0) {
        System.out.println("pw: " + arg0);
        return super.computePrefWidth(40.0);
         * Call this if a property changes that affects the visible
         * control.
        public void repaint() {
        requestLayout();
        @Override
        protected void layoutChildren() {
        if(control.getScene() != null) {
        drawLines();
        getChildren().setAll(lines);
        super.layoutChildren();
        protected void drawLines() {
        lines.getChildren().clear();
        System.out.println("bounds local: " + control.getBoundsInLocal());
        System.out.println("bounds parent: " + control.getBoundsInParent());
        System.out.println("bounds layout: " + control.getLayoutBounds());
        System.out.println("pref wxh: " + control.getPrefWidth() + "x" + control.getPrefHeight());
        double width = Math.max(0, 20.0 - 2 * 2.0);
        double height = control.getPrefHeight() - 4.0;
        height = Math.max(0, control.getBoundsInLocal().getHeight()-4.0);
        System.out.println("w: " + width + ", h: " + height);
        double margin = 4.0;
        final Path VERTICAL = new Path();
        VERTICAL.setFillRule(FillRule.EVEN_ODD);
        VERTICAL.getElements().add(new MoveTo(margin, margin)); // start
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, margin)); // top horz line
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, height - margin)); // vert line
        if(control.isOpen()) {
        VERTICAL.getElements().add(new LineTo(margin, height - margin)); // bottom horz line
        } else {
        VERTICAL.getElements().add(new LineTo(margin, height-margin-4.0));
        //VERTICAL.getElements().add(new ClosePath());
        VERTICAL.setStrokeWidth(thickness);
        VERTICAL.setStroke(lineColor);
        lines.getChildren().addAll(VERTICAL);
        lines.setCache(true);
    package org.notebook;
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    public class GroupingMarkerBehavior extends BehaviorBase<GroupingMarker> {
      public GroupingMarkerBehavior(final GroupingMarker control) {
      super(control);
    package org.notebook;
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextArea;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestGroupingMarker extends Application {
      public static void main(String args[]) {
      launch(TestGroupingMarker.class, args);
      @Override
      public void start(Stage stage) throws Exception {
      VBox vbox = new VBox();
      BorderPane p = new BorderPane();
      VBox first = new VBox();
      first.getChildren().add(makeEntry("In[1]=", "my label", 200.0, true));
      first.getChildren().add(makeEntry("Out[1]=", "the output!", 200.0, true));
      p.setCenter(first);
      p.setRight(new GroupingMarker(true));
      vbox.getChildren().add(p);
      vbox.getChildren().add(makeEntry("In[2]=", "my label 2", 100.0, false));
      Scene scene = new Scene(vbox,500,700);
      scene.getStylesheets().add(TestGroupingMarker.class.getResource("main.css").toExternalForm());
      stage.setScene(scene);
      stage.setTitle("GroupingMarker test");
      stage.show();
      protected Node makeEntry(String io, String text, double height, boolean open) {
      BorderPane pane2 = new BorderPane();
      pane2.setSnapToPixel(true);
      Label label2 = new Label(io);
      label2.getStyleClass().add("io-label");
      pane2.setLeft(label2);
      TextArea area2 = new TextArea(text);
      area2.getStyleClass().add("io-content");
      area2.setPrefHeight(height);
      pane2.setCenter(area2);
      GroupingMarker marker2 = new GroupingMarker();
      marker2.setOpen(open);
      pane2.setRight(marker2);
      return pane2;

    The test interfaces are already defined for you - the 3rd party session bean remote/local interfaces.
    It is pretty trivial to create implementations of those interfaces to return the test data from your XML files.
    There are a number of ways to handle the switching, if you have used the service locator pattern, then I would personally slot the logic in to the service locator, to either look up the 3rd party bean or return a POJO test implementation of the interface according to configuration.
    Without the service locator, you are forced to do a little more work, you will have to implement your own test session beans to the same interfaces as the 3rd party session beans.
    You can then either deploy them instead of the 3rd party beans or you can deploy both the test and the 3rd party beans under different JNDI names,and use ejb-ref tags and allow you to switch between test and real versions by changing the ejb-link value.
    Hope this helps.
    Bob B.

  • Need help for writing an own pulse script

    Hello,
    i want to generate a simple current pulse with my keithley 2602A, but i have a problem with the pulsewidth.
    I observed the length of the pulse on an oscilloscope and it's nearly constant for about four times and then, the next time it takes about 40 seconds longer.
    I wrote the following script:
    smua.measure.rangev = 6.000000
    smua.measure.rangei = 1.000000
    smua.source.rangev = 6.000000
    smua.source.rangei = 1.000000
    smua.sense = 1.000000
    ntimes = 100000.000000
    smua.source.func = smua.OUTPUT_DCAMPS
    smua.source.leveli = 0.186000
    smua.source.limiti = 0.200000
    smua.source.limitv = 5.000000
    mybuf = smua.makebuffer(2)
    mybuf.clear()
    mybuf.appendmode = 1
    smua.measure.count = 1
    smua.source.output = 1
    for i = 1 , ntimes do -- Perform following command(s) ntimes
    end --for
    smua.measure.i(mybuf)
    smua.measure.v(mybuf)
    smua.source.output = 0
    I figured out, that the problem is in smua.measure.X and not in the loop.
    Could you please help me?

    Definitely the wrong forum.
    The forum you arre looking for can be found here:
    http://forum.keithley.com

  • Newbie help with a "simple" VI.

    Hi all,
    I need to write a VI with the following specifications:
    Input: An integer
    Output:  Two integers mapping the input integer to a coordinate system based on the following mapping system:
     22 23 24 25 ..
     21 06 07 08 09 
     20 05 00 01 10 
     19 04 03 02 11 
     18 44 45 46 12 
     17 16 15 14 13 
    For instance, an input of 0 would be an output of (0,0). An input of 5 would be an output of (-1, 0)  and an input of 23 would be an output of (-1, 2).
     As you can see it is just a clockwise rectangular coordinate system starting with 0 in the middle.
    I am new to LabVIEW and am having trouble visualizing how to do this. If I were in a text based language, I would do something like create a 2d array of booleans representing my coordinate system, and travel around in a clockwise circle marking each as true until I reached the input number, then output my current row and column. Does anyone have any suggestions of the best way to do it in LabVIEW? (In case you were curious why I don't stick with a language I know-- LabVIEW has the drivers for the motion controller I am using).
    I know this is not as complex as many of the questions here, but any help or tips would be appreciated! 

    22 23 24 25 ..
     21 06 07 08 09 
     20 05 00 01 10 
     19 04 03 02 11 
     18 44 45 46 12 
     17 16 15 14 13 
     As you can see it is just a clockwise rectangular coordinate system starting with 0 in the middle.
    --- Actually, I'm having trouble seeing that, as the "44 45 46" seems out of place.
    --- I'll assume that is an error in your table, not an error in your words.
     I know this is not as complex as many of the questions here, but any help or tips would be appreciated! 
    --- Actually, this sort of thing is fun for me, because I get to be creative.
    Consider the rules for generating a spiral pattern like that. 
    Let's use a complex number to represent a position: Imag = row, Real = column
    Let's use a complex number to represent a DIRECTION: 0-1i = up, 1+0i = right, 0+1i = down, -1+0i = left
    Let's remember that multiplying a complex number by 0+1i is a turn of 90 degrees.
    Let's start out with a position and a direction:
    POSITION = 2+2i
    DIRECTION = 0-1i  (up)
    Let's start out with an array of -1 numbers (meaning empty cells)
    To generate the array is then simple:
    FOR i = 0 to N-1  // however many cells needed
        CellArray[POSITION.imag, POSITION.real] = i  // put a number into the cell.
        TURNRIGHT = DIRECTION * 0+1i //  look 90 degrees right
        if CellArray[TURNRIGHT.imag, TURNRIGHT.real] < 0  // if that cell is empty
            DIRECTION = TURNRIGHT         // turn right
        end if
        POSITION = POSITION + DIRECTION // move to next cell
     end for
    The upper FOR loop in the code demonstrates this.
    The lower WHILE  loop in the code is basically the same, but it:
    stops when it reaches the input number
    Subtracts the starting position from the current position
    Converts the complex number to X and Y values
    I believe your third example ("an input of 23 would be an output of (-1, 2).") is wrong, because of the 44-46 problem.
    Here is the code, attached is a VI.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks
    Attachments:
    Spiral.vi ‏11 KB

  • Need Help for a simple Keypress to advance to next frame

    Hi all,
    I am pretty weak at Action script.  I need to create a simple presentation that displays a bunch of photos.  I want to be able to hit the space bar to advance to next picture.  I am able to stop the playhead at the picture, but i want to advance to next labelled frame by hitting the space bar.  Some help would be great.
    Thanks
    Anthony

    Thanks for the quick response, I have a 4 pictures on 4 seperate layers.  The starting keyframe for each picture is labeled "Slide 01"," Slide 02" etc.  When i test movie, it automatically plays the first picture labeled "Slide 01".  At the end that slides frames I have a stop action.  When I hit the space bar, i want the playhead to jump to the next slide which it's start keyframe is labeled "Slide 02".  It has a few frames to allow for fadeing in, and then a stop action on the last keyframe. And so on.
    I entered your code and placed the goto and play event handler to jump to the next slide's keyframe which i labeled "Slide 02".  I did get the following error:
    Location: Scene 1, layer 'Scripts', Frame 1, Line 3
    Description: 1046: Type was not found or was not compile-time constant: KeyBoardEvnt.
    Source: function next(event:keyboardEvent):void
    stage.addEventListener(KeyboardEvent.KEY_UP,next);
    function next(event:KeyBoardEvent):void
    if(event.keyCode==Keyboard.SPACE){
      gotoAndPlay("Slide 02");
    Thanks
    Anthony

  • Please help for using perform in SAP script

    As subject.
    My sap script code as below:
    /: PERFORM GET_CHAMT_DATE IN PROGRAM ZRAP004
    /:USING    &SPELL-WORD&
    /:CHANGING &SPELL-WORD&
    /:ENDPERFORM
    My program ZRAP004 code as below:
    FORM get_chamt_date USING u_iword TYPE spell-word
                       CHANGING u_oword TYPE spell-word.
    CONCATENATE u_iword '&#20803;&#25972;'(t01) INTO u_oword.
    endform.
    This form is for check printing.
    It's by standard function 'F110' to excute check printing.
    But when i finished this transaction. System return error message as below:
    <b>This routine contains 2 formal parameters, but the current call
    contains 4 actual parameters.</b>
    Please help. Thanks a lot!!

    Hiii
    PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
          w_vbeln LIKE vbak-vbeln,
          w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
               input  = w_ebeln
          IMPORTING
               output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.

  • Help for checkbox display as marked

    HI ALL,
    I am facing some problem displaying the check box as marked or flagged when displaying the record.
    my requirement is that when i display a record it should also display the check box as marked. how do i do that. help me with the code.
    i have 8 checkboxes and when each checkbox is marked, the respective field is filled with a record. and when i display ( using push button) the selected record , it should show me the check box as marked if the field is not empty. how do i do it?

    LOOP AT T_SFLIGHT  INTO sflight.
                WRITE:
                  / SFLIGHT-FLDATE,
                    SFLIGHT-SEATSMAX,
                    SFLIGHT-SEATSOCC.
                MODIFY CURRENT LINE FIELD FORMAT BOX INPUT on.
                BOX = 'X'.
                MODIFY CURRENT LINE FIELD VALUE BOX.       
      ENDLOOP.
              ULINE.
    Try the highlighted lines.It will helps u.I

  • HelP for understanding simple JMS program

    I am trying to compile and run a simple jms requester/server program. The sample code asks to deffine jndi as follow and run wtih jmsadmin
    def qcf(sampleQCF) qmanager(TEST.QMGR) tempmodel(QUEUE.TEMP)
    def q(qSrv) qu(QUEUE.SERVER)
    def q(qReq) qu(QUEUE.REQUESTER)
    Should not a qcf has to have channel and port as a part of defnition? How can this app connect to a queue managger? BTW, my jms provicer is MQ.
    I understand that I have to have a qmgr called TEST.QMGR created and two queues called QUEUE.REQUESTER and QUEUE,SERVER.
    Thanks
    kiran
    Edited by: xmlcrazy on Jan 2, 2010 3:21 PM
    Edited by: xmlcrazy on Jan 2, 2010 4:57 PM

    I was experiencing the same problem. There is probably a mismatch (not the same release) between the ojdbc14.jar and the orai18n.jar. Using http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html I downloaded the latest libraries (10.2.0.3) and moved them to the lib directory of my project. This worked for me.
    Good luck!

  • New to shell script need help for script

    Hi,
    I have following shell script which takes database name from file sql.config. this file has names of all staging database. I want to modify this script to run below analyze index commands if database is staging and if its production database then i want to run different set of commands say analyze user schemas. How can i implement this in below script (something like if then else)?
    connstr=`grep "gemsit_staging" /cronacle/tools/informatica/sql.config`
    sqlplus -S<<EOF1
    $connstr
    whenever sqlerror exit failure;
    ANALYZE TABLE GEMSIT_STAGING.AR_TRANS_DETAIL_STG COMPUTE STATISTICS;
    ANALYZE TABLE GEMSIT_STAGING.GLOBAL_SET_S COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_DEL_TRANS_DETAIL_STG_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_DEL_TRANS_DETAIL_STG_01 COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG01_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG02_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG03_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG04_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG05_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG06_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.AR_TRANS_DETAIL_STG07_IX COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.GLOBAL_SET_S_PK COMPUTE STATISTICS;
    ANALYZE INDEX GEMSIT_STAGING.GLOBAL_SET_S_PK1 COMPUTE STATISTICS;
    EOF1
    thanks

    if test $? -ne 0 ; then
                                    echo 'Processing Error' >> $Log_Dir/$Log_File
                                     exit 1
                            else
                                    echo 'Processing Completed' >> $Log_Dir/$Log_File
                                    rm -f  $Script_Dir/$Flag_File
                                     exit 0
                            ficreate two sql files one form test and for prod say test.sql and prod.sql with relevant sql statements
    this is a sample if else construct, you nned to get the env using "host"/"hostname" cmd on linux and assign this to a variable say envname
    if envname $? -ne 'PR' ; then
                                    echo 'Processing Test SQL' >> $Log_Dir/$Log_File
                                     <call the test sql here>
                                     exit 1
                            else
                                    echo 'Processing Prod SQL' >> $Log_Dir/$Log_File
                                   <call the Prod sql here>
                            fi

  • Need conceptual help for a simple drag n drop game

    As anyone who saw my previous thread knows, I'm trying to make an educational app prototype (I'm new to Flash, this is for a Masters in education) to help students learn IPA symbols (phonetics). I have successfully made a section where the students click on symbols to hear the corresponding audio and listen to explanations.
    For the final part of the prototype, I have to create some kind of instructional game. My idea is to have 12 circles, each one playing an audio file of a vowel sound (this I know how to do). The students will have to click the circles to listen and then drag and drop them to the correct IPA symbol. Flash would then give feedback on correct/incorrect answers and a score. Maybe all of this is against the clock, needing a timer.
    So, I need to learn drag and drop. What else to I need to learn so that one drop position is considered "correct", the others are considered "incorrect" and a score is given at the end? And maybe a timer?)
    Any conceptual help gratefully received!!
    Darren

    Cheers for the reply.
    Yes, I have heard of this Google you speak of The thing is, sometimes as a beginner you can't see the wood for the trees and I find mountains of info when I search, it's hard to know which direction to do in. As for drag & drop I had already found good tutorials on that, it's more the other concepts that need to be employed that I would like information on.
    I'll look into the getTomer() function, sounds just what I need.
    As for the scoring correct/incorrect answers, i found a wonderful example on flashkit.com, which would basically solve all my problems if I learn how to adapt it. The trouble is it was made in Flash 7, I'm on CS4.
    How many changes would I need to make to the code to turn it into AS3?
    Cheers everyone
    Darren
    (EDIT: I pasted the code and now it looks weird. I used SQL syntax highlighting on this page, maybe somebody could tell me how to past code and get it looking correct?)
    myAnswers = [[1, 1], [2, 2], [3, 5], [4, 4]];
    function doDrop(dragSprite, numTargets) {
         for (i=1; i<numTargets+1; i++) {
              if (_root[dragSprite].hitTest("_root.q"+i)) {
                   if (_root["q"+i]._currentframe<>2) {
                        _root[dragSprite]._x = _root["q"+i]._x+5;
                        _root[dragSprite]._y = _root["q"+i]._y+2;
                        _root["q"+i].gotoAndStop(2);
                   } else {
                        _root[dragSprite]._x = _root[dragSprite].stx;
                        _root[dragSprite]._y = _root[dragSprite].sty;
    function clearDrop(dragSprite, numTargets) {
         for (i=1; i<numTargets+1; i++) {
              if (_root[dragSprite].hitTest("_root.q"+i)) {
                   if (_root["q"+i]._currentframe == 2) {
                        _root["q"+i].gotoAndStop(1);
                        break;

  • Some help for a simple condition statement...

    Hello! I wanted some help this condition statement...
    There are 2 tweens called "mc_sun" and "mc_welcome" I want to
    run when someone clicks on a button called "btn_home", but I don't
    know exactly how to write the code because I've already tried these
    2 modes and noone work at all!
    THANKS FOR THE HELP!!!!

    I think I know what you're after here ... but I could be
    wrong ;) but try this:

  • Help for a simple question

    testproc a = new testproc();
    Vector b = a.getvector(); //get back vector from testproc
    int i = b.get(1);
    The error is b.get(1) return a string val but how can I cast it to integer?
    Thanks!

    >
    i = (int) b.get(1);
    This will not work. This is because what gets stored is an Object and you cannot cast an Object to a primitive type. To do this, try....
    String myNumber = (String) b.get(1);
    int i = Integer.parseInt(myNumber);
    Please note that Integer.parseInt throws an NumberFormatException if the parameter you give is null or Not a Number. Read the documentation of
    java.lang.Integer for more info.
    Hope this helps.
    Best Regards,
    Manish

  • Need help for generating textboxes in java script

    hii,
    yes,we are discussing about text boxes that are dynamically generated.the cursor should go from one textbox to another by pressing enter key.(suppose we are having three rows and three columns,
    and each column textboxes are having the same name,then the cursor should move from one textbox of first column first row to second row first column textbox ..& like that.That means the cursor should move downwards.
    if any one knows the code,please help me.

    hiii,
    To move cursor from one textbox to another text box ,I have take the length of the textboxes of the first column.I used onkeyDown event .
    in the function ,firest i checked the condition like
    for(i=0;i<form1.box.length;i++) //box is the name of the textboxes
    if(event.keyCode==13)
    form1.box[i+1].focus();
    return false;
    by using this the cursor is moving from first text box to secon textbox and stops.
    if i use event.returnValue=false; instead of return false ,then the cursor automatically going to the laxt textbox of the column.
    my problem is how i can focus the cursor from one textbox to another textbox one after the other till the end.
    if any one has solution please help me.
    thanx.

  • Can't get any decent help for a simple question...

    I would like to buy albums and music from Armada Music on Itunes. But they are only found in european stores. I was wondering if it possible to still buy them through Itunes even though they are on a foreign?

    No.
    You can ONLY buy from the itunes store in your country of residence.

Maybe you are looking for

  • Update Private Note in Vendor Master

    Hi All, We have a requirement to update Private Note in Vendor. It can be seen in Transaction XK02 on any screen on the top at the left most corner of the screen before the title in the drop down menu. I tried using BDC but BDC is not capturing this

  • Settle Secondary Cost from WBS to AUC

    Hi Sapiens, Business Requirement --> Budget Control for all Material Procurement, thereafter settlement of cost thus booked under WBS to AUC or Asset as the case maybe. Current Setup --> Material/Inventory/Balance Sheet A/c has been made Statistical

  • How do you get the nokia n80 to work as a remote d...

    my friend has a k700i and he can use it as a mouse on his desktop computer via bluetooth with the built in remote control software on his phone, is there anything i can get for my nokia n80?

  • UR save as default options

    Is it possible to put a check box for each index tab like the main globals and pcb settings where whatever settings you have used in the past will be recalled during startup. I know that their are "technology" files.....but those really are only spec

  • IMovie 13 Movie Disappeared

    I was working on a project in iMovie, when suddenly my computer froze and wouldn't do anything until I powered it down manually. When I went back to iMovie, the movie I had been working on had disappeared. (All of the raw footage was still there howe