• 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: AS for InDesign - find artwork set to overprint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS for InDesign - find artwork set to overprint


  • Subject: Re: AS for InDesign - find artwork set to overprint
  • From: "Stockly, Ed" <email@hidden>
  • Date: Mon, 16 Nov 2009 13:17:26 -0800
  • Thread-topic: AS for InDesign - find artwork set to overprint

Hi Rosemary,


>>>I'm trying to create a script that will search for 2 specifically named
pieces of artwork in an InDesign file and set every instance of that artwork to
overprint.

Not sure what you mean by set to overprint, but here's something that may
help you get started:

set listOfNames to {"foo", "bar"}
tell application "Adobe InDesign CS2"
   tell document 1
     tell page 1
       set docGraphics to all graphics
         repeat with thisGraphic in docGraphics
            set graphicLink to item link of thisGraphic
            set linkPath to the file path of item link of thisGraphic
            set AppleScript's text item delimiters to {":"}
            set linkName to the last text item of linkPath

            if linkName is in listOfNames then
              set horizontal scale of thisGraphic to 110

              -- put your overprint command here--
            end if
            log properties of thisGraphic
            --look in Script Editor's event log
            --to see which image properites can be modified--
        end repeat
     end tell
   end tell
end tell

HTH,

ES

> Once it's finished, then save the file (to it's original location).
>
> I've got my ID dictionary open but I'm not sure how is the best way to
> find the artwork and do the change... ??
>
> I was planning on having the script attached to a folder action.
>
> Here's what I've stolen from one of my other scripts.
>
> tell application "Adobe InDesign CS3"
> launch
> set this_image to open file (source_file as string)
>
> --here is where i want to put the find specific file names with
> attribute overprint unchecked & change it's attribute to overprint and
> keep looping until it doesn't find anymore of the files names without
> overprint checked.
>
> close this_image saving yes
> end tell
>
> You're help is greatly appreciated.
>
> Thanks!
> Rosie
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> com
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: AS for InDesign - find artwork set to overprint
      • From: Rosemary Cantrell <email@hidden>
References: 
 >AS for InDesign - find artwork set to overprint (From: Rosemary Cantrell <email@hidden>)

  • Prev by Date: AS for InDesign - find artwork set to overprint
  • Next by Date: Re: Manipulating pictures
  • Previous by thread: AS for InDesign - find artwork set to overprint
  • Next by thread: Re: AS for InDesign - find artwork set to overprint
  • Index(es):
    • Date
    • Thread