Re: Does anyone know how to AppleScript Auto Color in PS7?
Re: Does anyone know how to AppleScript Auto Color in PS7?
- Subject: Re: Does anyone know how to AppleScript Auto Color in PS7?
- From: "Arthur J. Knapp" <email@hidden>
- Date: Fri, 21 Jun 2002 11:56:12 -0400
>
Date: Thu, 20 Jun 2002 15:25:42 -0500
>
Subject: Does anyone know how to AppleScript Auto Color in PS7?
>
From: Ron Bishop <email@hidden>
>
I would like to be able to set the settings for Auto Color and run it by
>
AppleScript. I've been able to run it in conjunction with Javascript.
>
Any ideas?
>
tell application "Adobe Photoshop 7.0"
...
>
do javascript "{var id110 = charIDToTypeID( \"Lvls\" );var
>
desc33 = new ActionDescriptor();var id111 = stringIDToTypeID
>
( \"autoBlackWhite\" ); desc33.putBoolean( id111, true ); var id112 =
>
stringIDToTypeID( \"autoNeutrals\" );desc33.putBoolean( id112, true
>
);executeAction( id110, desc33, DialogModes.NO );}"
That is some of the ugliest looking JS I've ever seen. ;-)
Try this:
{ var typ4 = charIDToTypeID,
typS = stringIDToTypeID; // save some typing :)
var desc33 = new ActionDescriptor();
desc33.putBoolean( typS('autoBlackWhite'), true );
desc33.putBoolean( typS('autoNeutrals'), true );
executeAction( typ4('Lvls'), desc33, DialogModes.NO );
}
Now that my curiousity has been raised, I'm going to have to get PS 7.0.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.