Re: PhotoShop CS2 Export for Web Syntax
Re: PhotoShop CS2 Export for Web Syntax
- Subject: Re: PhotoShop CS2 Export for Web Syntax
- From: Shane Stanley <email@hidden>
- Date: Wed, 20 Sep 2006 08:48:58 +1000
- Thread-topic: PhotoShop CS2 Export for Web Syntax
On 20/9/06 7:44 AM, "Dave Balderstone" <email@hidden>
wrote:
> You record the Javascript code, and then call it in your Applescript.
In CS2 the command is scriptable. *Theoretically* you can use:
set theDesktop to path to desktop as Unicode text
tell application "Adobe Photoshop CS2"
export current document in file (theDesktop & "WebTest.gif") as save for
web with options {class:save for web export options, optimized size:true,
transparency:true, quality:40, dither:diffusion, as:CompuServe GIF}
end tell
The problem is the last property; calling it "as" is a fairly impressive
terminology conflict by any standards.
The workaround is to use the raw codes outside Photoshop's scope, like this:
set theDesktop to path to desktop as Unicode text
set theType to {«class fltp»:«constant ****e003»} --code for "as:CompuServe
GIF"
tell application "Adobe Photoshop CS2"
export current document in file (theDesktop & "WebTest.gif") as save for
web with options {class:save for web export options, optimized size:true,
transparency:true, quality:40, dither:diffusion} & theType
end tell
You can also just use text and "run script".
--
Shane Stanley <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden