I want to create xml file using photoshop script and also i can easily add, modify, delete based on file name

Hi,
Please help me for this.
I need to create XML file for mentioned below. when i run the photoshop script i need deatails for active document name, date, time and status.
<?xml version="1.0" encoding="UTF-8"?>
<sample>
<filename>Cradboard_Boxes_Small.tif</filename>
<date>today date</date>
<starttime>now</starttime>
<status>delivered</status>
</sample>
<sample>
<filename>Cardboard_Boxes_Student_Vaue_Pack.jpg</filename>
<date>today date</date>
<starttime>now</starttime>
<status>delivered</status>
</sample>
I need read that xml after creating and modify based on file name. i need to modify status after file finished.
if the file name is already exist i want to modify or delete or add whatever i need.
Kindly help me simple way

You may want to look into getting Xtools ps-scripts - Browse Files at SourceForge.net then.  Most of the support is for ActionManager script code where XML code is use as an intermediate step.  There are quite a few Photoshop script in XTools .   Ross Huitt is an expert javascript programmer though is is fed up with Adobe's lack of support for Photoshop scripting particularly the bugs in ScriptUI he is still maintaining tool he  has created for us free of charge. Tools like Image Processor Pro. None of his scripts are save as binary so you can read all of his code there is a wealth of knowledge in there....
Also there is a scripting forum Photoshop Scripting

Similar Messages

  • First of all, I would have to say that getting in touch with you is a nightmare and I am not at all happy that I can't just email or live chat with someone who can help!  I am not a technical person, I just want to be able to use Photoshop Elements and ge

    First of all, I would have to say that getting in touch with you is a nightmare and I am not at all happy that I can't just email or live chat with someone who can help!  I am not a technical person, I just want to be able to use Photoshop Elements and get on with it. I bought Photoshop Elements via Amazon some months ago and it worked fine.  I then got a message that advised that the trial version would expire, which it subsequently has (I have been trawling your site for weeks and weeks trying to find an email or phone contact to get some assistance).  Relucltantly, I am now typing this - and I suspect it will not help in the slightest!  I bought the FULL not TRIAL edition of Photoshop Elements and I have contacted Amazon who confirmed this, but say I need to contact you.  Can you please let me know how I can resolve this?  Louise A Fraser

    Hi Louise, sorry to hear of your problems. This is not Adobe. We are mainly support volunteers, other users like you, trying to help one another.  You need to contact Adobe directly for activation and licencing issues. Click the link below. Use the dropdown menu for boxes (1) & (2) to scroll down the list and choose:
    1. Adobe Photoshop Elements
    2. Adobe ID, and signing-in
    3. Click on the blue button: Still need help? Contact us – then click the area marked chat 24/7, then click “start chat ”
    It’s usually possible to start a live chat, if an Adobe agent is free, and often to get the problem fixed right away. Have your serial number available. The agent can directly troubleshoot your system if you agree to activate the Adobe Connect add-on. Don’t let them pass the buck. Stay connected and ask to speak with a supervisor if necessary.
    Click here to get help now Contact Customer Care

  • Creating animated GIF using Photoshop Scripting

    Hi,
    I am trying to mimic the action "Save for Web & Devices" of a PSD file, having 4 frames in an animation, into an animated GIF file.
    I was suggested to use "ScriptingListener", but I did the copy/paste of the code, it did not work.
    Is there a way to code a script, by using classes/functions to achieve this result ?
    Thank you in advance.
    Jean-Louis

    Yes that's my understanding for Javascript, with clarification that with "compile them all into animated GIF through script" using some external program (e.g. check out ImageMagick). Whether that is an OK solution depends on what you are trying to do (just for own internal use or distribution).
    For the Javascript docs see http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop-cc-javascr ipt-ref.pdf

  • How to create a group using photoshop scripting?

    Hey guys,
    I can create a layer easily by the below code.
    but how can i create a group that contain more than one layer.
    var docRef = app.documents.add();
    var myLayer = docRef.artLayers.add();

    Here is an example..
    var doc = app.documents.add();
    var newLayerSet = doc.layerSets.add();
    var myLayer = doc.artLayers.add();
    var myLayer2 = doc.artLayers.add();
    //move the layers into the layerset
    myLayer.move(newLayerSet, ElementPlacement.INSIDE);
    myLayer2.move(newLayerSet, ElementPlacement.INSIDE);

  • How can I create DVD Label using Photoshop Elements 10?

    How can I create DVD label using Photoshop Elements 10?
    Richard

    You can create the design for a DVD label in Create>More Options. Once you have the label set up, you would copy it to a template for the labels you plan to use. (The PSE template makes one label, while most printed labels are two-up.)

  • How to get ORA errors in alertlog file using shell script.

    Hi,
    Can anyone tell me how to get all ORA errors between two particular times in an alertlog file using shell script.
    Thanks

    Hi,
    You can define the alert log as an external table, and extract messages with SQL, very cool:
    http://www.dba-oracle.com/t_oracle_alert_log_sql_external_tables.htm
    If you want to write a shell script to scan the alert log, see here:
    http://www.rampant-books.com/book_2007_1_shell_scripting.htm
    #!/bin/ksh
    # log monitoring script
    # report all errors (and specific warnings) in the alert log
    # which have occurred since the date
    # and time in last_alerttime_$ORACLE_SID.txt
    # parameters:
    # 1) ORACLE_SID
    # 2) optional alert exclusion file [default = alert_logmon.excl]
    # exclude file format:
    # error_number error_number
    # error_number ...
    # i.e. a string of numbers with the ORA- and any leading zeroes that appear
    # e.g. (NB the examples are NOT normally excluded)
    # ORA-07552 ORA-08006 ORA-12819
    # ORA-01555 ORA-07553
    BASEDIR=$(dirname $0)
    if [ $# -lt 1 ]; then
    echo "usage: $(basename) ORACLE_SID [exclude file]"
    exit -1
    fi
    export ORACLE_SID=$1
    if [ ! -z "$2" ]; then
    EXCLFILE=$2
    else
    EXCLFILE=$BASEDIR/alert_logmon.excl
    fi
    LASTALERT=$BASEDIR/last_alerttime_$ORACLE_SID.txt
    if [ ! -f $EXCLFILE ]; then
    echo "alert exclusion ($EXCLFILE) file not found!"
    exit -1
    fi
    # establish alert file location
    export ORAENV_ASK=NO
    export PATH=$PATH:/usr/local/bin
    . oraenv
    DPATH=`sqlplus -s "/ as sysdba" <<!EOF
    set pages 0
    set lines 160
    set verify off
    set feedback off
    select replace(value,'?','$ORACLE_HOME')
    from v\\\$parameter
    where name = 'background_dump_dest';
    !EOF
    `
    if [ ! -d "$DPATH" ]; then
    echo "Script Error - bdump path found as $DPATH"
    exit -1
    fi
    ALOG=${DPATH}/alert_${ORACLE_SID}.log
    # now create awk file
    cat > $BASEDIR/awkfile.awk<<!EOF
    BEGIN {
    # first get excluded error list
    excldata="";
    while (getline < "$EXCLFILE" > 0)
    { excldata=excldata " " \$0; }
    print excldata
    # get time of last error
    if (getline < "$LASTALERT" < 1)
    { olddate = "00000000 00:00:00" }
    else
    { olddate=\$0; }
    errct = 0; errfound = 0;
    { if ( \$0 ~ /Sun/ || /Mon/ || /Tue/ || /Wed/ || /Thu/ || /Fri/ || /Sat/ )
    { if (dtconv(\$3, \$2, \$5, \$4) <= olddate)
    { # get next record from file
    next; # get next record from file
    # here we are now processing errors
    OLDLINE=\$0; # store date, possibly of error, or else to be discarded
    while (getline > 0)
    { if (\$0 ~ /Sun/ || /Mon/ || /Tue/ || /Wed/ || /Thu/ || /Fri/ || /Sat/ )
    { if (errfound > 0)
    { printf ("%s<BR>",OLDLINE); }
    OLDLINE = \$0; # no error, clear and start again
    errfound = 0;
    # save the date for next run
    olddate = dtconv(\$3, \$2, \$5, \$4);
    continue;
    OLDLINE = sprintf("%s<BR>%s",OLDLINE,\$0);
    if ( \$0 ~ /ORA-/ || /[Ff]uzzy/ )
    { # extract the error
    errloc=index(\$0,"ORA-")
    if (errloc > 0)
    { oraerr=substr(\$0,errloc);
    if (index(oraerr,":") < 1)
    { oraloc2=index(oraerr," ") }
    else
    { oraloc2=index(oraerr,":") }
    oraloc2=oraloc2-1;
    oraerr=substr(oraerr,1,oraloc2);
    if (index(excldata,oraerr) < 1)
    { errfound = errfound +1; }
    else # treat fuzzy as errors
    { errfound = errfound +1; }
    END {
    if (errfound > 0)
    { printf ("%s<BR>",OLDLINE); }
    print olddate > "$LASTALERT";
    function dtconv (dd, mon, yyyy, tim, sortdate) {
    mth=index("JanFebMarAprMayJunJulAugSepOctNovDec",mon);
    if (mth < 1)
    { return "00000000 00:00:00" };
    # now get month number - make to complete multiple of three and divide
    mth=(mth+2)/3;
    sortdate=sprintf("%04d%02d%02d %s",yyyy,mth,dd,tim);
    return sortdate;
    !EOF
    ERRMESS=$(nawk -f $BASEDIR/awkfile.awk $ALOG)
    ERRCT=$(echo $ERRMESS|awk 'BEGIN {RS="<BR>"} END {print NR}')
    rm $LASTALERT
    if [ $ERRCT -gt 1 ]; then
    echo "$ERRCT Errors Found \n"
    echo "$ERRMESS"|nawk 'BEGIN {FS="<BR>"}{for (i=1;NF>=i;i++) {print $i}}'
    exit 2
    fi

  • How can I create an csv/excel file using pl/sql and then sending that file

    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.

    968776 wrote:
    How can I create an csv/excel file using pl/sql and then sending that file to a clients site using pl/sql?
    I know how to create the csv/excel file but I can't figure out how I would get it to the clients site.You are trying to do it at a wrong place..
    Whay do you want database (pl/sql) code to do these things?
    Anyhow, you may be interested in :
    {message:id=9360007}
    {message:id=9984244}

  • Creating XML report using PL/SQL Stored Procedure

    Hi Friends,
    I am working on an xml report with the xml source as PL/SQL Stored Procedure.
    I am referring the exercise shown in the following link to understand the process:
       http://orclapp.blogspot.com/2012/02/developing-xml-publisher-report-using.html
    In the example shown in the above link I could not understand the following:
    1) In the following procedure, the out parameter 'retcode' is not used at all.
       What is the importance of this parameter.
        PROCEDURE REPORT (errbuf  OUT VARCHAR2, retcode  OUT VARCHAR2, p_product_id   IN     NUMBER)
    2)  After the xml data is prepared and put to 'l_result' Clob variable, the following
        Loop is executed. I am not able to appreciate why the following loop is required.
         LOOP
             EXIT WHEN l_length = l_retrieved;
             IF (l_length - l_retrieved) < 32000
             THEN
                SELECT SUBSTR (l_result, l_retrieved + 1) INTO l_xmlstr FROM DUAL;
                l_retrieved := l_length;
                fnd_file.put_line (fnd_file.output, l_xmlstr);
             ELSE
                SELECT SUBSTR (l_result, l_retrieved + 1, l_offset)
                  INTO l_xmlstr
                  FROM DUAL;
                l_retrieved := l_retrieved + l_offset;
                fnd_file.put_line (fnd_file.output, l_xmlstr);
             END IF;
         END LOOP;
    3) In the example it is not explained how the concurrent program gets the xml data?
       I assume it is written to a file using the following line of code:
        fnd_file.put_line (fnd_file.output, l_xmlstr);
       I would appreciate if anyone can throw some light into my above queries so that I can understand the process clearly.
    Thanks & Regards
    Hawker

    Hi 32000 in the code is a 'safe' size smaller than the max available 32767, the loops purpose is to move through the entire thing in chunks that will be manageable in the limits of the data type.
    Btw; if you are in Oracle e-business suite then you can also use Oracle reports very simply to create XML output.
    If you have reports developer all you need to do is put raw sql (without any 'artifice' to create XML) in the report SQL and then set the reports output to XML in the program definition in Oracle e-business.
    best regards,
    Robert.

  • I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen

    I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen. Please help !!
    My transcend HD is on read only mode I guess. What to do? I dont have a windows computer to check and I need to create the back up right now..

    Welcome to Apple Support Communities
    It looks like the external disk is formatted in NTFS, a format that OS X can't write in. The solution is to format the external drive in "Mac OS Extended (Journaled)" (if you are going to get a Mac), or "MS-DOS (FAT)" (if you are going to get a PC) as Format in Disk Utility > http://pondini.org/OSX/DU1.html
    Then, you will be able to copy the files you need to the external drive. Note that "MS-DOS (FAT)" doesn't support files bigger than 4 GB.
    <Edited By Host>

  • Can I open raw files using photoshop elements

    Can I open raw files using photoshop elements

    Yes, depending on the Camera Model and version of PSE.
    All camera makers like to make slight changes to the RAW format for their new models. Adobe then take a few months to produce a camera RAW plug-in to process the new format.
    Give you PSE version and camera model and we could be more help.
    Brian

  • DynamicLink Media Server is not available. I can't open any video file in Photoshop CC and when it does, Photoshop freezers and I can't do anything else. I'm using OS X 10.9.4-3.1 GHz Intel-16 GB DDR3. Any help please?

    DynamicLink Media Server is not available. I can't open any video file in Photoshop CC and when it does, Photoshop freezers and I can't do anything else. I'm using OS X 10.9.4-3.1 GHz Intel-16 GB DDR3. Any help please?

    Indicas que no puedes abrir ningun archivo de video, se supone que has probado varios formatos, mp4, mov,..
    Has actualizado el OSX a 10.9 ?, funcionaba antes? La versión de Photoshop es la CC, no la CC 2014?
    En el menú de Ayuda>Actualizaciones, cual es el resultado, dice que esta al día?
    Tienes abiertas otras aplicaciones?
    Prueba a cerrar todo, espera media minuto y abre Photoshop a ver que ocurre.
    (Estas utilizando un MacBook Pro?)

  • I want to create a book using the photos in the order I have them in the album I created, but book has them all mixed up

    I want to create a book using the photos in the order I have them in the album I created, but book has them all mixed up

    the only reported way is to redo the dates in the album and then start the book since books use date order
    LN

  • I need to work with the RAW files on a SONY RX100III. I use Photoshop CS5 and a Mac operating system OSX 10.6.

    I need to work with the RAW files on a SONY RX100III camera. I use Photoshop CS5 and a Mac operating system OSX 10.6. Is there an Camera RAW upgrade or an alternative program that works here?

    You don't. Since you have an Intel Mac, buy a Mac OS X 10.6 DVD from the online Apple Store.
    (71894)

  • Cannot open dng files using Photoshop CS4 after formatting my computer.

    I had  Photoshop CS4 installed at my desktop and because I couldn't open my raw files taken with my Sony A99 I downloaded DNG Data Converter.After that I was able to open my dng files using Photoshop CS4.After some months I formatted my computer and I reinstalled Photoshop CS4.Now I cannot open my older dng files and I get an error message.Also I cannot update my initial version of Photoshop from version 11.0.

    Mac or Win?
    Did you update Photoshop after reinstalling it?
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, such as total installed RAM, scratch file HDs, video card specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I have a survey sharepoint list, now i want to create a webpart using this list.

    Hi All,
    i have a survey sharepoint list, now i want to create a webpart using this list.
    webpart is to "display one question from survey sharepoint list(latest question)" and enduser participate on the survey when enduser submits the question(survey), save the result in to the list and result will display as graphical representation.
    How can i do this requirement, any help?

    You do not need to create a custom web part if you need to show the latest question and then display result in graphical way. The Survey list gives that OOTB.
    If there is a specific requirement, you can use Server/Client Object Model and achieve it.

Maybe you are looking for

  • HOW TO KNOW THE TCODE FOR CREATING A NEW ENTRY IN A PARTICULAR TABLE

    HI,     CAN YOU PLEASE LET ME KNOW THE PROCEDURE TO GET THE TCODE FOR CREATING A NEW ENTITY IN A TABLE .    EG: IS THERE ANY PROCEDURE TO KNOW THAT IF I CREATE A NEW ENTITY IN MM01 IT WILL BE STORED IN TABLE MARA. THANKING YOU.

  • Why does my Mac Mail programme keep turning on the SSL option?

    For a couple of years now my wife's Mac Mail programme has from time to time stopped getting most of the emails sent to it for a week or more. I've wasted many hours on the phone to our service provider without ever getting to the bottom of the probl

  • My ADE is flushing all the type in my EPUB left

    Hi All - I am new to the group.  My newly installed 2.0 ADE is flushing all the headings and type left on my EPUB-validated creation.  My epub reads wonderfully in ipad, nook, converted to mobi for Kindle, etc.  But when I drop my epub onto the ADE o

  • Theres very little sound coming from my speaker and people cant hear me i phone 4

    theres very little sound coming from my speaker when i play music and ringtone it was working fine last night also when its going straight to voicemail when people ring but then coming through as a missed call, then when i recive calls i can hear peo

  • What now?

    Talk about my luck... I decided to reinstall my my PC with X64 to see what gains the extra gig could give me in gaming performance. All is well, I download FireFox, then AVG, and restarted all in good order. Then I download ATI drivers and on the res