• 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: Trying to convert QXP Annotate script to work for InDesign
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to convert QXP Annotate script to work for InDesign


  • Subject: Re: Trying to convert QXP Annotate script to work for InDesign
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 17 Dec 2009 08:45:27 +1100
  • Thread-topic: Trying to convert QXP Annotate script to work for InDesign

On 17/12/09 4:28 AM, "Ripka, Herb" <email@hidden> wrote:

> It compiles, and runs, but with no visible result. What am I missing?

You're missing the basics of trouble-shooting: looking in the log to see
what does and doesn't happen, running bits at a time to see where the
problems are.

> repeat with p from 1 to count of pages
> tell page p
> repeat with i from 1 to count of frames
> set filePath to (file path of image 1 of PICT frame) as Unicode text

Where did PICT frame come from? You might also want to use graphic instead
of image.

> if filePath is not "null" and filePath is not "no disk file" then
> set fileName to text item -1 of filePath
> tell PICT frame
> set {sc1, sc2} to scale of image 1 as list

scale is a Quark property -- you probably want absolute horizontal scale and
absolute vertical scale.

> set {y1, x1} to origin of bounds as list

origin and bounds are Quark properties -- you want the first two items of
the geometric bounds.

> end tell
> set y2 to ((y1 as real) + 14)
> set x2 to ((x1 as real) + 185)
> make text frame at beginning with properties {geometric bounds:{x1, y1, x2,
> y2}}
> set fill color to "C=0 M=0 Y=100 K=0"

fill color of what? You're not addressing anything. And you need to use a
swatch.

> set label to "annotate" & i

label of what?

You might find it easier to go to Adobe's InDesign scripting user-to-user
forum and look for similar scripts.

--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>


 _______________________________________________
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: Trying to convert QXP Annotate script to work for InDesign
      • From: "Stockly, Ed" <email@hidden>
References: 
 >Trying to convert QXP Annotate script to work for InDesign (From: "Ripka, Herb" <email@hidden>)

  • Prev by Date: Re: Cupsfilter Scaling
  • Next by Date: Re: Cupsfilter Scaling
  • Previous by thread: Trying to convert QXP Annotate script to work for InDesign
  • Next by thread: Re: Trying to convert QXP Annotate script to work for InDesign
  • Index(es):
    • Date
    • Thread