• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Illustrator has placed images that need to be embedded
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Illustrator has placed images that need to be embedded
      • From: Shane Stanley <email@hidden>
References: 
 >Illustrator has placed images that need to be embedded (From: Paul Kampu <email@hidden>)

  • Prev by Date: Re: Call a handler from applescript
  • Next by Date: Re: Problem with Script Editor Scripts
  • Previous by thread: Illustrator has placed images that need to be embedded
  • Next by thread: Re: Illustrator has placed images that need to be embedded
  • Index(es):
    • Date
    • Thread