• 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: "Ruby Madraswala" <email@hidden>
  • Date: Thu, 2 Jun 2005 10:17:06 -0400
  • Thread-topic: EPS to JPEG

Thanks for taking the time..

 

First error message I get  at “set docRef to current document”

Expected “given”, “with”, “without”, other parameter name etc. but found identifier.

 

Second at Jpeg save options

 

Expected end of line etc, but found class name

 

Ruby


From: applescript-users-bounces+rubym=email@hidden [mailto:applescript-users-bounces+rubym=email@hidden] On Behalf Of Martin Orpen
Sent: Thursday, June 02, 2005 9:13 AM
To: email@hidden
Subject: Re: EPS to JPEG

 

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

  • Follow-Ups:
    • Re: EPS to JPEG
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Standard Text item delimiters?
  • Next by Date: Re: Standard Text item delimiters?
  • Previous by thread: RE: EPS to JPEG
  • Next by thread: Re: EPS to JPEG
  • Index(es):
    • Date
    • Thread