• 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 CS2 Export for Web Syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: PhotoShop CS2 Export for Web Syntax
      • From: Martin Orpen <email@hidden>
References: 
 >Re: PhotoShop CS2 Export for Web Syntax (From: Dave Balderstone <email@hidden>)

  • Prev by Date: Re: PhotoShop CS2 Export for Web Syntax
  • Next by Date: [Q] How to get a containing folder of a given file?
  • Previous by thread: Re: PhotoShop CS2 Export for Web Syntax
  • Next by thread: Re: PhotoShop CS2 Export for Web Syntax
  • Index(es):
    • Date
    • Thread