• 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: Photoshop 7 and Save for Web
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Photoshop 7 and Save for Web


  • Subject: Re: Photoshop 7 and Save for Web
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Thu, 11 Jul 2002 15:30:42 -0400

> Date: Thu, 11 Jul 2002 11:21:11 -0500
> From: Ron Bishop <email@hidden>
> Subject: Re: Photoshop 7 and Save for Web

> tell application "Adobe Photoshop 7.0"
> activate
> do javascript "{var id3 = charIDToTypeID( \"Expr\" );
> var desc2 = new ActionDescriptor();
> var id4 = charIDToTypeID( \"Usng\" );

Forgive me, but just can't help myself, I have an affliction that
forces me re-format JavaScript code:

{ var cID = charIDToTypeID,
sID = stringIDToTypeID;

var desc3 = new ActionDescriptor();
desc3.putEnumerated( cID('Op '), cID('SWOp'), cID('OpSa') );
desc3.putEnumerated( cID('Fmt '), cID('IRFm'), cID('JPEG') );
desc3.putBoolean ( cID('Intr'), false );
desc3.putInteger ( cID('Qlty'), 60 );
desc3.putInteger ( cID('QChS'), 0 );
desc3.putInteger ( cID('QCUI'), 0 );
desc3.putBoolean ( cID('QChT'), false );
desc3.putBoolean ( cID('QChV'), false );
desc3.putBoolean ( cID('Optm'), true );
desc3.putInteger ( cID('Pass'), 1 );
desc3.putDouble ( cID('blur'), 0.000000 );
desc3.putBoolean ( cID('EICC'), false );
desc3.putBoolean ( cID('Mtt '), true );
desc3.putInteger ( cID('MttR'), 255 );
desc3.putInteger ( cID('MttG'), 255 );
desc3.putInteger ( cID('MttB'), 255 );
desc3.putBoolean ( cID('SHTM'), false );
desc3.putBoolean ( cID('SImg'), true );
desc3.putBoolean ( cID('SSSO'), false );
desc3.putList ( cID('SSLt'), new ActionList() );
desc3.putBoolean ( cID('DIDr'), true );
desc3.putPath ( cID('In '),
new File('Macintosh HardDrive:Users:krbishop:Desktop:') );

var desc = new ActionDescriptor();
desc.putObject( cID('Usng'), sID('SaveForWeb'), desc3 );

executeAction( cID('Expr'), desc, DialogModes.NO );
}

;-)


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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.

  • Prev by Date: Re: [OT] URL terminators
  • Next by Date: Re: [OT] don't suppress the receipient list (was: Re: uhoh)
  • Previous by thread: Re: Photoshop 7 and Save for Web
  • Next by thread: Photoshop 7 and Save for Web
  • Index(es):
    • Date
    • Thread