• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does anyone know how to AppleScript Auto Color in PS7?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Does anyone know how to AppleScript Auto Color in PS7?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: RE: automating PDF creation
  • Next by Date: Quark to PDF - page setup script
  • Previous by thread: Re: Does anyone know how to AppleScript Auto Color in PS7?
  • Next by thread: Re: Does anyone know how to AppleScript Auto Color in PS7?
  • Index(es):
    • Date
    • Thread