> My question is, does anyone know a script or something easier than placing a
> piece of artwork and then dragging it into the library?
It's all scriptable:
set thePath to path to startup disk as text
tell application "InDesign 2.0.1"
set theLib to make library with data {full name:(thePath & "Test lib")}
set storedItem to store selection into theLib
set properties of storedItem to {name:"Demo item", description:"This is a
test"}
end tell
--
Shane Stanley, ssta...@myriad-com.com.au
I started in on a response and saw that Shane Stanley had already given you a hand. There's a little extra below.
All you have to do is select the object you want to add to the library (which you've already created at a specified path) and run the script.
Sometimes when I do this I go through the extra steps of naming and describing the library elements I'm adding. I included that stuff in my example, below.
set thePath to (path to startup disk) as text
tell application "InDesign 2.0.1"
set myDoc to active document
set theLib to open file (thePath & "Test Lib")
tell myDoc
display dialog "Name the new library object" default answer "NameTheElement"
set theName to text returned of result
display dialog "Describe the new library object" default answer "DescribeTheElement"
set theDescription to text returned of result
set storedItem to store selection into theLib
set properties of storedItem to {name:theName, description:theDescription}
end tell
end tell
To deliver the library asset to the page with a script you would do this:
set thePath to (path to startup disk) as text
tell application "InDesign 2.0"
activate
set myDoc to active document
set theLib to open file (thePath & "Test lib")
tell myDoc
place asset "the_name_of_the_asset_you_want" of theLib on myDoc
end tell
end tell
Thanks,
Carl
--
Shane Stanley, ssta...@myriad-com.com.au
Easy for you to say, mate.
<g>
Don
> Nothing particularly difficult
>
> Easy for you to say, mate.
Well, most of the time all one has to do is stroll over to the scripting
forum and ask the question. Can't get much easier than that. :-)
--
Shane Stanley, ssta...@myriad-com.com.au