Script - create .jpg - using various (visible) layers

Hello
I have trubble creating a script for Photoshop CS 5.
I have got a .PSD document with several layers, some of which are visible, some are invisible.
I want the script to make the selected layer visible (only one layer is selected). Than i want it to create a .jpg including all visible Layers. And I want the .jpg named after the name of the document with the addition of 01 (for example: Document named 123.psd, so create 12301.jpg)
After that i need the script to make the selected layer invisible. I than want to automatically select the next layer below (or above, doesn't matter), make that one visible and create a .jpg including all visible layers, like before. This .jpg file needs to add the suffix 02 (so create a file 12302.jpg).
Than make selected layer invisible, select the next layer and repeat.
I found a matching script from 6 years ago on the internet. It works, but painfully slow. I think it is because I am using Photoshop CS 5 and that script was written for a previous version.
Here is the script I am using right now:
var datRef = activeDocument;
var pfad = Folder.selectDialog("Waehle eine Zielordner");
exportOptionsSaveForWeb = new ExportOptionsSaveForWeb(); 
exportOptionsSaveForWeb.quality = 60; 
exportOptionsSaveForWeb.includeProfile = true; 
exportOptionsSaveForWeb.optimised = true; 
exportOptionsSaveForWeb.format = SaveDocumentType.JPEG; 
for( var einEbene = 0; einEbene< datRef.artLayers.length; einEbene++) {
    for( var ebenTemp = 0; ebenTemp < datRef.artLayers.length; ebenTemp++) {
        if( datRef.artLayers[ebenTemp].name != "Hintergrund"){
            datRef.artLayers[ebenTemp].visible = false;}
    savedState = datRef.activeHistoryState;
    if( datRef.artLayers[einEbene].name != "Hintergrund"){
        datRef.artLayers[einEbene].visible = true;
        var saveFile = new File(pfad + "/" + datRef.artLayers[einEbene].name + ".jpg");
        datRef.exportDocument (saveFile, ExportType.SAVEFORWEB, exportOptionsSaveForWeb);}
    datRef.activeHistoryState = savedState;
If you can help me, run that script faster, or create a script that does what I described propperly, it'll be mutch appreceated.

I don't think it's because you have CS5. Scripts that work with layers like this can be slow. Sometimes very slow Depending on the number of layer in the document and the document size. Exporting the files using SaveForWeb may also be a speed problem with large documents.

Similar Messages

  • Why won't Apple Preview open LR created jpgs

    I'm fairly new to LR. I have just processed my first batch of Canon RAW files through LR, printed them to jpg and submitted them to my commercial printer. Everything looked fine. However when I go to Apple Preview to view them, Preview says that they are corrupt or incorrect format. Photoshop has no problem with them.
    What is wrong?

    I am on Windows and don't see any problem with your bad.jpg using various programs.
    Checking the file with an online Exif extraction website:
    Jeffrey's Exif viewer
    I see a warning about the Costco color profile not being known, which of course a website would know nothing about.  I assume you have this color profile installed on your Mac, but have you tried printing to jpg using the sRGB profile?  I realize that won't help for your final results of having the Costco profile embedded, but as an experiment to see if the profile is what ColorSync doesn't like.

  • How to create database using shell script

    hai
    how to create database using shell script

    The documentation details the steps to create a database manually. Another option is to use DBCA to create the scripts. DBCA will give you a complete set of scripts that will create a database.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref220

  • Create UDM using os script

    Hi Guys,
    I have been given the following task to be done asap, but have little issues, as i have read from the oracle docs we need to have os scripts to apply certain metrics which are user defined, i have following tasks but unable to get the scripts,
    Create a User Defined Metrics (UDM)  alerting when listener file is in Dbug mode
    Create a UDM alerting verifying Rman is using Rman catalogue
    Create a UDM alerting when WEB Logic is in debug mode
    Create a UDM alerting when WEB Logic when log rotation is not set
    I am using OEM 11g
    If any one has any scripts or any suggestions to do this, please share.
    Thanks and Regards,
    Littlefoot

    Hi 844375,
    I have created the same script which you have provided(seems like you and me have a similar thinking upto the commenting part), but the script provided seems to be incomplete, it is empty, first step of the script is empty, i.e "/tmp/udm_lsnrctl_script.sh" is not provided without which the next part is incomplete.
    following is the scripts i have created :
    1.
    UDM_LSNRCTL_DEBUG_CHECK
    TASK : To check if a listener is put in debug mode.
    Script used :
    >> STEP 1 : udm_lsnrctl_script.sh
    #The script to check if the listener is in debug mode
    #script by Littlefoot, version 1.0
    #Step 1 - file name be udm_lsnrctl_script.sh
    #Step 2 - use udm_lsnrctl_testrun.sh to fetch the listener names in debug mode
    #The below script will check for ASM instance
    for k in `ps -ef | grep pmon | grep asm* | awk '{print $8}' | awk -F "_" '{print $3}'`
    do
    echo $k 'inside for loop to get the ASM Home path'
    . oraenv <<-EOF
    $k
    EOF
    #If more than one listener then we need to use for loop
    #"lsnrctl show trc_level" is the command in to check the debug status
    for m in `ps -ef | grep inh | grep -v grep | grep "grid" |awk '{print $9}' `
    do
    echo $m 'inside for loop to check for ASM listeners'
    lsnrctl <<-EOF
    set current $m
    show trc_level
    exit
    EOF
    done
    echo 'outside for loop to check for ASM listeners'
    done
    echo 'outside for loop to get the ASM Home path'
    #This script will not TEST FOR +ASM1
    for i in `ps -ef | grep inh | grep -v grep |awk '{print $8}' | awk -F "/" '{print $6}' | grep -v tnslsnr`
    do
    echo $i 'inside for loop to get the non ASM home path'
    #`ps -ef | grep pm n | grep -v grep |awk '{print $8}' | awk -F "_" '{print $3}'`  #check this line once again
    #check the above line once again
    #check the above line once again
    . oraenv <<-EOF
    $i
    EOF
    cd $ORACLE_HOME
    for j in `ps -ef | grep inh | grep -v grep | grep -v "grid" |awk '{print $9}'| grep $i ` ###CHECK THIS LINE TOO CHECK IF THE FIRST LINE IS ALWAYS --LISTENER-- ONLY ELSE IT WILL RESULT WORNG OUTPUT
    ###THIS LINE CAN BE USED AS AN ALTERNATIVE tTO AVOBE LINE CHCEK AND PROCEEED
    #for j in `ps -ef | grep inh | grep -v grep |grep -v "LISTENER " |awk '{print $9}'`
    #To be more pricise
    #for j in `ps -ef | grep inh | grep -v grep |grep -v "grid" |awk '{print $9}'`
    do
    echo $j 'inside for loop to check non ASM listeners'
    lsnrctl <<-EOF
    set current $j
    show trc_level
    exit
    EOF
    done
    echo 'outside for loop  to check non ASM listeners'
    done
    echo 'outside for loop to get the non ASM home path'
    exit 0
    >> STEP 2 : udm_lsnrctl_testrun.sh
    #!/bin/ksh
    #The script to check if the listener is in debug mode
    #script by Harish, version 1
    #Step 1 - file name be udm_lsnrctl_script.sh
    #Step 2 - use udm_lsnrctl_testrun.sh to fetch the listener names in debug mode
    #This file to run the above script and store the output into another file to check/compare the required information
    #file name udm_lsnrctl_testrun.sh
    #Put the output of udm_lsnrctl_script.sh into udm_lsnrctl_debug_log.txt to check for listener names in debug mode
    date > /oracle/app/agent11g/scripts/udm_lsnrctl_debug_log.txt
    /oracle/app/agent11g/scripts/udm_lsnrctl_script.sh >> /oracle/app/agent11g/scripts/udm_lsnrctl_debug_log.txt
    FILE=/oracle/app/agent11g/scripts/udm_lsnrctl_debug_log.txt
    out_result=`grep -i "set to" $FILE  | grep -v off |awk '{print $1}'`
    #Check if output is null then echo Debug Disabled
    message1=' have the debug enabled '
    if [ -z "$out_result" ]
    then
    out_result='Disabled'
    #out_result=1
    oute='No listener'
    else
    oute=$out_result
    #out_result=2
    out_result='enabled'
    fi
    em_result=$out_result
    echo "em_result=$em_result"
    echo "em_message=$oute $message1 "
    exit 0
    2.
    UDM alerting verifying Rman is using Rman catalogue : has been addressed in other post of mine.
    3.
    UDM_WLS_DEBUG_CHECK
    Task : To check if the debug mode is enabled in the wls targets
    Script used :
    >> udm_wls_debug_check.sh : NOTE : the domain home path is to be put separately for each server
    cat /oracle/app/product/fmw/user_projects/domains/custcons_domain/bin/setDomainEnv.sh|grep debugFlag=  > udm_wls_debug_log.txt
    FILE=udm_wls_debug_log.txt
    out_result=`grep -i "true" $FILE`
    echo $out_result
    domain_name=`grep -i "/oracle/app/product" udm_wls_debug_check.sh | awk '{print $2}' | awk -F "/" '{print $8}'`
    echo $domain_name
    message1='have the debug enabled '
    if [ -z "$out_result" ]
    then
    out_result='Disabled'
    #out_result=1
    oute='No domain '
    else
    oute=$out_result
    #out_result=2
    out_result='enabled'
    oute=$domain_name
    fi
    #em_result=$out_result
    echo "em_result=$out_result"
    echo "em_message=$oute $message1 "
    exit 0
    4.
    UDM_WLS_LOGROTATION_CHECK
    TASK : To check if log rotation is enabled and not set more than 7 days
    Script used :
    >> udm_wls_logrotaion_check.sh :
    #!/bin/bash
    #The script to check if the log rotaion is enabled
    #Step 1 - file name udm_wls_debug_check.sh contains the domain path
    #Step 2 - use udm_wls_debug_check.sh to get the domain path and then get the config.xml file to check if logrotation id enabled
    #This file to run the above script to check th logrotaion is true/false
    #file name udm_wls_logrotaion_check.sh
    file_name=`cat /oracle/app/agent11g/scripts/udm_wls_debug_check.sh | grep setDomain | awk '{print $2}' | awk -F "/" '{print "/"$2"/"$3"/"$4"/"$5"/"$6"/"$7"/"$8"/config/config.xml"}'`
    rotation_type=`cat $file_name | grep rotation-type | awk -F ">" '{print $2}' | awk -F "<" '{print $1}'  | awk 'NR<2'`
    file_count=`cat $file_name | grep file-count | awk -F ">" '{print $2}' | awk -F "<" '{print $1}'  | awk 'NR<2'`
    domain_name=`grep -i "/oracle/app/product" udm_wls_debug_check.sh | awk '{print $2}' | awk -F "/" '{print $8}'`
    #echo $file_name
    #echo $rotation_type
    #echo $file_count
    if [ "$rotation_type" = "None" ]
    then
    #echo 'Disabled'
    out_result='Disabled'
    echo "em_message=$domain_name do not have log rotaion enabled"
    elif [[ "$file_count" -gt "7" ]]
    then
    #echo 'Greater than 7 files'
    out_result='Disabled'
    echo "em_message=$domain_name has logrotaion enabled with file count morethan 7"
    else
    #echo 'Enabled'
    out_result='Enabled'
    echo "em_message=$domain_name have log rotaion enabled "
    fi
    echo "em_result=$out_result"
    exit 0

  • Scripts you find useful

    Just wanted to get maybe a few new free scripts and wondering if anyone is willing to share any links or code of cool scripts they have in their arsenal that just makes things easy for them.
    Here's some of my favourties that I've accumulated over the years
    Apply Clipping Path
    For some reason clipping paths may or not be applied to your photohsop files. If you turn on or off the clipping path for one image, then select the rest of the images and run the script it will apply or unapply the clipping path!
    Create Hex Swatches
    Speaks for itself really
    http://indesignsecrets.com/create-hexadecimal-color-swatches-in-indesign-for-interactive-d ocuments.php
    Footnotes to Endnotes
    Various reasons for doing this, mainly because indesign can't handle spanning footnotes across two columns!
    But it's very handy and has a lot of uses!
    http://www.kahrel.plus.com/indesign/foot_to_endnote.html
    This script takes it one step further by creating the cross-reference, if you need that functionality
    http://www.kahrel.plus.com/indesign/foot_add_delete.html
    *****FAVOURITES COMING UP******
    Multipage Importer
    Import and place multiple PDF pages or InDeisgn Pages directly into your indesign document!
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both-pdf-and-i ndd-files.php
    Preptext
    There others mentioned in the link below. But Preptext is fantastic for taking in Word file that has no styles applied to it's text and it creates the bold, italic, bold italic, superscript, subscript or any other character formating into Character Styles!
    It's really fantastic!
    http://indesignsecrets.com/free-scripts-help-fix-word-formatting.php
    Smart Title Case
    You can edit the script easily enough and follow the format to add in your own conjunctions, or to add in your own intentional capital letters.
    The link to download is on the left
    http://jsid.blogspot.ie/2006/06/smart-title-case-revisited.html
    Table Sort
    Does what it says on the tin - it sorts a table, quite nifty!
    http://www.kahrel.plus.com/indesign/tablesort.html
    Data merge into a table
    InDesigns Data Merge is quite powerful but it doesn't allow data merging into a table, say for a table plan of guests or something like that.
    This resolves that issue
    Follow the instructions carefully!
    http://indesignsecrets.com/using-data-merge-to-create-a-table-for-a-directory.php
    Replace Text
    Have to replace your text with Lorem Ipsum for some reason? I requested this script and you follow the thread below
    http://forums.adobe.com/thread/574682
    Stylighter
    Highlights styles within text - I find it handy for if you need multiple people to proof text - but there's bound to better uses than that!
    http://indesignsecrets.com/style-highlighting.php
    Batch Convert
    This is Golden! You can select a folder of InDesign files and choose an output method, from IDML, to Package, to JPEG, to whatever else is mentioned in the conversion options.
    Tips:
    Set your JPEG export options by exporting a sample page first. As you don't get a dialog to choose what JPEG settings you want to choose, it uses the last JPEG setting you choose.
    Setup a PDF export option so it's available to choose if you're batch exporting PDFs.
    Run with no documents open to select a folder. Run with a lot of documents already open and it will use them.
    http://www.kahrel.plus.com/indesign/batch_convert.html
    Finally!
    PageExporterUtility
    It basically lets you select what pages to export to a specific format - it's very handy and easy to use.
    I use it mostly for RTFs as InDesigns RTF export is a bit dodgy.
    (the Batch Convert above for RTFs of multiple files is just pure golden!
    http://www.rrdonnelley.com/prepress/prepare/indesign/indesign-exporter-utility-script.aspx
    That's it
    Hope to hear from the rest of you guys on the scripts that make your life handier while using InDesign!

    Good idea for a thread!
    One script that I use regularly and is very useful is the late Teus de Jong's HyphenationChecker. This displays a complete list of all hyphenated words used in a document so that you can double-check them at a glance. Available here:
    http://www.teusdejong.nl/thome/ho_body5.html#hyphen
    I also must mention a couple of my own freebies, both of which I use regularly. I'll just copy the blurb from my site:
    Quick Apply with Next Style
    Have you always wished that the quick-apply feature would respect your paragraph style’s Next Style setting? Have you always wished that there would be an easy shortcut for Next Style? Well, now there is!
    Case Cycle
    This little script is a great timesaver. It simply cycles through three of InDesign’s capitlization options: All caps, lowercase, sentence case.
    They can both be accessed from this page: http://www.freelancebookdesign.com/scripts

  • Merge Stamp all visible layers

    I'm trying to "Merge Stamp all visible layers" as Adobe calls, it by pressing Shift+Command+Option+E which normally works for me, but in this instance it's not. Is it because I'm using Smart Layers? I'd like to create a new rasterized layer that contains a merge of all of my previous/lower layers, without flattening all of the lower layers. I was able to do this by duplicating the Smart Layers, and then rasterizing that, but why won't Shift+Command+Option+E work, as it normally does?
    Thanks in advance.

    If I’m not mistaken having a SO selected should not make a difference – at least it does not for me.
    The occasions where I’ve noticed the command does not work is when I have an invisible Layer selected, in which case command-alt-shift-N (new Layer), command-alt-shift-E usually suffices as a work-around.
    Mind posting a screenshot with the Layers Panel visible?

  • How to get feedback messages for schema creation script created by Tasks- Generate Script

    I am using sql server 2008 R2. I created a script file by using Tasks->Generate Scripts. I 
    selected option so only create statements are generated for all objects – tables, indexes, views, functions etc in the database.
    Then when I used this generated  script to create objects in another database in SSMS, it created the objects but did
     not give me any feed back, i.e., table created, view created etc. I thought my script did not run , but when I refreshed left panel 
    of SSMS and I can see all created objects.. So question is what  is needed to get 
    feedback when  sql statements are run..

    You need to add the PRINT statements yourself for that. The wizard will not do it for you.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Error while creating Resource using GDS

    Hi
    Iam trying to create Resource using GDS and it is throwing me error
    clresource: (C189917) VALIDATE on resource egateq00-haegate_reg-res, resource group egateq00-rg, exited with non-zero exit status.
    clresource: (C720144) Validation of resource egateq00-haegate_reg-res in resource group egateq00-rg on node uhegateq02 failed.
    clresource: (C891200) Failed to create resource "egateq00-haegate_reg-res".
    This is the command I executed
    rclresource create -g egateq00-rg -t SUNW.gds
    -p Scalable=false -p Start_timeout=120 -p Stop_timeout=120 -p Probe_timeout=30
    -p Port_list="23001/tcp" -p Start_command="/egateq00/scripts/reg_START.sh" -p Stop_command="/egateq00/scripts/reg_STOP.sh"
    -p Probe_command="/egateq00/scripts/reg_PROBE.sh" -p Child_mon_level=1 -p Network_resources_used=egateq00-lh-res -p Failover_enabled=FALSE
    -p Stop_signal=15 egateq00-haegate_reg-res
    The log under /var/cluster/logs/DS says following
    07/01/2008 17:56:43 uhegateq02 START-INFO> scha_resource_open failed [14]. Keeping the old Log_level value
    07/01/2008 17:56:43 uhegateq02 START-ERROR> Cannot access the start command </egateq00/scripts/reg_START.sh> : <No such file or directory>
    07/01/2008 18:13:23 uhegateq02 START-INFO> scha_resource_open failed [14]. Keeping the old Log_level value
    07/01/2008 18:13:23 uhegateq02 START-ERROR> Cannot access the start command </egateq00/scripts/reg_START.sh> : <No such file or directory>
    However, I can open these scripts and run it from anywhere. I also tested these scripts and they all work fine. They are all set to chmod 777 , so everyone should have execute permission
    Iam not returning any return value from these Start and Stop script , is that the why it is failing
    thanks

    Hi
    I disabled the PMF as described on the http://blogs.sun.com/TF/entry/disabling_pmf_action_script_with. This is what I did
    1>Added following line in the top of my Start script
    while getopts 'R:G:' opt
    do
    case "${opt}" in
    R) RESOURCE=${OPTARG};;
    G) RESOURCEGROUP=${OPTARG};;
    esac
    done
    sleep 60 &
    /usr/cluster/bin/pmfadm -s ${RESOURCEGROUP},${RESOURCE},0.svc
    2>While creating the resource , I used property for Start_command="/egateq00/scripts/reg_START.sh -R %RS_NAME -G %RG_NAME"
    Now , after doing this , My RG is not getting lost. Also , in the message file I do not see the errors of "Start script failed to stay UP"
    However, My Application is not started either.
    This is what the message file says
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_validate> completed successfully for resource <egateq00-haegat
    e-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 0% of timeout <300 seconds>
    Jul 3 16:43:32 uhegateq01 Cluster.CCR: [ID 973933 daemon.notice] resource egateq00-haegate-reg-res added.
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 224900 daemon.notice] launching method <gds_svc_start> for resource <egateq00-haegate-reg-res>,
    resource group <egateq00-rg>, node <uhegateq01>, timeout <120> seconds
    Jul 3 16:43:32 uhegateq01 Cluster.RGM.rgmd: [ID 252072 daemon.notice] 50 fe_rpc_command: cmd_type(enum):<1>:cmd=</opt/SUNWscgds/bin/gds_svc_star
    t>:tag=<egateq00-rg.egateq00-haegate-reg-res.0>: Calling security_clnt_connect(..., host=<uhegateq01>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<1>, .
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_svc_start> completed successfully for resource <egateq00-haega
    te-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 2% of timeout <120 seconds>
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 224900 daemon.notice] launching method <gds_monitor_start> for resource <egateq00-haegate-reg-re
    s>, resource group <egateq00-rg>, node <uhegateq01>, timeout <300> seconds
    Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 252072 daemon.notice] 50 fe_rpc_command: cmd_type(enum):<1>:cmd=</opt/SUNWscgds/bin/gds_monitor_
    start>:tag=<egateq00-rg.egateq00-haegate-reg-res.7>: Calling security_clnt_connect(..., host=<uhegateq01>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<1
    , ...)Jul 3 16:43:35 uhegateq01 Cluster.RGM.rgmd: [ID 515159 daemon.notice] method <gds_monitor_start> completed successfully for resource <egateq00-h
    aegate-reg-res>, resource group <egateq00-rg>, node <uhegateq01>, time used: 0% of timeout <300 seconds>
    4>Also , in the /var/cluster/logs/DS , I see the Start script started succesfully
    07/03/2008 16:43:32 uhegateq01 START-INFO> Start succeeded. [egateq00/scripts/reg_START.sh -R egateq00-haegate-reg-res -G egateq00-rg]
    5>Also , in the /var/cluster/logs/DS , I see the Probe script returning 0 , but this is wierd because it should return Non zero number. When I run the Probe script from the command line , it is returning me non zero value when the application is down
    07/03/2008 16:43:35 uhegateq01 PROBE-INFO> The GDS monitor (gds_probe) has been started
    07/03/2008 16:44:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:44:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:45:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:45:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:46:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:46:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:47:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:47:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:48:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:48:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:49:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:49:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:50:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:50:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:51:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:51:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:52:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:52:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:53:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:53:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:54:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:54:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:55:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:55:35 uhegateq01 PROBE-INFO> The probe result is 0
    07/03/2008 16:56:35 uhegateq01 PROBE-INFO> Probe has been executed with exit code 0 [egateq00/scripts/reg_PROBE.sh]
    07/03/2008 16:56:35 uhegateq01 PROBE-INFO> The probe result is 0

  • How to bind data from script created variable to embed element of XML schema (xsd) in "Data View"

    Hi, i have got another problem with livecycle designer scripting.
    I have got script line which is defining of string variable:
    var aaa = "this is my string";
    and i have got embed XML schema like this (it`s only short part of whole file):
    ... xs:element name="bbb" type="xs:string"/ ...
    After saving data to XML i would like to get "this is my string" as a value of my "bbb" XML element.
    To save this data i`m using submit button which is connect with submit.php file on my server.
    How to connect script created variable and embed XML schema element which is present on my "Data View" tab.
    Please help me a bit becouse i don`t know even where to search answer of it...
    Of course i know possibilities to create fake unvisible text field object and bind it with 'bbb' and than put "this.rawValue = aaa" to connect those two variables but i think that is not a good idea to solve it in that way. It`s too primitive

    i solve it, i should write this:
    xfa.datasets.data.bbb.value = aaa;

  • Issues with the SQL wrapper scripts created with the DB adapter

    Hi All,
    We have the wrapper sql scripts created with the DB adapter configurations which are being used to invoke the stored procedures.
    To give you a background on the wrapper sql scripts-The Adapter Configuration wizard generates a wrapper API when a PL/SQL API has arguments of data types, such as PL/SQL Boolean, PL/SQL Table, or PL/SQL Record.
    These two SQL files are saved in the same directory where the WSDL and XSD files are stored, and are available in the Project view.
    The issue we are facing now is that whenever the associated package or the procedure structure undergoes a change we see an error as given below:
    An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: esb:///ESB_Projects/Application1_ABC_ESB/DBADP_Update_Out.wsdl [ DBADP_Update_Out_ptt::DBADP_Update_Out(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'DBADP_Update_Out' failed due to: Error while trying to prepare and execute an API. An error occurred while preparing and executing the APPS.XXIRIS_SOA_R_WRAPPER.XXIRIS_AR_CUST_K$ API. Cause: java.sql.SQLException: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body "APPS.XXIRIS_AR_CUST_K" has been invalidated ORA-04065: not executed, altered or dropped package body "APPS.XXIRIS_AR_CUST_K" ORA-06508: PL/SQL: could not find program unit being called: "APPS.XXIRIS_AR_CUST_K" ORA-06512: at "APPS.XXIRIS_SOA_R_WRAPPER", line 1 ORA-06512: at line 1 [Caused by: ORA-04068: existing state of packages has been discarded ORA-04061: existing state of package body
    In such cases we need to either execute the wrapper scripts again or refresh the connection pool in case the wrapper sql scripts for that procedure are not available.
    In some cases we see that the first instance errors out.However the second request and the subsequent requests after that goes through successfully.
    Please do let me know if anyone has faced such issues before.
    Any inputs in this regard would be of great help.
    Thanks in advance!
    Deepthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I stumbled on a link in the oracle forum which says that the "create or replace package XXX" at the start of the PL/SQL procedure when run seems to intermittently cause the ORA-04068: existing state of packages has been discarded problem.
    As per the solution suggested an “alter package XXX compile" can be executed after the changes are made and then we would no longer get the error in BPEL/ESB and dont have to bounce the server too.
    __http://forums.oracle.com/forums/thread.jspa?threadID=185762_
    However the above solution does not seem to resolve the issue.
    Any help in this regard would be highly appreciated.
    Thanks,
    Deepthi

  • Problems in creating dir using applet

    hi
    i'm getting various exceptions while creating a new directory
    i know that an applet can not create dir directly because of some
    security . But what if i want to create it using the applets only??
    how to do it??
    Thanx in advance
    Ashish

    To answer your question I would need to know what stack trace comes back with.
    I also need to know the set up.. Is the applet running on you personal machine and what operating system are you using.
    Lee

  • Photoshop CC 2014 hangs for nearly 15 seconds when using Layer Group Layers or Layer Palette Group from Layers commands.

    Photoshop hangs for nearly 15 seconds when using Layer > Group Layers or Layer Palette > Group from Layers commands. NOT on creating new group and creating layers and drag-n-dropping layers into group manually in Layer Palette. Got a UI design file with nearly 800 layers and lot of groups. This doesn't occur in smaller files. Using OS X Mavericks, Photoshop CC 2014.2.2, Mid 2014 15-inch Retina Macbook Pro.
    I understand that the solution would be just to cut the file into smaller files and design each UI view in a separate file but that would be painful. And it does not seem to be a very hard task to just group layers.

    Does the document also have a lot of layer comps?
    And can you post that document or send me a copy of it so we can see exactly why it is hanging?

  • Re: How do you create and use "common" type classes?

    Hi,
    You have 2 potential solutions in your case :
    1- Sub-class TextNullable class of Framework and add your methods in the
    sub-class.
    This is the way Domain class work. Only Nullable classes are sub-classable.
    This is usefull for Data Dictionary.
    The code will be located in any partition that uses or references the supplier
    plan.
    2- Put your add on code on a specific class and instanciate it in your user
    classes (client or server).
    You could also use interface for a better conception if needed. The code will
    also be in any partition that uses or references the supplier plan where your
    add on class is located.
    If you don't want that code to be on each partition, you could use libraries :
    configure as library the utility plan where is your add-on class.
    You can find an example of the second case (using a QuickSort class,
    GenericArray add-on) with the "QuickSort & List" sample on my personal site
    http://perso.club-internet.fr/dnguyen/
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    http://perso.club-internet.fr/dnguyen/
    Robinson, Richard a &eacute;crit:
    I'm relatively new to forte and I'd like to know how can you handle utility
    type classes that you want to use through out your application? Ideally
    what I want is a static class with static methods.
    Let's say that I have a StringUtil class that has a bunch of methods for
    manipulating strings.
    My problem is that we have code that runs on the client and code that runs
    on the server. Both areas could use the StringUtil class, but from what I
    understand, I have to create StringUtil in a plan and then create a server
    object of type StringUtil. The server object will eventually get assigned
    to a partition. That's not good since I really want the server object to
    physically reside at the server end and at the client end. (Actually, I
    don't want a server object, I just want to invoke a static method of a
    static class).
    Any clues on how to solve this problem would be appreciated.
    Also, what is the url at Sage-it that has a summary of all emails that have
    been posted to [email protected]? Perhaps this question has been
    answered previously.
    Thanks in advance
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Richard,
    Your question about "utility classes" brings up a number of issues, all of
    which are important to long-term success with Forte.
    There is no such thing as a static method (method that is associated with a
    class but without an implicit object reference - this/self/me "pointer") in
    TOOL, nor is there such thing as a global method (method not associated
    with a class at all). This is in contrast to C++, which has both, and
    Java, which has static methods, but not global classes. Frequently, Forte
    developers will write code like this:
    result, num : double;
    // get initial value for num....
    tmpDoubleData : DoubleData = new;
    tmpDoubleData.DoubleValue = num;
    result = tmpDoubleData.Sqrt().DoubleValue;
    tmpDoubleData = NIL; // send a hint to the garbage collector
    in places where a C++ programmer would write:
    double result, num;
    // get initial value for num....
    result = Math::Sqrt(num);
    or a Java programmer would write:
    double result, num;
    // get initial value for num....
    result = Math.sqrt(num);
    The result of this is that you end up allocating an extra object now and
    then. In practice, this is not a big deal memory-wise. If you have a
    server that is getting a lot of hits, or if you are doing some intense
    processing, then you could pre-allocate and reuse the data object. Note
    that optimization has its own issues, so you should start by allocating
    only when you need the object.
    If you are looking for a StringUtil class, then you will want to use an
    instance of TextData or TextNullable. If you are looking to add methods,
    you could subclass from TextNullable, and add methods. Note that you will
    still have to instantiate an object and call methods on that object.
    The next issue you raise is where the object resides. As long as you do
    not have an anchored object, you will always have a copy of an object on a
    partition. If you do not pass the object in a call to another partition,
    the object never leaves. If you pass the object to another partition, then
    the other partition will have its own copy of the object. This means that
    the client and the server will have their own copies, which is the effect
    you are looking for.
    Some developers new to Forte will try to get around the lack of global
    methods in TOOL by creating a user-visible service object and then calling
    methods on it. If you have a general utility, like string handling, this
    is a bad idea, since a service object can reside only on a single
    partition.
    Summary:
    * You may find everything you want in TextData.
    * Unless you anchor the object, the instance will reside where you
    intuitively expect it.
    * To patch over the lack of static methods in TOOL, simply allocate an
    instance when required.
    Feel free to email me if you have more questions on this.
    At the bottom of each message that goes through the mailing list server,
    the address for the list archive is printed:
    http://pinehurst.sageit.com/listarchive/.
    Good Luck,
    CSB
    -----Original Message-----
    From: Robinson, Richard
    Sent: Tuesday, March 02, 1999 5:44 PM
    To: '[email protected]'
    Subject: How do you create and use "common" type classes?
    I'm relatively new to forte and I'd like to know how can you handle utility
    type classes that you want to use through out your application? Ideally
    what I want is a static class with static methods.
    Let's say that I have a StringUtil class that has a bunch of methods for
    manipulating strings.
    My problem is that we have code that runs on the client and code that runs
    on the server. Both areas could use the StringUtil class, but from what I
    understand, I have to create StringUtil in a plan and then create a server
    object of type StringUtil. The server object will eventually get assigned
    to a partition. That's not good since I really want the server object to
    physically reside at the server end and at the client end. (Actually, I
    don't want a server object, I just want to invoke a static method of a
    static class).
    Any clues on how to solve this problem would be appreciated.
    Also, what is the url at Sage-it that has a summary of all emails that have
    been posted to [email protected]? Perhaps this question has been
    answered previously.
    Thanks in advance

  • Unable to create DC using software component

    Hi,
    I have created Software component, and later downloaded track into my NWDS but while I am trying to create DC using above Software Component which is in gray out.
    The software component does not support the selected development component type. At least one required DC is not visible.
    I am working on CE7.2,  NWDS v7.2 SP04 PAT0008
    Please let me know how to fix the issue. Appreciate your quick response.
    Thanks in advance.
    cheers
    dev

    Hi Dev,
    Please check required dependancy for the software component which you have created for CE7.2 track and make entries in the Name reservation for custom development. Once you modify then stop/start SLD server. then in the landscape configurator, do the update CMS.
    Please check all the required parameters in CMS are updated properly and you have checkin and imported component in checkin and development tab repestively in transport studio.
    Best Regards,
    Arun Jaiswal
    Edited by: Ervin Szolke on May 17, 2011 3:23 PM

  • How can I hide non visible layers during test movie ?

    Flash CS5
    I have a layer I am using for construction purposes, it shows though in test movie. If I go to publish settings and untick include hidden layers on the flash tab, when I test movie, my cars don’t appear along the guide lines at all and just pop into view as movie ends.
    How does one hide turned off visibility layers during test movie without affecting hidden guide lines ?
    Envirographics

    If I have a layer that is only acting as a guide for laying things out or whatever, what I do is right click that layer's name and select "Guide" from the menu that appears.  It will not appear in when I use Test Movie

Maybe you are looking for

  • Will SUBMIT report EXPORTING LIST TO MEMORY work, when Run in Background?

    You can use SUBMIT <report> EXPORTING LIST TO MEMORY, and then Call the FM LIST_FROM_MEMORY to get the Data. This works fine, when the Program is Run in Foreground. My question is, will it work when I Run the Program in Background? i.e. When I Run th

  • Scalable Apache service in a zone cluster

    Hi, I have set up a 2-virtual node zone cluster (on a physical 2-node cluster). I am trying to set up an apache resource group (scalable) on the two nodes, but I don't get the zone cluster nodes as valid options to use while running clsetup and/or th

  • Attach query output to notification email

    hi i have a user defined metric which sends an email if a query returns more than 3 rows ( select count(*) from mytable; i also like to have output of below query embedded within the email notification select * from mytable; is that's possible? grid

  • Midnight C.: two ways of launch, one - letters instead of lines. Why?

    I may launch Midnight Commander in a three ways. Two of them are OK. But the third will bring drawing borders with letters instead of lines. I'm using LXTerminal (I think it doesn't matter). Below there is screenshot with launch results. Launch comma

  • Joining temporary and regular tables

    Can you create join between a temporary table and a permanent one?  I'm not sure how that would work.