Need Help With Script Skipping Word Before Variable

I borrowed and modified a skip I found here: http://forums.adobe.com/message/4808804 with code borrowed from elsewhere.
I noticed that it seems to run fine, but it skips any word that appears right before a variable. The point of the script is to find any text using an italic override or bold override, and replace the override with the appropriate character format from the catalog.
Can someone tell me why the code below skips words before a variable? I am sure it is a simple thing, but I am teaching myself Extendscript, and only recently started the attempt/
Thanks,
Marc
var doc = app.ActiveDoc;
removeOverrides (doc)
function removeOverrides (pDoc)
    var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
    var vBoldFmt=pDoc.GetNamedCharFmt ('bold')
    var vItalicFmt=pDoc.GetNamedCharFmt ('italic')
    initFA_errno ();
    var vTextLoc = new TextLoc(vDocStart,0);
    var vFindParams=findOverrideParams (pDoc);
    while (FA_errno==Constants.FE_Success)
        var vTextRange=pDoc.Find(vTextLoc,vFindParams);
        if (vTextRange.beg.obj.ObjectValid())
            var vTextItems=pDoc.GetTextForRange (vTextRange, Constants.FTI_CharPropsChange)
            if (vTextItems.length==!0 )
                $.writeln(vTextItems.String)
                if (vTextItems[0].idata==Constants.FTF_WEIGHT)
                   pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps())
                if (vTextItems[0].idata==Constants.FTF_ANGLE)
                   pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps())
                }// else (Log (vLogFileName, '\nERROR: No items were found in the text format array but format override was found: '+pDoc.Name))
        vTextLoc = vTextRange.end
        vDocStart=vDocStart.NextPgfInFlow;
function findOverrideParams (pDoc)
    var vFindParams = AllocatePropVals(1);
    vFindParams[0].propIdent.num = Constants.FS_FindObject;
    vFindParams[0].propVal.valType = Constants.FT_Integer;
    vFindParams[0].propVal.ival = Constants.FV_FindCharacterFormatOverride;
   return vFindParams;
  function initFA_errno()
         app.GetNamedMenu("!MakerMainMenu"); //If this fails, you've got bigger problems
         return;

It looks like home assignment. Home assignment are not very welcome here. I can help you only a little. It's very simple application, but if you dont know basics in OO, you are in trouble.
Create these three files, even empty with all points you need to accomplish in them as comments.
Think about gui you need. If you do not know how to make menus and other fancy gui you can do only with one main panel with a few buttons and JOptionPanes appearing for every input.
Buttons for each task:
1. get available rooms; press and see JOptionPane telling what rooms are empty (information message)
2. book: JOptionPane asking how many guests, you input, it checks for availability, if available rooms are not enough (or beds) another OP tells that it's impossible, if enough - offer to input room number, you input, check if the room is booked, then offer to input name, then offer quit.
3. unbook.
4.get report
Once you design how it looks, every step becomes very simple. All methods you need to implement are simple array manipulations. Make report last, because it's just collection of printouts from methods you've already done.
In book, you need to look for definitions of constructor, passing arguments to methods, returning results from methods, creating object with "new" operator, simple event handling, JOptionPane documentation and examples, which are in every decent textbook.
Do not panic, it's really simple but rather tiresome application, if you do it by yourself you learn almost everything necessary to start programming in java.

Similar Messages

  • Need help with Different approaches to setting variables in a Flash movie in Adobe Flash CS3 Professional Version

    Hi,
    I'm using Adobe Flash CS3 Professional version of Flash
    software,
    I need help and guidance on
    Different approaches to setting variables in a Flash movie,
    what I should do in the fla file, and in the html file.
    Thanks, Gil

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • Need Help with scripting for Automator/AppleScript.

    Hi everybody,
    I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
    and example being:
    example.jpg
    (when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
    I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
    I am using it for application specific files.
    Kind regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme    

    Open the Script Editor in the
    /Applications/AppleScript/ folder and enter the
    following:
    on open(the_file)
    tell application "Finder"
    set name of the_file to "Image"
    end tell
    end open
    Save this script as an application.
    (11347)
    this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
    I am also given the option of editing the script or just quitting.
    thanks for your help

  • Task Scheduling Script - Need help with passing the scheduled command (variables are not being evaluated)

    Hi Everyone,
    I'm trying to get a simple task scheduler script to work for me and can't get the command I need passed to the scheduler to evaluate properly.
    Here's the script:
    ###Create a new task running $Command and execute it Daily at 6am.
    $TaskName = Read-Host 'What would you like this job to be named?'
    $Proto = Read-Host 'What is the protocol? (FTP/FTPS/SFTP)'
    $User = Read-Host 'What is the user name?'
    $Pwd = Read-Host 'What is the password?'
    $Server = Read-Host 'What is the server address?'
    $NetworkDir = Read-Host 'Please input the network location of the file(s) you wish to send. Refer to documentation for more details.'
    $RemoteDir = Read-Host 'Please input the REMOTE directory to which you will upload your files. If there is none please input a slash'
    $Command = 'winscp.com /command "option batch abort" "option confirm off" "open $Proto://$User:$Pwd@$Server" "put $NetworkDir $RemoteDir" "exit"'
    $TaskAction = New-ScheduledTaskAction -Execute "$Command"
    $TaskTrigger = New-ScheduledTaskTrigger -Daily -At 6am
    Register-ScheduledTask -Action $TaskAction -Trigger $Tasktrigger -TaskName "$TaskName" -User "Administrator" -RunLevel Highest
    Write-Host "$TaskName created to run Daily at $TaskStartTime"
    What's messing up is the $Command creation, the command needs to have the quotes around "option blah blah", but if I wrap the whole line in single quotes the variables that are evaluated for the "open blah blah" strings (which also need
    to be inside quotes) and the "put blah blah" string are not being evaluated properly.
    I've dorked about with different bracketing and quoting but can't nail the syntax down, could someone point me in the right direction? My Google-fu seems to be lacking when it comes to nailing down this issue.
    Thanks

    Hmmn, closer. I'm getting this error now:
    + $Command = $tmpl -f  $User, $Pwd, $Server, $NetworkDir, $RemoteDir
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (winscp.com /com...t {4} {5}" exit:String) [], RuntimeException
        + FullyQualifiedErrorId : FormatError
    And the command being added to the new task looks like this:
    winscp.com /command "option batch abort" "option confirm off" "open ($Proto)://($User):($Pwd)@($Server)" "put $NetworkDir $RemoteDir" "exit"
    Here's the current state of the script. I get what you're doing to try to bypass the quotes issue, using an array. I'm just not awesome at this yet sooooooo...
    $TaskName = Read-Host 'What would you like this job to be named?'
    $Proto = Read-Host 'What is the protocol? (FTP/FTPS/SFTP)'
    $User = Read-Host 'What is the user name?'
    $Pwd = Read-Host 'What is the password?'
    $Server = Read-Host 'What is the server address?'
    $NetworkDir = Read-Host 'Please input the network location of the file(s) you wish to send. Refer to documentation for more details.'
    $RemoteDir = Read-Host 'Please input the REMOTE directory to which you will upload your files. If there is none please input a slash'
    $tmpl = 'winscp.com /command "option batch abort" "option confirm off" "open {0}://{1}:{2}@{3}" "put {4} {5}" exit'
    $Command = $tmpl -f $User, $Pwd, $Server, $NetworkDir, $RemoteDir
    $TaskAction = New-ScheduledTaskAction -Execute $Command
    $TaskTrigger = New-ScheduledTaskTrigger -Daily -At 6am
    Register-ScheduledTask -Action $TaskAction -Trigger $Tasktrigger -TaskName "$TaskName" -User "Administrator" -RunLevel Highest
    Write-Host "$TaskName created to run Daily at $TaskStartTime"

  • Need help with scripting Jumps

    Hi - hope someone can help me. I'm in over my head. I have a long (4 hrs.) commercial video track separated by dozens of markers (placed earlier in FCP). All my menu buttons work fine, but I want to include a button which serves as an "In-Store" demo loop featuring about 30-45 minutes of highlights (meaning favorite clips) looped endlessly for in-store sales. I can't seem to get the right combination going. New user of DVDSP but not of Mac. I managed to get it to jump to a marker, but so far, every attempt results in the program not recognizing the end of a segment. Struggling with the manual and need an expert to simplify things.

    Hi Hal -
    Just perfect. Thanks very much, Hal. I'd entirely skipped the "Stories" sections of my tutorials and manual automatically assuming (from prior experiences with Flash, SuperCard, etc.,) that scripting would be the solution. (Plus I'm rushing to complete the thing.) The best part is that it this extremely easy to do. If I need to shorten a clip I can just add a separate marker in DVDSP with no apparent down side. Stories are a sweet feature, and I'm sure I'll be using them over and over with each new production.
    So, you've just scored the "Expert" ranking in my book and I'm wondering you'd like to make it a daily double... Here's the next and hopefully last sticking point in my little project: I set up multiple angles in several clips in FCP, which don't seem to display in DVDSP. They might, I just can't tell from the sim. And yes, I'm aware that importing separate tracks and re-compositing them in DVDSP is a way to make angles happen, but I already did all this once, with great care, and I'm wondering how to get the Final Cut angles to change in the simulator in DVDSP. Any experience in these areas?
    Thanks again for the "stories" advice. Right on the money.

  • Need Help With Redirect That Uses Session Variable

    I am new to dynamic sites, php, and developer toolbox, but I have been able to create a login site using the different form wizards fairly easily (in CS3 with Developers toolbox).
    <br />
    <br />I am trying to set a server behavior on a page that redirects the user to a new page if a session variable matches a recordset.
    <br />
    <br />I was using an extension (PHP Sessions - http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;extid=681308 ) that worked great, but when I installed developers toolbox, it stopped working (get error message about runtime/MX environment).
    <br />
    <br />Ive been struggling for days and this is what Ive come up with so far:
    <br />------------------------------------
    <br />session_start();
    <br />if (!isset($HTTP_SESSION_VARS[$_SESSION['kt_firstname']]) || $HTTP_SESSION_VARS[$_SESSION['kt_firstname']] = $row_Recordsetfname['firstname']) {
    <br /> header ("Location: ../firstname/firstname1.php");
    <br />}
    <br />------------------------------------
    <br />
    <br />It redirects regardless of the match. Any ideas on what I can do to get this working? Here is all of the code (with block from above inserted) up until the doc type:
    <br />------------------------------------
    <br /><?php require_once('../Connections/project1.php'); ?>
    <br /><?php<br />// Load the tNG classes<br />require_once('../includes/tng/tNG.inc.php');<br /><br />// Make unified connection variable<br />$conn_project1 = new KT_connection($project1, $database_project1);<br /><br />//Start Restrict Access To Page<br />$restrict = new tNG_RestrictAccess($conn_project1, "../");<br />//Grand Levels: Any<br />$restrict->Execute();<br />//End Restrict Access To Page<br /><br />if (!function_exists("GetSQLValueString")) {<br />function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") <br />{<br />  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;<br /><br />  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);<br /><br />  switch ($theType) {<br />    case "text":<br />      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />      break;    <br />    case "long":<br />    case "int":<br />      $theValue = ($theValue != "") ? intval($theValue) : "NULL";<br />      break;<br />    case "double":<br />      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";<br />      break;<br />    case "date":<br />      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br />      break;<br />    case "defined":<br />      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;<br />      break;<br />  }<br />  return $theValue;<br />}<br />}<br /><br />// FELIXONE - 2002   SB by Felice Di Stefano - www.felixone.it<br />session_start();<br />if (!isset($HTTP_SESSION_VARS[$_SESSION['kt_firstname']]) || $HTTP_SESSION_VARS[$_SESSION['kt_firstname']] = $row_Recordsetfname['firstname']) {<br />  header ("Location: ../firstname/firstname1.php");<br />}<br /><br />$colname_Recordsetfname = "-1";<br />if (isset($_SESSION['kt_user_name'])) {<br />  $colname_Recordsetfname = $_SESSION['kt_user_name'];<br />}<br />mysql_select_db($database_project1, $project1);<br />$query_Recordsetfname = sprintf("SELECT firstname FROM registration WHERE user_name = %s", GetSQLValueString($colname_Recordsetfname, "text"));<br />$Recordsetfname = mysql_query($query_Recordsetfname, $project1) or die(mysql_error());<br />$row_Recordsetfname = mysql_fetch_assoc($Recordsetfname);<br />$totalRows_Recordsetfname = mysql_num_rows($Recordsetfname);<br /><br />$colname_Recordset1 = "-1";<br />if (isset($_SESSION['kt_user_name'])) {<br />  $colname_Recordset1 = $_SESSION['kt_user_name'];<br />}<br />mysql_select_db($database_project1, $project1);<br />$query_Recordset1 = sprintf("SELECT `Date` FROM registration WHERE user_name = %s", GetSQLValueString($colname_Recordset1, "text"));<br />$Recordset1 = mysql_query($query_Recordset1, $project1) or die(mysql_error());<br />$row_Recordset1 = mysql_fetch_assoc($Recordset1);<br />$totalRows_Recordset1 = mysql_num_rows($Recordset1);<br />?>
    <br />
    <br />------------------------------

    I am new to adobe toolbox... I ve created a ligin page but not sure how to pass the session variable. I am trying to direct successful login to a page like... index.php?id=filter
    <br />
    <br />been struggling all day with this. Please help!!!
    <br />
    <br /><?php require_once('Connections/comm.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_comm = new KT_connection($comm, $database_comm);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$formValidation->addField("kt_login_user", true, "text", "", "", "", "");<br />$formValidation->addField("kt_login_password", true, "text", "", "", "", "");<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />// Make a login transaction instance<br />$loginTransaction = new tNG_login($conn_comm);<br />$tNGs->addTransaction($loginTransaction);<br />// Register triggers<br />$loginTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "kt_login1");<br />$loginTransaction->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$loginTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}");<br />// Add columns<br />$loginTransaction->addColumn("kt_login_user", "STRING_TYPE", "POST", "kt_login_user");<br />$loginTransaction->addColumn("kt_login_password", "STRING_TYPE", "POST", "kt_login_password");<br />$loginTransaction->addColumn("kt_login_rememberme", "CHECKBOX_1_0_TYPE", "POST", "kt_login_rememberme", "0");<br />// End of login transaction instance<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rscustom = $tNGs->getRecordset("custom");<br />$row_rscustom = mysql_fetch_assoc($rscustom);<br />$totalRows_rscustom = mysql_num_rows($rscustom);<br /><br />?>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <br />
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <br />
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <br /><?php echo $tNGs->displayValidationRules();?>
    <br />
    <br />
    <br />
    <br /><?php<br /> echo $tNGs->getLoginMsg();<br />?>
    <br /><?php<br /> echo $tNGs->getErrorMsg();<br />?>
    <br />
    <form method="post" id="form1" class="KT_tngformerror" action="%3C?php%20echo%20KT_escapeAttribute(KT_getFullUri());%20?%3E">
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <table cellpadding="2" cellspacing="0" class="KT_tngtable">
    <tr>
    <td class="KT_th">
    <label for="kt_login_user">Username:</label>
    </td>
    <td>
    <input type="text" name="kt_login_user" id="kt_login_user" value="<?php echo KT_escapeAttribute($row_rscustom['kt_login_user']); ?>" size="32" />
    <br /> <?php echo $tNGs->displayFieldHint("kt_login_user");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_user"); ?></td>
    </tr>
    <tr>
    <td class="KT_th">
    <label for="kt_login_password">Password:</label>
    </td>
    <td>
    <input type="password" name="kt_login_password" id="kt_login_password" value="" size="32" />
    <br /> <?php echo $tNGs->displayFieldHint("kt_login_password");?> <?php echo $tNGs->displayFieldError("custom", "kt_login_password"); ?></td>
    </tr>
    <tr>
    <td class="KT_th">
    <label for="kt_login_rememberme">Remember me:</label>
    </td>
    <td>
    <input <?php if (!(strcmp(KT_escapeAttribute($row_rscustom['kt_login_rememberme']),"1"))) {echo "checked";} ?> type="checkbox" name="kt_login_rememberme" id="kt_login_rememberme" value="1" />
    <br /> <?php echo $tNGs->displayFieldError("custom", "kt_login_rememberme"); ?></td>
    </tr>
    <tr class="KT_buttons">
    <td colspan="2">
    <input type="submit" name="kt_login1" id="kt_login1" value="Login" />
    <br /></td>
    </tr>
    </table>
    <br />
    <a href="forgot_password.php">Forgot your password?</a>
    <br /></form>
    <br />
    <p>&#160;</p>
    <br />
    <br />

  • Need help with script

    There is request to dump every day’s data from one table into text file. I need to write shell script and sql script for that
    There are two tables (INSPECTION_RESULTS and NJAS) under NJSHDOWN schema. The table NJAS is child table of INSPECTION_RESULTS. The key is RES_SYS_NO. The script should get the MIN and MAX RES_SYS_NO from INSPECTION_RESULTS table for yesterday’s date. Then use these RES_SYS_NOs to fetch data from NJAS table. I then need to create comma delimited file for following columns. Also, to add the logic in shell script to check for oracle error (ORA-). If there is error, it should send email to DBAs group(first test it with your email address).
    Following columns are needed from NJAS table.
    NJA_RES_SYS_NO
    NJA_TEST_REC_NO
    NJA_LIC_ST_ID
    NJA_ETS_ID
    NJA_SW_VER
    NJA_TECH_ID
    NJA_VIN
    NJA_LIC_NO
    NJA_LIC_JUR
    NJA_LIC_SRC
    NJA_MODEL_YR
    NJA_MAKE
    NJA_MODEL
    NJA_VHCL_TYPE
    NJA_BODY_STYLE
    NJA_CERT_CLASS
    NJA_GVWR
    Okay- here is the script that I have so far but now, I am stuck. I cannot figure out how to get my script to finish output to comma delimited file and to check for oracle errors. Can anyone help me out here? Thanks!
    Initial script:
    SELECT NJA_RES_SYS_NO, NJA_RES_SYS_NO, NJA_TEST_REC_NO,
    NJA_LIC_ST_ID,
    NJA_ETS_ID,
    NJA_SW_VER,
    NJA_TECH_ID,
    NJA_VIN,
    NJA_LIC_NO,
    NJA_LIC_JUR,
    NJA_LIC_SRC,
    NJA_MODEL_YR,
    NJA_MAKE,
    NJA_MODEL,
    NJA_VHCL_TYPE,
    NJA_BODY_STYLE,
    NJA_CERT_CLASS,
    NJA_GVWR,
    NJA_ASM_ETW,
    NJA_ETW_SRC,
    NJA_NO_OF_CYL,
    NJA_ENG_SIZE,
    NJA_TRANS_TYPE,
    NJA_DUAL_EXH,
    NJA_FUEL_CD,
    NJA_VID_SYS_NO,
    NJA_VRT_REC_NO,
    NJA_ARMSTDS_REC_NO,
    NJA_RSN_F_N_TESTABLE,
    NJA_DYNO_TESTABLE,
    NJA_CURR_ODO_RDNG,
    NJA_PREV_ODO_RDNG,
    NJA_PREV_TEST_DT,
    NJA_TEST_TYPE,
    NJA_TEST_START_DT,
    NJA_TEST_END_TIME,
    NJA_EMISS_TEST_TYPE,
    NJA_TEST_SEQ_NO,
    NJA_LOW_MILE_EXEMP,
    NJA_TIRE_DRY,
    NJA_REL_HUMID,
    NJA_AMB_TEMP,
    NJA_BAR_PRESS,
    NJA_HCF,
    NJA_GAS_CAP_ADAP_AVL,
    NJA_GAS_CAP_REPL,
    NJA_OVERALL_GAS_CAP_RES
    FROM NJAS
    WHERE NJA_RES_SYS_NO IN (SELECT MIN(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE NJA_RES_SYS_NO IN
    (SELECT MAX(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE SYSDATE=SYSDATE-1)
    Thanks!
    Scott

    Thanks here is thus far what I have, focusing on the sql script part which is the trickiest:
    -- writedate.sql script for njas
    SELECT NJA_RES_SYS_NO||','||NJA_TEST_REC_NO||','||NJA_LIC_ST_ID||','||NJA_ETS_ID||','||NJA_SW_VER||','||NJA_TECH_ID||','||NJA_VIN||','||NJA_LIC_NO||','
    ||NJA_LIC_JUR||','||NJA_LIC_SRC||','||NJA_MODEL_YR||','||NJA_MAKE||','||NJA_MODEL||','||NJA_VHCL_TYPE||','||NJA_BODY_STYLE||','||NJA_CERT_CLASS||','||
    NJA_GVWR||','||NJA_ASM_ETW||','||NJA_ETW_SRC||','||NJA_NO_OF_CYL||','||NJA_ENG_SIZE||','||NJA_TRANS_TYPE||','||NJA_DUAL_EXH||','||NJA_FUEL_CD||','
    || NJA_VID_SYS_NO||','|| NJA_VRT_REC_NO||','|| NJA_ARMSTDS_REC_NO||','|| NJA_RSN_F_N_TESTABLE||','|| NJA_DYNO_TESTABLE||','||
    NJA_CURR_ODO_RDNG||','|| NJA_PREV_ODO_RDNG||','|| NJA_PREV_TEST_DT||','|| NJA_TEST_TYPE||','||
    NJA_TEST_START_DT||','|| NJA_TEST_END_TIME||','|| NJA_EMISS_TEST_TYPE||','|| NJA_TEST_SEQ_NO||','
    ||NJA_LOW_MILE_EXEMP||','||NJA_TIRE_DRY||','|| NJA_REL_HUMID||','|| NJA_AMB_TEMP||','||NJA_BAR_PRESS||','|| NJA_HCF||','||
    NJA_GAS_CAP_ADAP_AVL||','|| NJA_GAS_CAP_REPL||','|| NJA_OVERALL_GAS_CAP_RES
    FROM NJAS
    WHERE NJA_RES_SYS_NO IN (SELECT MIN(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE NJA_RES_SYS_NO IN
    (SELECT MAX(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS, (SELECT SYSDATE-1 FROM DUAL))
    =====================
    Output thus far:
    ======================
    NJA_RES_SYS_NO||','||NJA_TEST_REC_NO||','||NJA_LIC_ST_ID||','||NJA_ETS_ID||','||
    4,,04-MAR-03,R,27-MAR-03,27-MAR-03,O,,N,,,,,,,,Z
    10871630,5274,CIF000025,CL002901,4.13,INL004025,1B7GL22X7WS569744,VK765K,NJ,B,19
    98,DODGE,DAKOTA,T,3,TIER0,5200,3750,M,06,3.9,A,N,GASO,1446865,14663,3019,,Y,4654
    5,,21-MAR-03,I,21-MAR-03,21-MAR-03,O,,N,,,,,,N,N,P
    How do I strip the comments from the output file? Also not sure if my subquery is performing the output correctly. Thanks.
    Scott

  • Need help with configuring setup cost as variable based on quantity

    Hello,
    I am brand new to PP and my client has inquiry as to how they can make the setup costs variable based on the production quantity. They already have the machine and labor working correctly, so I compared the formulas for machine and labor time with that of the formula for setup time and they are not the same (in fact, setup time does not have any formula). Do I simply need to create a formula for this or are there multiple other steps? If anyone can give instruction on how to set this up it would be of great help.
    Thanks,
    MH

    Check in the Work Center, tab Costing where Setup Time should have a formula using operation quantity / base quantity as ratio.
    Setup time should be included as parameter in the standard value key.
    The formula in the Capacity Tab would have only effect on the capacity evaluation, but no costs impact.
    Edited by: Dario on Feb 2, 2011 7:04 PM

  • Need help with Fluid Grid Layout and variable column balance.

    I'm using the fluid grid layout.  I have multiple columns that are actually fluid grid layout columns done by Dreamweaver.  I'd like them to extend as high as each other (all to the maximum height of each other) within the same section.  An added catch is that in the desktop layout, I have three side by side under one that takes the whole width of the page.  On tablet size, it's 2x2 in a square grid.  On mobile, they're vertically stacked.  I'm trying to get it so that background colour and/or borders looks decent and is fully balanced, no matter which layout is hit with the fluid layout.  The columns reflow, no problem.  But the height of any background and/or border is variable. 
    Any help on fixing this? 
    Example at:  https://music2help.thoughtburst.net/ 
    The example doesn't have borders or colours, as it looked silly unbalanced.  The music2help.css is the only one I'm modifying manually.
    Love the fluid grid layout, but I need a way to make it behave decently with backgrounds/borders.  Any help would be hugely appreciated!
    Thanks!
    mark->

    I tried the solution Nancy posted.  It altered things, but doesn't seem to do the trick.
    Just some quick background.  I did HTML from 1994 through about five years ago by hand in vi on *nix systems.  I learned HTML through 4.01, and never bothered with XHTML at all.  I learned CSS through most of CSS2.  The CSS3 and HTML5 stuff is all new to me, but it can't be that hard.  I'm not exactly a novice in JS (I've done a fair bit of AJAX programming), but it's not even close to my primary language (I'm a Perl guy).
    I'm "stuck on" wanting to use Fluid Grid Layouts.  It's billed as one of the selling points of DW CS6, and I really like the concept and results.  I just want the results embellished a little, namely with sensible identical heights on grid containers set in the same row, so that you can apply background colours, dropshadows, and borders.  That's really all I want to do that it doesn't already do.
    I have a test page at:  http://music2help.thoughtburst.net/ that you can try with your Quick Columns.  I'd be interested to know if you can get it to work.
    Here's the catch, though...  Resize the browser, shrinking it inwards.  (I suggest Firefox, as Chrome only shrinks so far, and you won't get to Mobile width.)  As you can see, on a Tablet, one of the columns that should be equal height actually moves up a row and should be equal height with the row that, on a desktop, would take the entire width of the page area.  So that's like a 4-up output in printing terms.  At Mobile size, the entire thing is vertical, so none of the columns should be resized.
    If your product works and can accomodate these conditions, I think I would be interested in spending the $35 it costs. 
    Let me know?  Thanks!
    EDIT:  Changed URL to be non-SSL.  The server has multiple vhosts on it, and I keep forgetting that I don't have a cert on this new one.  Sorry about that.  You can just add anything to one of the the three middle columns, if you're pulling it down to test.

  • Need Help with script For Bulk Users Name & Description Updation

    Hi Guys,
    I have below requirement :
    We are having one windows 2008 stand alone server with 200+ local users (No Active Directory Account).
    1. Requirement is to update each account's "Full name" and "Description field" with same text. Which means , Full name and Description field will be same with same text. No other changes are required. )Attached the screenshot)
    Can you guys pls help me out with any scripting (vbs , powershell , DOS .etc etc) method to accomplish this task quickly as manual process is very troublesome and take long time.
    Any help will be highly appreciated,
    Thanks,
    Suvajit Basu

    Hi,
    I dont have any script but seeking for a help.
    Thanks,
    Suvajit Basu
    In that case you should read this first:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Prewritten scripts can be found in the repository (Brent has already suggested one for you):
    https://gallery.technet.microsoft.com/scriptcenter
    If you can't find what you need and you can't write your own, you can request a script here:
    https://gallery.technet.microsoft.com/scriptcenter/site/requests
    Let us know if you have any specific questions.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Need Help with script: CS4 Flash Buttons

    I created a 3 button bar using Flash CS4. It will link to three different HTML pages in a website. This is one of the three scripts I have on the first frame of the main timeline, the code is for one of the buttons, the other two are really the same with differing button numbers. This code does now open the page up in a NEW BROWSER window, but I would like the page to open in the existing window and not in a new one. The 3 buttons also have down states identified by a frame label of “hold”, I would like the script to set the hold frame or down state to be displayed when the proper page is loaded in the browser .  Will someone please suggest to me what I need to add to this script to achieve this, your time and effort will be appreciated.
    stop();
    button1_btn.addEventListener(MouseEvent.CLICK, illus);
    function illus(e:MouseEvent):void {
        var targetURL:URLRequest=new URLRequest("illustrator.html");
        navigateToURL(targetURL);

    Thank you Todd... How about the code to display the Down stage when displayed,
    got any thoughts on this.
    Thanks'
    Bill

  • Need help with script - either shell or applescript

    ok, so what i want to do is make some sort of script, either applescript or shell script, that will do the following:
    take out from a command in the terminal
    put that output into a text file already on my computer.
    the only thing is that i need to put the output in the file kinda weird: i need to take it and put each character of output on a new line, but not create new lines
    example:
    take output of command 'uptime' (up 32 days, 23:09)
    place in file 'myFile'
    output:
    key u
    key p
    key space
    key 3
    key 2
    key space
    key d
    anyone have any idea on how to do this?
    thanks in advance

    OK, here is the new one, it will go through the existing text, replacing the text between the specified stopping and starting lines with the shell script text:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- get the file to write to
    property MyFile : missing value -- the file to write to (alias)
    if MyFile is missing value then set MyFile to (choose file with prompt "select a file to write to:" default location (path to desktop) without invisibles)
    -- get the data
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ","}
    set MyText to the first text item of (do shell script "uptime") -- just get the uptime part
    set AppleScript's text item delimiters to ""
    set {MyText, AppleScript's text item delimiters} to {the text items of MyText, TempTID} -- get the characters
    -- add text to each character of the data
    repeat with AnItem from 1 to (count MyText)
    if item AnItem of MyText is " " then
    set item AnItem of MyText to "key space" -- expand the space character
    else
    set item AnItem of MyText to "key " & item AnItem of MyText
    end if
    end repeat
    -- show the result
    choose from list MyText with prompt "the following results will be written:" with empty selection allowed
    if result is false then return -- exit
    -- make the new file
    set OldFile to paragraphs of (read MyFile) -- read the old file
    set NewFIle to {} -- this will be the contents of the new file
    set ReadOrNot to true
    repeat with SomeLine in OldFile -- step through each line
    set SomeLine to the contents of SomeLine
    if SomeLine is equal to "key n" then -- stop copying lines
    -- set the end of NewFIle to SomeLine -- include the stop line
    set ReadOrNot to false
    set NewFIle to NewFIle & MyText -- add the data text
    else if SomeLine is equal to "key Down Arrow" then -- start copying lines again
    -- set the end of NewFIle to SomeLine -- include the start line
    set ReadOrNot to true
    else if ReadOrNot then -- add lines only if we are copying
    set the end of NewFIle to SomeLine
    end if
    end repeat
    -- write the new results to the file
    try
    set TheOpenFIle to (open for access MyFile with write permission)
    set eof TheOpenFIle to 0 -- write over the existing contents
    repeat with SomeLine in NewFIle
    write SomeLine & return to TheOpenFIle
    end repeat
    close access TheOpenFIle
    on error ErrorMessage number ErrorNumber -- oops
    log space & (ErrorNumber as text) & ":" & tab & ErrorMessage
    try
    close access TheOpenFIle
    end try
    end try
    </pre>
    I didn't know if you wanted to include the stop and start lines, so just uncomment the appropriate statement(s) if you want to include them. I left the stop line comparison as "key n", change it to your number (or some unique text string if you only want one specific replacement).

  • Need help with script to save iPhoto RSS pix to album

    Hi all. I'm a very green Applescripter needing some pointers.
    Goal: Create a script to "save" pictures from subscribed RSS feeds in iphoto (they get automatically deleted when they fall off the RSS feed).
    I can "add" or "duplicate" the images from the subscribed album to my "archive" album but I can't figure out how to tell if I've already copied an image or not. Is there some way to say something like:
    if RssPhoto exists in ArchiveAlbum then
    don't copy
    else
    do copy
    end if
    I tried doing a file name comparison but iphoto adds a incremental number to the filename so it ends up failing the comparison.
    Thanks for any help.

    'I tried doing a file name comparison ...' - please show your code, and respective RSS url(s).

  • New to Dreamweaver and need help with PDF and Word

    I'm trying to put forms on my web page http://www.troop4084.org and I cannot get them to show up on the internet. I have them in the folder. If there is a step-by-step process to do this?

    johnnyc54 wrote:
    I think so, that may be the issue. I'm still looking at that one to figure it out.  My pictures work fine
    and I followed the same procedure for the Word/PDF documents...
    Your images are in the 'images' folder:
    http://www.troop4084.org/Images/Anacortes%20Sign.jpg
    The pdfs are neither in the images folder or where the links says they are in the site folder itself.
    See the link below - It says the FOS.pdf is in the site folder itself. Not in any other folders.
    http://www.troop4084.org/FOS.pdf
    If you upload the FOS.pdf to the site folder on your server the link will be correct.
    or you can put the FOS.pdf in the 'images' folder and change the link to as below:
    http://www.troop4084.org/images/FOS.pdf
    or you may want to create a 'pdf' folder on your server and upload the 'pdfs' into that with the link below:
    http://www.troop4084.org/pdfs/FOS.pdf

  • Need help with linking a word to a different slide.

    I have made a table of contents on this document clickable (linking a word to a different slide in the presentation) So you can click on any of the words and it will take you to that page. The problem is when I open the document it is at the correct magnification - say 75% for easy reading. But when you click on a word in the table of the contents to take you to a different page - it changes the magnification to a smaller size (53% or 63%)
    I need to know if we can keep it from doing that.
    So we can have every page no matter what you click on easily read and viewed without having to change the magnification every time.

    Hiya
    Yeah one below.. What you will see is the photoshop file, then the null layer followed by the original footage. In effect I need the photoshop image to track the movement of the camera as when I currently play the video, when the camera moves it looks as though a chunk of grass (the mask) is moving different from the rest of the scene.

Maybe you are looking for

  • InstantOn DVD - Audio out of Synch with Video

    Hi I have a MegaPC 865 Pro.  I am having problems with the InstantOn DVD Player.  The Audio is out of synch with the video. (the Audio is slower than the Video).  It happens on both analog and digital spdif out modes. CPU: Celeron 2.66 RAM: 1G Optica

  • Can't change password for mobile user on certain client computers

    I have a MacBook Pro that has mobile user accounts. The user accounts are defined in the WGM of my macpro Server. The mobile user account works fine except that after some time I could not change the password on the client computer. I could change it

  • Audio extract from DVD

    What's the better way to extract audio from DVD ?

  • The disk drive door is open.... vers. 2.3 ipod need help (con'tud)

    almost everytime i try and load music onto my vers. 2.3 ipod it says "the disk drive is not ready for use; the door maybe open. Please check disk drive F: and make sure that a disk is inserted and that the drive door is closed" but i dont understand,

  • Labview command-line interface

    Hi, I have another simple Labview question.   I am trying to determine if Labview is suitable for my purposes.  I have no data acquisiton needs and Labview was suggested to me as a language for GUI development.  I am going to start learning Labview t