How to convert Photoshop Javascript to applescript?
How to convert Photoshop Javascript to applescript?
- Subject: How to convert Photoshop Javascript to applescript?
- From: "Patrik B." <email@hidden>
- Date: Tue, 15 Jan 2008 12:32:42 -0800
Hi,
How do I convert the following Javascript for Photoshop cs3 extended into
Applescript?
var myopentexture71 = stringIDToTypeID( "open3DLayerTexture" );
var myaction = new ActionDescriptor();
var myopentexture72 = stringIDToTypeID( "textureIndex" );
myaction.putInteger( myopentexture72, 4 );///the number 4 is the one that
// changes
executeAction( myopentexture71, myaction, DialogModes.NO );
Or if not how do I pass a value from applescript to line 4 of the javascript?
I currently run the above using
set opentexture to alias "pathtothescript:opentexture.js"
Tell app "Adobe Photoshop cs3"
do javascript(opentexture)
end
Best, Patrik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden