Hey,
I need to make an applescript (or maybe even just a droplet if its possible) for Photoshop which does the following:
1. Drop an Illustrator .ai file onto the droplet/applescript, open it in Photoshop (300 dpi)
2. Save a JPEG to the Illustrator files location
3. Make the open Illustrator file in Photoshop 72 dpi
4. Save the 72 dpi GIF to the original .ai file location.
5. Close the photoshop document without saving
Is this possible?
I've tried something like this, with pieces I have been able to find in the applescripting photoshop documentation (I am practically a noob in this):
----------------------
tell application "Adobe Photoshop CS3"
set display dialogs to never
set the_file to (choose file with prompt "Please choose a file") as Unicode text
open as PDF with options ¬
{class
DF open options, height
ixels real, width
ixels real, mode:RGB, resolution:300, use antialias:true, page:1, constrain proportions:false} ¬
set myOptions to ¬
{class:JPEG save options, embed color profile:true, format options
rogressive, quality:12, scans:3} ¬
save current document in file myFile as JPEG with options ¬
myOptions appending no extension without copying
set myOptions to ¬
{class:resize image, width:real, height:real, resolution:72} ¬
set myOptions to ¬
{class:GIF save options, dither:diffusion, dither amount:46, preserve exact colors:true, matte:background color matte} ¬
save current document in file myFile as CompuServe GIF with options ¬
myOptions appending no extension without copying
end tell
--------------------------
Could someone help me with making this – your help would be greatly appreciated!
Thank you in advance,
Jakob