2 Replies Latest reply on Apr 8, 2008 1:59 AM by Bertus Bolknak

    Applescript: set content type to graphic type

    Bertus Bolknak Level 1
      Hi, this is my first posting on this forum.

      My name is Bertus.

      I work on an advertising Agency.
      In januari 2007 I started to learn scripting InDesign CS2 with Applescript.
      I learned a lot because:
      I put lots and lots of time in learning and understanding scripts from other professionals.
      I read several Applescript books for beginners.
      I already made some very cool scripts myself.
      I really must say: Scripting is fun!

      Here's my question:

      Platform MacOSX 10.5.2
      InDesign CS3
      Applescript
      Script Debugger.

      I frequently use the following tell statement to talk to a rectangle on a page in my Adobe InDesign CS2 scripts:

      tell myRectangle
      set content type to graphic type
      end tell

      Unfortunately, my script refuses to compile when I use the same code in an InDesign CS3 script.

      Anybody any idea?
      • 0. Re: Applescript: set content type to graphic type
        sstanleyau Level 4
        It looks like some kind of odd terminology conflict. The solution is simple<br />-- use otherwise-pointless braces:<br /><br />        set (content type) to graphic type<br /><br /><br />-- <br />Shane Stanley <sstanley@myriad-com.com.au>
        • 2. Re: Applescript: set content type to graphic type
          Bertus Bolknak Level 1
          Thank you, Shane. It works.

          Bertus Bolknak