ZE5700 Bios save / restore help

Hello, 
I recently replaced the motherboard in my daughters Hp ZE5700 and now  windows XP will not complete installation and Im assuming it because the BIOS serial number, UUID and other information is missing. The replacment motherboard was the same model as the old one PN # 355478-001
I  can still use the old motherboard since the reason for replacment was just a bad power jack. My question is, is there some way I can copy/save the information from the broken motherboard bios and then restore this info to the new motherboard after I reinstall it?
I do know I can send this in for repair but Im sure the cost would be more than this old laptop is worth. The power jack has been replaced 2 times and is very badly burned this time and dont think its repairable.
Any help would be greatly appreciated. 
Bios version from old board
Phoenix Bios 4.0 Release 6.0
HP Notebook PC Bios Version KH.F.21

Is it possible for you to post the string on top of your RAM socket at the bottom of both new and old motherboards?
It should look like the following;
31KT9MB00XX YYYY where X is numeric and Y is alpha-numeric
There is a tool called cpqtag ( has to run in pure DOS disk ) from the following url
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1268967836844+28353475&...
You may want to use to enter the old serial number from old motherboard to the new motherboard to see if it can resolve your problem for you.

Similar Messages

  • My ipod shuffle 1st generation won't restore. There is an error that reads "The ipod cannot be restored. An unknown error has ocurred (1442)". The lights blink orange and green simultaneously...and it just won't restore. help?

    So it's the little thin ipod with no screen...that has the usb thing and the landyard. Whenever I try restoring it it tries to restore and then a message pops up. There is an error that reads "The ipod cannot be restored. An unknown error has ocurred (1442)". The lights blink orange and green simultaneously...and it just won't restore. help?. I have literally tried restoring it like 10 times and nothing happens. When i connect headphones it does not hear and that little light think happens....which i had never seen happen before. I need to fix it. ....please help....if i take it to an apple store....will it cost alot to fix that?

    reset utility should help...for mac
    http://www.apple.com/support/downloads/ipodresetutility103formac.html
    for windows
    http://www.apple.com/support/downloads/ipodresetutility104forwindows.html

  • HT4623 I tried to update my ipad with IOS7, it crashed!!!!!! now my ipad will not work, have tried to restore the ipad, will not restore, help please??

    I tried to update my ipad with IOS7, it crashed!!!!!! now my ipad will not work, have tried to restore the ipad, will not restore, help please??

    I tried to update my ipad with IOS7, it crashed!!!!!! now my ipad will not work, have tried to restore the ipad, will not restore, help please??

  • Save / Restore State Question

    When writing a custom component, does one need to save/restore the state of facets and children. Or is this done automatically?
    Thanks,
    Ryan

    you don't need to. Its taken care of by JSF.
    -Jayashri

  • Save/restore in PostScript

    Hi,
    I'm student of SPbSU. I have the work "Compiling PostScript's programs into Java byte-code" in this year.
    Can anyone explain, how does save/restore work with composite objects? How does "save" do the snapshot, when many composite objects share the same value. Does it change references?  How does PostScript restore their references afterwards ?  It is necessary to understand because it's not clear how to realize these operators in Java.
    Thanks,
    Artur.

    You have an interesting challenge. The definition of the effect of save is in the PostScript Language Reference. There are no rules about how it is done. Because composite objects are large, they are not usually actually duplicated. There are a number of possible implementations, but one possibility is to store as part of the composite definition the level to which it belongs, then duplicate-on-write. You would probably need to implement your own primitive objects as classes, for all PostScript object types, rather than use the direct Java implementation because every type of PostScript object has special properties not available to Java (e.g. literal/executable). Really, you are writing a PostScript interpreter, be aware that this is likely to be many years of work.

  • My iphone5 won't restore help!

    My iphone5 won't restore help!

    Hello there, Sandiii.
    The following Knowledge Base article provides some great instruction on how to restore, if you're unable to:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • HT201263 My iphone5 won't restore help!

    My iphone5 won't restore help!

    Hello there, Sandiii.
    The following Knowledge Base article provides some great instruction on how to restore, if you're unable to:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • MOVED: BIOS PANIC---Please Help!!! (Amd athlon Xp2100+)

    This topic has been moved to  AMD Socket A Forum
    BIOS PANIC---Please Help!!! (Amd athlon Xp2100+)

    ...OK...you're in the wrong forum but here's what happened...your FSB was set to 100 after you flashed...correct setting for 2100+ XP is 133 (2 X 133 = 266MHz)...

  • My iphone wont turn on or restore,HELP error code 1015

    My iphone wont turn on or restore,HELP error code 1015

    jailbroken? if so we can't help here, try google.

  • Save/Restore Config using ASDM ?

    Hi Experts,
    Is it possible to Save/Restore the running/startup configuration of ASA using ASDM ?
    Just like we do on other firewalls like SonicWall, Cyberoam and all all , Save the configuration to a file on your local machine and then upload the file to restore the configuration . Is it possible using ASDM ?
    Regards,
    Anup

    Hi,
    I have personally never done this as I always rely on the CLI when doing anything related to the softwares and configurations.
    It seems though that the ASDM contains a backup/restore feature.
    You can check the "Tools" menu in the upper taskbar of the ASDM.
    It creates a compressed file of the ASA settings (and other material) which you to my understading later use with the restore option.
    The CLI format for backing up your configurations would be
    To external host with TFTP
    copy startup-configuration tftp://x.x.x.x/filename.xyz
    copy running-configuration tftp://x.x.x.x/filename.xyz
    To the ASAs Flash memory
    This enabled you to easily boot the old configuration from the file you have saved to the flash.
    copy startup-configuration flash:/filename.xyz
    copy running-configuration flash:/filename.xyz
    Also you can naturally just take "show running-config" or "show startup-config" from the CLI and copy/paste to a text document.
    Notice that the above formats doesnt include PSK or AAA server key information in clear text
    To view them in clear text use the command.
    more system:running-config
    Naturally if you have copied a configuration file to an external host or Flash memory you dont need to know the PSKs/AAA keys since they are already included in the configuration.
    - Jouni

  • Kt3ultra(nonAru)NEED HELP!!no bios save!

    Hi everybody!!
    I am new with the forum, and have a problem with my kt3utlra.
    I bougth it USED, bulk, to make a office-use pc for my girlfriend.
    PROBLEM: When I turn it on the cpuFAN starts, but I have no video signal.
    Then I clear the CMOS by shorting jbat1 for 10 seconds or removing the battery, turn on the pc, and it starts, but it makes 2short beeps and a third bip after a 1 second pause. The bios starts, make the post and find the HD.
    But the process stops because it says me that the CMOS configuration in incorrect, and I have two choices: F1 to enter the setup, F2 to load the std config.
    If I enter the setup, ami 5.7, I can manage it, but when I confirm "save and exit" the monitor turn of and the pc dies (ctrl+alt+canc doesn't work, I can't reset, I have to turn-off by pushign the power-on swich for 8 seconds).
    Now if I restart, the monitor stays off. NO beeps, nothing. If I clear again the CMOS, I have again the former process (pc starts, but dies after saving the changes to the bios)
    If I press F2 I can load from winMe boot disc and get the prompt a:>. Here I can load the ami tool to flasch the bios and flash the bios, but after flashing, when it should restart, the monitor turns off, as before, and nothing more happends.
    WHAT CAN I MAKE??????????????????? I DON'T UNDERSTAND.
    PLEASE HELP ME!!!!!!!
    ps: on the bios there is a label: phoenix d686...but kt3ultra only mount AMI bios!!!! What does it means?
    thank to everybody who will help me!
    I have an athlon 1333, 256 Mb pc2100 + 256 Mb pc2700, HD quantum fireball 20.5Gb IBM, PSU primex 350W (200W with 5V+3,3V) (28A,35A,16A with 12V), and an old PCI vga sis, since I'm still waiting for the shipping of a radeon9200SE.

    tks everybody!! I was away for some days and I could not connect to the net.
    I'm afraid that the my mobo is an OEM version, because I read a label on the bios, on which results that it is PHOENIX bios (that is award bios )
    The problem is tha on the bios is written the release 5.7 of the official AMI bios. How is it possible? I read on an other post that a guy bought an oem version with the award bios 5.0, but he was not allowed to update the bios to the ami 5.7 because of the software. Probabli who sold me the mobo achieved it
    But now? what could i make?
    Also the problem of the 4 pin-12V PSU cable is possible, but the mobo has not it. Where could I connect it? the PSU has it.
    Finally, I tried with both dimms of ram, than with each one, but the result was always the same: black screen after saving and exiting, no possibility to reset or use the ctrl+alt+del. Even if I turn-off the pc without clearing the cmos or removing the battery, I can't restart the pc: the cooler starts, but all the rest is black and silent, no beeps, nothing.
    that' s all!
    Thank again for your help!!!! IF you heve more ideas , please, let me know.
    Bye!

  • I want to Save Photo from Corrupt iPod before a Restore - Help!

    I use my iPod to store photos from my camera when I travel. I just got back from Peru with 13 photo library imports. Sat down to move the files into iPhoto. When I plugged into my Mac, iTunes opened and I quickly unplugged the iPod (BIG mistake). Now when I connect the iPod, iTunes opens and says the iPod is corrupt and needs to be restored. The "Do not discconect" logo blinks without resolution. HELP!
    I can see the import library when I go to Photos/Photo Import menu so they appear to still be on the iPod. I just cannot get it to connect now with the Mac.
    Will the restore erase the photos? The warning message says it will erase the music and data files (does that mean music data files, or all photo files too?).
    Is there a way to grab the photo import files from my iPod before I do a restore?
    How do I rescue these pictures??????

    The suggested software is designed to offload iPod pictures and requires the ability to converse with iTunes. What I have are still camera pictures in waiting for offload to iPhoto and then an upload to the iPod as pictures.
    My iPod is not recognized by iTunes and just blinks with the do not disconnect icon when plugged into the computer. So any software that requires an interface with iTunes won't work. I need something that will bypass the corrupted interface and let me offload the photo import library files before I do a restore.
    What is the workaround idea? I am open to anything that will help me get the files off of my iPod before I do a restore. Thanks!

  • Saveas Scripting help request

    I am trying to piece together a maro that will initially resize an image and save it with a different suffix at different size increments. I found within the cs5 scripts folder the macro 'Fit Image.jsx' that would allow me to resize correctly but am lost on how to add in the subsequent save steps and additional resize and saves. I would like to have it save the image with 5 different file sizes and suffixes (400x400 '-2' suffix, 250x250 '-2T', 150x150 '-1', 100x100 '-0', and 50x50 '-2S'). I found some information on the saveas http://forums.adobe.com/message/2652204 but have no experience with javascript. I have some understanding of VBA and believe a loop could be used but haven't the slightest idea how to set this up. Is there anyone out there that could help walk me through this and lend me a hand?
    ---Below contains the 'Fit Image.jsx' file that I found---
    // c2008 Adobe Systems, Inc. All rights reserved.
    // Written by Ed Rose
    // based on the ADM Fit Image by Charles A. McBrian from 1997
    // edited by Mike Hale added option to avoid resize on images already smaller than target size
    @@@BUILDINFO@@@ Fit Image.jsx 1.0.0.21
    /* Special properties for a JavaScript to enable it to behave like an automation plug-in, the variable name must be exactly
       as the following example and the variables must be defined in the top 1000 characters of the file
    // BEGIN__HARVEST_EXCEPTION_ZSTRING
    <javascriptresource>
    <name>$$$/JavaScripts/FitImage/Name=Fit Image...</name>
    <menu>automate</menu>
    <enableinfo>true</enableinfo>
    <eventid>3caa3434-cb67-11d1-bc43-0060b0a13dc4</eventid>
    <terminology><![CDATA[<< /Version 1
                             /Events <<
                              /3caa3434-cb67-11d1-bc43-0060b0a13dc4 [($$$/AdobePlugin/FitImage/Name=Fit Image) /imageReference <<
                               /width [($$$/AdobePlugin/FitImage/Width=width) /pixelsUnit]
                               /height [($$$/AdobePlugin/FitImage/Height=height) /pixelsUnit]
                               /limit [($$$/AdobePlugin/FitImage/limit=Don't Enlarge) /boolean]
                              >>]
                             >>
                          >> ]]></terminology>
    </javascriptresource>
    // END__HARVEST_EXCEPTION_ZSTRING
    // enable double clicking from the Macintosh Finder or the Windows Explorer
    #target photoshop
    // debug level: 0-2 (0:disable, 1:break on error, 2:break at beginning)
    // $.level = 2;
    // debugger; // launch debugger on next line
    // on localized builds we pull the $$$/Strings from a .dat file, see documentation for more details
    $.localize = true;
    var isCancelled = true; // assume cancelled until actual resize occurs
    // the main routine
    // the FitImage object does most of the work
    try {
        // create our default params
        var sizeInfo = new SizeInfo();
        GlobalVariables();
        CheckVersion();
        var gIP = new FitImage();
        if ( DialogModes.ALL == app.playbackDisplayDialogs ) {
            gIP.CreateDialog();
            gIP.RunDialog();
        else {
            gIP.InitVariables();
            ResizeTheImage(sizeInfo.width.value, sizeInfo.height.value);
        if (!isCancelled) {
            SaveOffParameters(sizeInfo);
    // Lot's of things can go wrong
    // Give a generic alert and see if they want the details
    catch( e ) {
        if ( DialogModes.NO != app.playbackDisplayDialogs ) {
            alert( e + " : " + e.line );
    // restore the dialog modes
    app.displayDialogs = gSaveDialogMode;
    isCancelled ? 'cancel' : undefined;
    function ResizeTheImage(width, height) {
        var oldPref = app.preferences.rulerUnits;
        var docWidth;
        var docHeight;
        var docRatio;
        var newWidth;
        var newHeight;
        var resolution = app.activeDocument.resolution;
        var limit = sizeInfo.limit;
        app.preferences.rulerUnits = Units.PIXELS; // save old preferences
        // original width, height
        docWidth = (1.0 * app.activeDocument.width * resolution) / 72.0; // decimal inches assuming 72 dpi (used in docRatio)
        docHeight = (1.0 * app.activeDocument.height * resolution) / 72.0; // ditto
        if (docWidth < 1.0 || docHeight < 1.0)
            return true; // error
        if (width < 1 || height < 1)
            return true; // error
        if ( limit && ( docWidth <= width && docHeight <= height ) ){
            app.preferences.rulerUnits = oldPref; // restore old prefs
            isCancelled = false; // if get here, definitely executed
            return false; // no error
        docRatio = docWidth / docHeight; // decimal ratio of original width/height
        newWidth = width;
        newHeight = ((1.0 * width) / docRatio); // decimal calc
        if (newHeight > height) {
            newWidth = docRatio * height; // decimal calc
            newHeight = height;
        // resize the image using a good conversion method while keeping the pixel resolution
        // and the aspect ratio the same
        app.activeDocument.resizeImage(newWidth, newHeight, resolution, ResampleMethod.BICUBIC);
        app.preferences.rulerUnits = oldPref; // restore old prefs
        isCancelled = false; // if get here, definitely executed
        return false; // no error
    // created in
    function SaveOffParameters(sizeInfo) {
        // save off our last run parameters
        var d = objectToDescriptor(sizeInfo, strMessage);
        app.putCustomOptions("3caa3434-cb67-11d1-bc43-0060b0a13dc4", d);
        app.playbackDisplayDialogs = DialogModes.ALL;
        // save off another copy so Photoshop can track them corectly
        var dd = objectToDescriptor(sizeInfo, strMessage);
        app.playbackParameters = dd;
    function GlobalVariables() {
        // a version for possible expansion issues
        gVersion = 1.1;
        gMaxResize = 300000;
        // remember the dialog modes
        gSaveDialogMode = app.displayDialogs;
        app.displayDialogs = DialogModes.NO;
        gInAlert = false;
        // all the strings that need to be localized
        strTitle = localize( "$$$/JavaScript/FitImage/Title=Fit Image" );
        strConstrainWithin = localize( "$$$/JavaScript/FitImage/ConstrainWithin=Constrain Within" );
        strTextWidth = localize("$$$/JavaScripts/FitImage/Width=&Width:");
        strTextHeight = localize("$$$/JavaScripts/FitImage/Height=&Height:");
        strTextPixels = localize("$$$/JavaScripts/FitImage/Pixels=pixels");
        strButtonOK = localize("$$$/JavaScripts/FitImage/OK=OK");
        strButtonCancel = localize("$$$/JavaScripts/FitImage/Cancel=Cancel");
        strTextSorry = localize("$$$/JavaScripts/FitImage/Sorry=Sorry, Dialog failed");
        strTextInvalidType = localize("$$$/JavaScripts/FitImage/InvalidType=Invalid numeric value");
        strTextInvalidNum = localize("$$$/JavaScripts/FitImage/InvalidNum=A number between 1 and 300000 is required. Closest value inserted.");
        strTextNeedFile = localize("$$$/JavaScripts/FitImage/NeedFile=You must have a file selected before using Fit Image");
        strMessage = localize("$$$/JavaScripts/FitImage/Message=Fit Image action settings");
        strMustUse = localize( "$$$/JavaScripts/ImageProcessor/MustUse=You must use Photoshop CS 2 or later to run this script!" );
        strLimitResize = localize("$$$/JavaScripts/FitImage/Limit=Don^}t Enlarge");
    // the main class
    function FitImage() {
        this.CreateDialog = function() {
            // I will keep most of the important dialog items at the same level
            // and use auto layout
            // use overriding group so OK/Cancel buttons placed to right of panel
            var res =
                "dialog { \
                    pAndB: Group { orientation: 'row', \
                        info: Panel { orientation: 'column', borderStyle: 'sunken', \
                            text: '" + strConstrainWithin +"', \
                            w: Group { orientation: 'row', alignment: 'right',\
                                s: StaticText { text:'" + strTextWidth +"' }, \
                                e: EditText { preferredSize: [70, 20] }, \
                                p: StaticText { text:'" + strTextPixels + "'} \
                            h: Group { orientation: 'row', alignment: 'right', \
                                s: StaticText { text:'" + strTextHeight + "' }, \
                                e: EditText { preferredSize: [70, 20] }, \
                                p: StaticText { text:'" + strTextPixels + "'} \
                            l: Group { orientation: 'row', alignment: 'left', \
                                    c:Checkbox { text: '" + strLimitResize + "', value: false }, \
                        buttons: Group { orientation: 'column', alignment: 'top',  \
                            okBtn: Button { text:'" + strButtonOK +"', properties:{name:'ok'} }, \
                            cancelBtn: Button { text:'" + strButtonCancel + "', properties:{name:'cancel'} } \
            // the following, when placed after e: in w and h doesn't show up
            // this seems to be OK since px is put inside the dialog box
            //p: StaticText { text:'" + strTextPixels + "'}
            // create the main dialog window, this holds all our data
            this.dlgMain = new Window(res,strTitle);
            // create a shortcut for easier typing
            var d = this.dlgMain;
            // match our dialog background color to the host application
            d.graphics.backgroundColor = d.graphics.newBrush (d.graphics.BrushType.THEME_COLOR, "appDialogBackground");
            d.defaultElement = d.pAndB.buttons.okBtn;
            d.cancelElement = d.pAndB.buttons.cancelBtn;
        } // end of CreateDialog
        // initialize variables of dialog
        this.InitVariables = function() {
            var oldPref = app.preferences.rulerUnits;
            app.preferences.rulerUnits = Units.PIXELS;
            // look for last used params via Photoshop registry, getCustomOptions will throw if none exist
            try {
                var desc = app.getCustomOptions("3caa3434-cb67-11d1-bc43-0060b0a13dc4");
                descriptorToObject(sizeInfo, desc, strMessage);
            catch(e) {
                // it's ok if we don't have any options, continue with defaults
            // see if I am getting descriptor parameters
            var fromAction = !!app.playbackParameters.count;
            if( fromAction ){
                // reset sizeInfo to defaults
                SizeInfo = new SizeInfo();
                // set the playback options to sizeInfo
                descriptorToObject(sizeInfo, app.playbackParameters, strMessage);
            // make sure got parameters before this
            if (app.documents.length <= 0) // count of documents viewed
                if ( DialogModes.NO != app.playbackDisplayDialogs ) {
                    alert(strTextNeedFile); // only put up dialog if permitted
                app.preferences.rulerUnits = oldPref;
                return false; // if no docs, always return
            var w = app.activeDocument.width;
            var h = app.activeDocument.height;
            var l = true;
            if (sizeInfo.width.value == 0) {
                sizeInfo.width = w;
            else {
                w = sizeInfo.width;
            if (sizeInfo.height.value == 0) {
                sizeInfo.height = h;
            else {
                h = sizeInfo.height;
            app.preferences.rulerUnits = oldPref;
            if ( DialogModes.ALL == app.playbackDisplayDialogs ) {
                var d = this.dlgMain;
                d.ip = this;
                d.pAndB.info.w.e.text = Number(w);
                d.pAndB.info.h.e.text = Number(h);
                d.pAndB.info.l.c.value = sizeInfo.limit;
            return true;
        // routine for running the dialog and it's interactions
        this.RunDialog = function () {
            var d = this.dlgMain;
            // in case hit cancel button, don't close
            d.pAndB.buttons.cancelBtn.onClick = function() {
                var dToCancel = FindDialog( this );
                dToCancel.close( false );
            // nothing for now
            d.onShow = function() {
            // do not allow anything except for numbers 0-9
            d.pAndB.info.w.e.addEventListener ('keydown', NumericEditKeyboardHandler);
            // do not allow anything except for numbers 0-9
            d.pAndB.info.h.e.addEventListener ('keydown', NumericEditKeyboardHandler);
            // hit OK, do resize
            d.pAndB.buttons.okBtn.onClick = function () {
                if (gInAlert == true) {
                    gInAlert = false;
                    return;
                var wText = d.pAndB.info.w.e.text;
                var hText = d.pAndB.info.h.e.text;
                var lValue = d.pAndB.info.l.c.value;
                var w = Number(wText);
                var h = Number(hText);
                sizeInfo.limit = Boolean(lValue);
                var inputErr = false;
                if ( isNaN( w ) || isNaN( h ) ) {
                    if ( DialogModes.NO != app.playbackDisplayDialogs ) {
                        alert( strTextInvalidType );
                    if (isNaN( w )) {
                        sizeInfo.width = new UnitValue( 1, "px" );
                        d.pAndB.info.w.e.text = 1;
                    } else {
                        sizeInfo.height = new UnitValue( 1, "px" );
                        d.pAndB.info.h.e.text = 1;
                        return false;
                else if (w < 1 || w > gMaxResize || h < 1 || h > gMaxResize) {
                    if ( DialogModes.NO != app.playbackDisplayDialogs ) {
                        gInAlert = true;
                        alert( strTextInvalidNum );
                if ( w < 1) {
                    inputErr = true;
                    sizeInfo.width = new UnitValue( 1, "px" );
                    d.pAndB.info.w.e.text = 1;
                if ( w > gMaxResize) {
                    inputErr = true;
                    sizeInfo.width = new UnitValue( gMaxResize, "px" );
                    d.pAndB.info.w.e.text = gMaxResize;
                if ( h < 1) {
                    inputErr = true;
                    sizeInfo.height = new UnitValue( 1, "px" );
                    d.pAndB.info.h.e.text = 1;
                if ( h > gMaxResize) {
                    inputErr = true;
                    sizeInfo.height = new UnitValue( gMaxResize, "px" );
                    d.pAndB.info.h.e.text = gMaxResize;
                if (inputErr == false)  {
                    sizeInfo.width = new UnitValue( w, "px" );
                    sizeInfo.height = new UnitValue( h, "px" );
                    if (ResizeTheImage(w, h)) { // the whole point
                        // error, input or output size too small
                    d.close(true);
                return;
            if (!this.InitVariables())
                return true; // handled it
            // give the hosting app the focus before showing the dialog
            app.bringToFront();
            this.dlgMain.center();
            return d.show();
    function CheckVersion() {
        var numberArray = version.split(".");
        if ( numberArray[0] < 9 ) {
            if ( DialogModes.NO != app.playbackDisplayDialogs ) {
                alert( strMustUse );
            throw( strMustUse );
    function FindDialog( inItem ) {
        var w = inItem;
        while ( 'dialog' != w.type ) {
            if ( undefined == w.parent ) {
                w = null;
                break;
            w = w.parent;
        return w;
    // Function: objectToDescriptor
    // Usage: create an ActionDescriptor from a JavaScript Object
    // Input: JavaScript Object (o)
    //        object unique string (s)
    //        Pre process converter (f)
    // Return: ActionDescriptor
    // NOTE: Only boolean, string, number and UnitValue are supported, use a pre processor
    //       to convert (f) other types to one of these forms.
    // REUSE: This routine is used in other scripts. Please update those if you
    //        modify. I am not using include or eval statements as I want these
    //        scripts self contained.
    function objectToDescriptor (o, s, f) {
        if (undefined != f) {
            o = f(o);
        var d = new ActionDescriptor;
        var l = o.reflect.properties.length;
        d.putString( app.charIDToTypeID( 'Msge' ), s );
        for (var i = 0; i < l; i++ ) {
            var k = o.reflect.properties[i].toString();
            if (k == "__proto__" || k == "__count__" || k == "__class__" || k == "reflect")
                continue;
            var v = o[ k ];
            k = app.stringIDToTypeID(k);
            switch ( typeof(v) ) {
                case "boolean":
                    d.putBoolean(k, v);
                    break;
                case "string":
                    d.putString(k, v);
                    break;
                case "number":
                    d.putDouble(k, v);
                    break;
                default:
                    if ( v instanceof UnitValue ) {
                        var uc = new Object;
                        uc["px"] = charIDToTypeID("#Pxl"); // pixelsUnit
                        uc["%"] = charIDToTypeID("#Prc"); // unitPercent
                        d.putUnitDouble(k, uc[v.type], v.value);
                    } else {
                        throw( new Error("Unsupported type in objectToDescriptor " + typeof(v) ) );
        return d;
    // Function: descriptorToObject
    // Usage: update a JavaScript Object from an ActionDescriptor
    // Input: JavaScript Object (o), current object to update (output)
    //        Photoshop ActionDescriptor (d), descriptor to pull new params for object from
    //        object unique string (s)
    //        JavaScript Function (f), post process converter utility to convert
    // Return: Nothing, update is applied to passed in JavaScript Object (o)
    // NOTE: Only boolean, string, number and UnitValue are supported, use a post processor
    //       to convert (f) other types to one of these forms.
    // REUSE: This routine is used in other scripts. Please update those if you
    //        modify. I am not using include or eval statements as I want these
    //        scripts self contained.
    function descriptorToObject (o, d, s, f) {
        var l = d.count;
        if (l) {
            var keyMessage = app.charIDToTypeID( 'Msge' );
            if ( d.hasKey(keyMessage) && ( s != d.getString(keyMessage) )) return;
        for (var i = 0; i < l; i++ ) {
            var k = d.getKey(i); // i + 1 ?
            var t = d.getType(k);
            strk = app.typeIDToStringID(k);
            switch (t) {
                case DescValueType.BOOLEANTYPE:
                    o[strk] = d.getBoolean(k);
                    break;
                case DescValueType.STRINGTYPE:
                    o[strk] = d.getString(k);
                    break;
                case DescValueType.DOUBLETYPE:
                    o[strk] = d.getDouble(k);
                    break;
                case DescValueType.UNITDOUBLE:
                    var uc = new Object;
                    uc[charIDToTypeID("#Rlt")] = "px"; // unitDistance
                    uc[charIDToTypeID("#Prc")] = "%"; // unitPercent
                    uc[charIDToTypeID("#Pxl")] = "px"; // unitPixels
                    var ut = d.getUnitDoubleType(k);
                    var uv = d.getUnitDoubleValue(k);
                    o[strk] = new UnitValue( uv, uc[ut] );
                    break;
                case DescValueType.INTEGERTYPE:
                case DescValueType.ALIASTYPE:
                case DescValueType.CLASSTYPE:
                case DescValueType.ENUMERATEDTYPE:
                case DescValueType.LISTTYPE:
                case DescValueType.OBJECTTYPE:
                case DescValueType.RAWTYPE:
                case DescValueType.REFERENCETYPE:
                default:
                    throw( new Error("Unsupported type in descriptorToObject " + t ) );
        if (undefined != f) {
            o = f(o);
    // Function: SizeInfo
    // Usage: object for holding the dialog parameters
    // Input: <none>
    // Return: object holding the size info
    function SizeInfo() {
        this.height = new UnitValue( 0, "px" );
        this.width = new UnitValue( 0, "px" );
        this.limit = false;
    // Function: NumericEditKeyboardHandler
    // Usage: Do not allow anything except for numbers 0-9
    // Input: ScriptUI keydown event
    // Return: <nothing> key is rejected and beep is sounded if invalid
    function NumericEditKeyboardHandler (event) {
        try {
            var keyIsOK = KeyIsNumeric (event) ||
                          KeyIsDelete (event) ||
                          KeyIsLRArrow (event) ||
                          KeyIsTabEnterEscape (event);
            if (! keyIsOK) {
                //    Bad input: tell ScriptUI not to accept the keydown event
                event.preventDefault();
                /*    Notify user of invalid input: make sure NOT
                       to put up an alert dialog or do anything which
                             requires user interaction, because that
                             interferes with preventing the 'default'
                             action for the keydown event */
                app.beep();
        catch (e) {
            ; // alert ("Ack! bug in NumericEditKeyboardHandler: " + e);
    //    key identifier functions
    function KeyHasModifier (event) {
        return event.shiftKey || event.ctrlKey || event.altKey || event.metaKey;
    function KeyIsNumeric (event) {
        return  (event.keyName >= '0') && (event.keyName <= '9') && ! KeyHasModifier (event);
    function KeyIsDelete (event) {
        //    Shift-delete is ok
        return ((event.keyName == 'Backspace') || (event.keyName == 'Delete')) && ! (event.ctrlKey);
    function KeyIsLRArrow (event) {
        return ((event.keyName == 'Left') || (event.keyName == 'Right')) && ! (event.altKey || event.metaKey);
    function KeyIsTabEnterEscape (event) {
        return event.keyName == 'Tab' || event.keyName == 'Enter' || event.keyName == 'Escape';
    // End Fit Image.jsx

    With Photoshop CS5 you can use Image Processor Pro and this should do what you require...
    http://blogs.adobe.com/jnack/2011/05/new-image-processor-pro-script-for-cs5.html

  • Ipod Restore help. PLEASE. I'M DESPERATE

    Okay so I have an 80 gb IPod classic. Not sure what generation it is, but I've had it for about 6 years. It has all my music on it, some that I cannot get back unfortunately. I cannot remember the last time (if ever) that I voluntarily backed up the IPod. Now out of nowhere after it being fine, I am getting the message "Use Itunes to Restore" over & over again. I know doing this will wipe away all of my songs, and I don't want that because I can't get a lot of them back. (The first 3 years of having my ipod I used a desktop that has since crashed)
    My question is, does anybody know if there is a way for me to back up my iPod, and then do the restore? I've tried a hard reset and everything, but it just brings me back to the message about restoring. Please help in any way you can!

    Hi ,
    Assign a static ip address on your computer, its either on the wireless connection or on the lan connection , it depends if the computer that wanted to open the ports is wired or wireless...
    Then access the set-up page of the linksys router , open up internet explorer and type 192.168.1.1 or 192.168.2.1 and leave the username blank and admin for the password as default ..
    Click on applications and gaming tab and be sure that you have the ports needed to be forwarded so on the start port, type the port that needs to be opened and type the same port on the end port and protocol and the fourth space for ip address should be the same # on the ip address that you have assigned on the computer and check enable ; do the other things on the other port #s if you do have several port numbers and save settings...
    Hope this helps

  • Bios lockout key - help needed

    Forgot BIOS administrator and power up password.
    After 3 failed attempts got system disable key:
    66144787
    Appreciate help getting my notebook going again.
    This question was solved.
    View Solution.

    Baby try.
    77984218
    Use that code to go into the BIOS.
    Disable all passwords that are enabled.
    If asked for the CURRENT password use that code.
    If asked for NEW password just hit enter.
    If asked to VERIFY password just hit enter.
    Save and exit.
    REO
    I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damage that may arise to your system by using these services. Please be aware that you do this at your own risk.
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

Maybe you are looking for

  • Phone has a ladys voice and it is telling me everything i do how do i turn this off

    i cant turn the guide off on my phone? it wont let me slide to turn off? how do i fix this?

  • Adobe Flash agreement missing so I can't install.

    The Adobe program loads, and says click here to say you have read our agreement. and then offers a link to a url for the agreement. The agreement comes up blank, Firefox says "stopped" http://www.adobe.com/products/eulas/pdfs/PlatformClients_PC_WWEUL

  • Framemaker to Latex

    What is the best strategy to port a 400 pages script to latex from framemaker? So far I was looking into html2latex or xml2latex but this is not satisfying because of Equations ect. Help would be appreciated. thanks

  • Gnome panel text color

    Hello. Can anybody help me change the color of the panel text only in gnome? I used to use an application called gnome-color-chooser which appears in AUR but when trying "makepkg" it apparently points to a broken link. I have been looking for the sou

  • LR5: RAW-Dateien-Entwicklung exakt wie Kamera-JPG-Entwicklung

    Beim Import mit Lightroom sollen die RAW-Dateien schon so entwickelt werden (mit der Standardentwicklungseinstellung, die jedoch momentan keine befriedigende Ergebnisse liefert), dass die RAW-Dateien so aussehen, wie meine JPG-Dateien (aus der Kamera