I want to Export JPEG - Applscript


1 } here applescript , want save without .ai don't  why coming _jpeg ( need "filename_jpeg.jpg" - getting "filename.ai_jpeg.jpg") if u run applescript u came understand..

 

set savelocation ((path desktop) string) set thefile choose file tell application "finder" set filename name of thefile set fullpath (savelocation & filename) set extension "_jpeg.jpg" set vectorpath fullpath & extension tell application "adobe illustrator"  activate  export current document file vectorpath jpeg options {class:jpeg export options, artboard clipping:true, quality:70, horizontal scaling:100, vertical scaling:100, antialiasing:false} end tell 

 

2} possible export "filename_high.jpg"

 

set savelocation ((path desktop) string) tell application "adobe illustrator"  activate  export current document file savelocation jpeg options {class:jpeg export options, artboard clipping:true, quality:70, horizontal scaling:100, vertical scaling:100, antialiasing:false} end tell 

try this

set savelocation ((path desktop) string)

set thefile choose file

tell application "finder" set filename name of thefile

 

tell (info thefile) set {_name, _extension} {name, name extension}

set filename text 1 thru ((get offset of "." & _extension in _name) - 1) of _name

 

set fullpath (savelocation & filename)

set extension "_jpeg.jpg"

set vectorpath fullpath & extension

tell application "adobe illustrator"

    activate

    export current document file vectorpath jpeg options {class:jpeg export options, artboard clipping:true, quality:70, horizontal scaling:100, vertical scaling:100, antialiasing:false}

end tell



More discussions in Illustrator Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"