🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by JanGeerling Wed, 25 Mar 2009 09:32
scripting Preflight options In Design (CS4)
#366
Author: JanGeerling
Date: Wed, 25 Mar 2009 09:32
19 lines
1291 bytes
I'm trying to make a script that will install predefined Preflight options in In Design. This is my script till now :

tell application "Adobe InDesign CS4"
   try
       make new preflight profile with properties {name:"TEST"}
   end try
   tell preflight profile "TEST"
       set description to "Preflight !!"
       tell preflight rule instance "ADBE_MissingModifiedGraphics"
           set flag to return as error
       end tell
   end tell
end tell

This gives the error : Adobe InDesign CS4 got an error: Preflight profile rule does not exist in the profile

Is there a way to avoid that? If i click on a preflight option in In Design it works fine after that. (But offcourse i want that automaticly done)

Jan Geerling
Re: scripting Preflight options In Design (CS4)
#369
Author: Shane_Stanley
Date: Wed, 25 Mar 2009 10:20
20 lines
1818 bytes
That script doesn't look right. My *guess* is that you need something like
this:

tell application "Adobe InDesign CS4"
    delete preflight profile 2
    try
        make new preflight profile with properties {name:"TEST"}
    end try
    tell preflight profile "TEST"
        set description to "Preflight !!"
        set pri to make preflight rule instance with properties
{id:"ADBE_MissingModifiedGraphics"}
        set flag of pri to return as error
    end tell
end tell


-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Re: scripting Preflight options In Design (CS4)
#372
Author: JanGeerling
Date: Wed, 25 Mar 2009 11:19
9 lines
734 bytes
WOOT !

make preflight rule instance with properties {id:"ADBE_MissingModifiedGraphics"}

did the trick !!

Thanks man

Jan Geerling
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads