• 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: EPS to JPEG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EPS to JPEG


  • Subject: Re: EPS to JPEG
  • From: Martin Orpen <email@hidden>
  • Date: Thu, 2 Jun 2005 14:13:27 +0100

On 2 Jun 2005, at 13:49, Ruby Madraswala wrote:

I have tried 
Set foo to current document --- gives me an error message
"expected end of line, but found class name"

I've run your script through CS and it works fine in this format:

-- changed the folder ref from your original
set xxyy to choose folder
tell application "Finder"
    set flist to every file in folder xxyy
    repeat with curfile in flist
        ---set file names
        set nm to name of curfile as string
        set dnm to curfile as string
        -- note folder is changed to string
        set newfile to (xxyy as string) & characters 1 thru 5 of nm & "cc.jpg"
        if nm contains ".eps" then
            -- change back to 7.0 
            tell application "Adobe Photoshop CS"
                open file dnm
                set docRef to current document
                -- mate replaced with matte :-)
                set myOptions to {class:JPEG save options, embed color profile:false, format options:standard, matte:background color matte}
                -- you need to use copying otherwise you'll get a dialog box
                save docRef in file newfile as JPEG with options myOptions with copying
                -- close the doc
                close docRef without saving
            end tell
        end if
    end repeat
end tell




Should work OK now.

Regards

-- 
Martin Orpen
 _______________________________________________
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

References: 
 >RE: EPS to JPEG (From: "Ruby Madraswala" <email@hidden>)

  • Prev by Date: Re: EPS to JPEG
  • Next by Date: Re: EPS to JPEG
  • Previous by thread: RE: EPS to JPEG
  • Next by thread: RE: EPS to JPEG
  • Index(es):
    • Date
    • Thread