Sunday, December 21, 2014

#1 2012-04-30 03:18:31 pm

handell
Member
From: ohio
Registered: 2011-05-24
Posts: 4
Website

applescript adobe illustrator export photoshop art-board problem

trying to export as photoshop document cropped to the mask or art-board area.
but I cannot get this script to export, what on earth could be the problem?


tell application "Adobe Illustrator"
    activate
    set bndz to visible bounds of path item 1 of group item 1 of layer 1 of document 1
    set artboard rectangle of artboard 1 of document 1 to bndz
    set newFilePath to {path to desktop folder} & "my_masked_image.psd" as string
    set dpi to 150
   
    export current document to file newFilePath as Photoshop ¬
        with options {class:Photoshop export options ¬
        , color space:RGB ¬
        , embed ICC profile:true ¬
        , resolution:dpi, warnings:false ¬
        , artboard clipping:true ¬
        , save multiple artboards:true ¬
        , artboard range:1 - 1}
   
end tell

any ideas people

AppleScript: 2.2.1 (100.1)
Browser: Safari 535.19
Operating System: Mac OS X (10.5)

Offline

 

#2 2012-04-30 07:17:04 pm

Budgie
Member
From: New Zealand
Registered: 2005-02-22
Posts: 548

Re: applescript adobe illustrator export photoshop art-board problem

G'day Handell

Hi
"artboard clipping" appears to be only for GIF's, JPEG's, PNG8 & PNG24 files, it doesn't show up in the allowed export options for Photoshop, so this needs to be eliminated.

Try the below which does what your wanting less the above


Applescript:

tell application "Adobe Illustrator"
   tell document 1
       activate
       set bndz to visible bounds of path item 1 of group item 1 of layer 1
       set artboard rectangle of artboard 1 to bndz
       set dpi to 150 as text
       set newFilePath to (path to desktop folder) & "my_masked_image.psd" as string
       tell application "Adobe Illustrator"
           export current document to file newFilePath as Photoshop ¬
               with options {class:Photoshop export options ¬
               , color space:RGB ¬
               , embed ICC profile:true ¬
               , resolution:dpi, warnings:false ¬
               , artboard range:1 - 1}
       end tell
   end tell
end tell


Budgie

No use, Joker! I knew you'd employ your sneezing powder, so I took an Anti-Allergy Pill! Instead of a SNEEZE, I've caught YOU, COLD! - Batman

Offline

 

#3 2012-05-01 08:01:37 am

handell
Member
From: ohio
Registered: 2011-05-24
Posts: 4
Website

Re: applescript adobe illustrator export photoshop art-board problem

Ah! I see Budgie, I should have checked the manual on that. Thanks
However the problem I have is the mask area is generally smaller than the image & I need the art-board clipping option in order to crop the image and bring it back in AI to make for smaller file sizes.

See: http://tmgraphics.biz/VIKINGS/macsripte … nshot.JPEG

Im surprised illustrator doesn't have a feature to physically crop images within

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.022 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)