Hi
In Indesign you have an option to create an ink alias, this means you can choose a colour
and then make an alias of another colour represent it.
What I am attempting to do is do this via applescript, so far using “merge” works fine, only
if the colors are not from a placed pdf, eps etc, this is where the script throws an error
“Adobe InDesign CC 2015 got an error: This color cannot be deleted.”
Manually under “Ink Manager” you can create an alias of the colors from a placed pdf, so I
am thinking I should be able to do it via script, so my question is how would I go about
doing what I am after please?
set destFolder to choose folder with prompt "Please choose folder containing InDesign files"
tell application "Finder"
try
set fileList to every file of entire contents of destFolder as alias list
on error
set fileList to every file of entire contents of destFolder as alias as list
end try
end tell
tell application "Adobe InDesign CC 2015"
repeat with oneFile in fileList
delay 2
tell front document
set New_Colour to swatch "PANTONE 578 U" -- COLOUR IS CREATED IN INDESIGN
set Old_Colour to swatch "PANTONE 376 C" -- COLOUR IS IN PLACED PDF
New_Colour merge with Old_Colour
end tell
end repeat
end tell
Indesign CC 2015 - OSX 10.11.1