MACSCRPT Archives

November 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Nobumi Iyanaga <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 19 Nov 2010 21:19:51 +0900
Content-Type:
text/plain
Parts/Attachments:
text/plain (44 lines)
Hello Shane,

Thank you for your prompt reply.

On Nov 19, 2010, at 3:07 PM, Shane Stanley wrote:

> set theScript to "var id3 = charIDToTypeID( \"Lvls\" );
>     var desc2 = new ActionDescriptor();
>     var id4 = stringIDToTypeID( \"autoBlackWhite\" );
>     desc2.putBoolean( id4, true );
>     var id5 = stringIDToTypeID( \"autoNeutrals\" );
>     desc2.putBoolean( id5, true );
> executeAction( id3, desc2, DialogModes.NO );
> "
> tell application "Adobe Photoshop CS4"
>     activate
>     tell current document
>         do javascript theScript show debugger on runtime error
>     end tell
> end tell
>

This worked perfectly. Thank you very much!

I have now a simpler question: how do I save a jpeg file in another  
jpeg file.

I tried:

tell application "Adobe Photoshop CS4"
	activate
	save current document in file "Macintosh HD:Users:me:Desktop:0001.jpg"
end tell

but it saves the file in "Macintosh HD:Users:me:Desktop:0001.psd".

Thank you very much in advance.

Best regard,

Nobumi Iyanaga
Tokyo,
Japan

ATOM RSS1 RSS2