• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to export PNG with 300 res using Applescript

Participant ,
Jun 03, 2016 Jun 03, 2016

Copy link to clipboard

Copied

How to export PNG with 300 res in Applescript

i want to copy a art and paste in new document and export as PNG to desktop location, & file name should be my previous doc were i copy file form. and saved file should be filename_PNG.png   

set saveLocation to ((path to desktop) as string)

tell application "Adobe Illustrator"

if not frontmost then activate

if (count documents) > 0 then

set selectedItems to selection of current document

if selectedItems is not {} then

copy

set colorSpace to color space of current document

make new document with properties {color space:colorSpace}

paste

end if

end if

end tell

tell application "Adobe Illustrator"

tell document 1

set SelectedArt to visible bounds

set artboard rectangle of artboard 1 to SelectedArt

export current document to file newFilePath as PNG8 ¬

with options {class:PNG8 export options ¬

, color count:64 ¬ , color reduction:web ¬

, color dither:pattern dither ¬

, dither percent:50 ¬

, interlaced:true}

close current document saving no

end tell

end tell

TOPICS
Scripting

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 03, 2016 Jun 03, 2016

You will have to set the scale to 416.67% (both horizontal and vertical). The default export at 100% will give you a 72 ppi PNG.

Votes

Translate

Translate
Adobe
Community Expert ,
Jun 03, 2016 Jun 03, 2016

Copy link to clipboard

Copied

You will have to set the scale to 416.67% (both horizontal and vertical). The default export at 100% will give you a 72 ppi PNG.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 10, 2016 Jun 10, 2016

Copy link to clipboard

Copied

Thanks Larry G. Schneider

Can you tell about JPEG 300 Res, can i use the same 416.67 (both horizontal and vertical).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 10, 2016 Jun 10, 2016

Copy link to clipboard

Copied

LATEST

Yes, with the caution that will need to be resized to 100% in the app where you place the raster file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines