• 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
Exporting JPEGs from Illustrator CS6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exporting JPEGs from Illustrator CS6


  • Subject: Exporting JPEGs from Illustrator CS6
  • From: Robert Stott <email@hidden>
  • Date: Thu, 27 Mar 2014 14:04:16 +0000 (GMT)

Hi all,

This is so basic I'm almost embarrassed to post it, but I'm having problems with a short script to export JPEGs from Illustrator. If for example I had three Illustrator documents open, I'd expect the script below to step through each open document and three JPEGs - one of each document. 

Instead, I get the files I expect but the content of each JPEG is from my frontmost document - so three identical JPEGs.

Any suggestions? Have I found a bug or am I having a dumb day?

Thanks
Rob

tell application "Adobe Illustrator"

set theDocuments to every document

repeat with theDoc in theDocuments

set thePath to (file path of theDoc)

set theAlias to (thePath & ".jpg") as text

set theJPGExportOptions to {class:JPEG export options, antialiasing:false, quality:100, optimization:true}

export theDoc as JPEG to theAlias with options theJPGExportOptions

end repeat

end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Exporting JPEGs from Illustrator CS6
      • From: "koenig.yvan" <email@hidden>
    • Re: Exporting JPEGs from Illustrator CS6
      • From: David Popham <email@hidden>
  • Prev by Date: Re: Root User
  • Next by Date: Re: Root User
  • Previous by thread: Re: Root User
  • Next by thread: Re: Exporting JPEGs from Illustrator CS6
  • Index(es):
    • Date
    • Thread