Re: Illustrator has placed images that need to be embedded
Re: Illustrator has placed images that need to be embedded
- Subject: Re: Illustrator has placed images that need to be embedded
- From: Paul Kampu <email@hidden>
- Date: Fri, 30 Jan 2004 15:16:28 -0500
On 1/30/04 2:30 PM, "Paul Kampu" <email@hidden> wrote:
>
Does anyone know how to reference all the placed images in a document, no
>
matter which layer the image/images may be on, and embed them? The 'raster
>
item' class doesn't seem to recognize a placed psd or eps (pixel) image as
>
being a 'raster item'. Tif and jpeg images work just fine.
>
>
Any thoughts/direction would be most appreciated.
>
>
tia,
>
Paul
>
_______________________________________________
This is what I've come up with so far. (It seems I overlooked the 'Placed
items' Class, whoops?!) The last line 'set rasterItemRef to make new...' is
where I'm currently stuck. I think I'm making progress but am not entirely
sure...
tell application "Adobe Illustrator 10"
set docRef to document 1
--set rasterCount to count of every raster item of docRef
set placedCount to count of every placed item of docRef
repeat with i from 1 to placedCount
set thisImage to placed item i of docRef
set boundingBox to bounding box of thisImage
set imageFilePath to file path of thisImage
set rasterItemRef to make new raster item in docRef ,
with properties ,
{file path:imageFilePath, bounding box:{boundingBox}}
end repeat
end tell
Any help would be most gratefully accepted!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.