Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripting in AI - Export Jpeg

Status
Not open for further replies.

pugs421

Technical User
Nov 25, 2002
114
US
I am starting to learn how to automate tasks using the AI scripting plugin and VBScript. The documentation is mostly writen in VB and not VBScript. If anyone has knowledge in scripting for Illustrator can you please point me in the right direction as to what is wrong with this script:

Dim appRef
Set appRef = CreateObject( "Illustrator.Application" )

Dim fileName
fileName = "Z:\Mikep\aiScripting\dvdTest.ai"

Dim jpegExportOptions
Set jpegExportOptions = CreateObject("Illustrator.ExportOptionsJPEG")

Dim docRef
Set docRef = appRef.Open(fileName)

jpegExportOptions.QualitySetting = 70

docRef.Export "z:\mikep\aiScripting\outputFile.jpg", aiJPEG, jpegExportOptions

Thanks
 
I found out how.

Substitute the number 1 in place of aiJPEG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top