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

Re: Exporting JPEGs from Illustrator CS6


  • Subject: Re: Exporting JPEGs from Illustrator CS6
  • From: "koenig.yvan" <email@hidden>
  • Date: Thu, 27 Mar 2014 18:20:21 +0100


Le 27/03/2014 à 15:04, Robert Stott <email@hidden> a écrit :

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

Why not bring a given document at front before exporting it?
For applications which don't allow that with plain vanilla Applescript, we may do that with GUI Scripting by triggering the Windows menu.

Yvan KOENIG (VALLAURIS, France) jeudi 27 mars 2014 18:20:15


 _______________________________________________
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>
References: 
 >Exporting JPEGs from Illustrator CS6 (From: Robert Stott <email@hidden>)

  • Prev by Date: Re: Exporting JPEGs from Illustrator CS6
  • Next by Date: Re: Exporting JPEGs from Illustrator CS6
  • Previous by thread: Re: Exporting JPEGs from Illustrator CS6
  • Next by thread: Re: Exporting JPEGs from Illustrator CS6
  • Index(es):
    • Date
    • Thread