Hi,
I have next problem. I place items (placed items) in an empty Illustrator document. After all I want to embed all placed items in this file. I have used the EPS save options (embed linked files: true) but when I open the file on another system all “embeded links” are gone and I have an empty document again.
Does anybody know what I do wrong?
Eric
Hi Eric,
This morning I stumbled across an article which might be of some interest for you:
The Design Playbook: Illustrator Place File AppleScript
They also published the sample script including TIFF files and an Illustrator document (*.ai):
Download the sample script…
Hi Martin,
Thanks for your reply. It is exactly what I wanted. I have another question about this script. Do you know what this part is: event ART5pEmb . It does the embed part.
-- Default embed option is set to no.
set embed_option to "No"
-- Select the file(s) you would like to place in the front Illustrator document.
set file_refs to choose file with prompt "Select file(s) to place." with multiple selections allowed without invisibles
-- Count the number of files selected.
set total_files to count item in file_refs
-- Question user about placing or embedding the selected file(s).
display dialog "Would you like to embed the selected file(s)?" buttons {"Yes", "No"} default button 2
if the button returned of the result is "Yes" then
set embed_option to "Yes"
end if
-- Iterate through every file and perform the place_files subroutine.
repeat with i from 1 to total_files
set active_file to item i of file_refs
place_files(active_file, embed_option)
end repeat
on place_files(file_ref, embed_file)
tell application "Adobe Illustrator 10"
set placed_file to make new placed item in document 1 Â
with properties {file path:file_ref, position:{0.0, 0.0}}
if embed_file = "Yes" then
event ART5pEmb placed_file
end if
end tell
end place_files