Win Vista 32bit CS5 -> Win7 64bit CS6 = Error 8800

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Garion

Win Vista 32bit CS5 -> Win7 64bit CS6 = Error 8800

Post by Garion »

Dearest Community!

I've wrote a script for somebody else. On my OS (Windows Vista, 32bit) with CS5 it worked perfectly, but not on the OS of the other guy (Win7, 64bit). Also he works with CS6.
Everytime on one point, he gets the "Error 8800: General Photoshop Error occured... the command File->Place is not available at the moment" (I don't know if I translate it the correct way).

But something is strange with this error.
My Script do some adjustments on the layer in the opened document. Then it places a .png file in the document (File->Place), works a bit more, do some commands and places another .png file in the document. The first .png file is placed absolute correctly, but not the second one. I've checked the filename, the path and everything that could causes troubles...but I don't get it. Why the script can place one .png file, but not another one? What's wrong with this .png file?

I know it's a kind of problematic to do a telediagnosis without seeing the file, its path and all this stuff...but even I can't see this. We are in contact over phone, sms and e-mail...but I wasn't on his pc by myself. To help you helping me, here's the code:

This works for me and for him:
Code: Select all// =======================================================
// "Rahmen.png" im Dokument platzieren
// =======================================================
var idPlc = charIDToTypeID( "Plc " );
    var desc95 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc95.putPath( idnull, new File( "C:\\Program Files (x86)\\Adobe\\Adobe Photoshop CS6\\Presets\\Scripts\\Tonnen\\Rahmen.png" ) );
    var idFTcs = charIDToTypeID( "FTcs" );
    var idQCSt = charIDToTypeID( "QCSt" );
    var idQcsa = charIDToTypeID( "Qcsa" );
    desc95.putEnumerated( idFTcs, idQCSt, idQcsa );
    var idOfst = charIDToTypeID( "Ofst" );
        var desc96 = new ActionDescriptor();
        var idHrzn = charIDToTypeID( "Hrzn" );
        var idPxl = charIDToTypeID( "#Pxl" );
        desc96.putUnitDouble( idHrzn, idPxl, 0.000000 );
        var idVrtc = charIDToTypeID( "Vrtc" );
        var idPxl = charIDToTypeID( "#Pxl" );
        desc96.putUnitDouble( idVrtc, idPxl, 0.000000 );
    var idOfst = charIDToTypeID( "Ofst" );
    desc95.putObject( idOfst, idOfst, desc96 );
executeAction( idPlc, desc95, DialogModes.NO );


This works only for me, not for him:
Code: Select all// =======================================================
// Maskenebene im Dokument platzieren
// =======================================================
var idPlc = charIDToTypeID( "Plc " );
    var desc200 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc200.putPath( idnull, new File( "C:\\Program Files (x86)\\Adobe\\Adobe Photoshop CS6\\Presets\\Scripts\\Tonnen\\Maskev12.png" ) );
    var idFTcs = charIDToTypeID( "FTcs" );
    var idQCSt = charIDToTypeID( "QCSt" );
    var idQcsa = charIDToTypeID( "Qcsa" );
    desc200.putEnumerated( idFTcs, idQCSt, idQcsa );
    var idOfst = charIDToTypeID( "Ofst" );
        var desc201 = new ActionDescriptor();
        var idHrzn = charIDToTypeID( "Hrzn" );
        var idPxl = charIDToTypeID( "#Pxl" );
        desc201.putUnitDouble( idHrzn, idPxl, 0.000000 );
        var idVrtc = charIDToTypeID( "Vrtc" );
        var idPxl = charIDToTypeID( "#Pxl" );
        desc201.putUnitDouble( idVrtc, idPxl, 0.000000 );
    var idOfst = charIDToTypeID( "Ofst" );
    desc200.putObject( idOfst, idOfst, desc201 );
executeAction( idPlc, desc200, DialogModes.NO );


The commands between these both commands working correctly. But with the File-Place command for the Mask-PNG-File the Error 8800 comes up. So, why it worked with one file, but not with the other? And: If the path or the filename were incorrect, would then Photoshop tell me that it can't find the file? Just to keep clear that in the end it's not this, causing the problems. I don't get it and hope you can help me out.

A lot of thanks for helping me.
Best regards,
Garion

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

Garion

Win Vista 32bit CS5 -> Win7 64bit CS6 = Error 8800

Post by Garion »

No idea? No one?
Mike Hale

Win Vista 32bit CS5 -> Win7 64bit CS6 = Error 8800

Post by Mike Hale »

Just a guess, but I saw a post on another forum with a similar problem that was tracked down to user account permissions. And Program Files is one of the folders that have restricted access on newer OS.