• 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: H & J in QuarkXPress: Vol 1, Issue 235
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: H & J in QuarkXPress: Vol 1, Issue 235


  • Subject: Re: H & J in QuarkXPress: Vol 1, Issue 235
  • From: email@hidden
  • Date: Fri, 3 Dec 2004 17:03:05 -0700

You have a number of problems with your script, not just the fact that H &
J's don't seem to be able to be applied to text, only to paragraph styles.
(I will need to work with this some more to be sure.)

Here are some hints: If you ever have a question as to how to reference an
object, try to get a record of its properties from Quark:
tell application "QuarkXPress"
   tell document 1
      set theTest to properties of h and j spec "Standard"
   end tell
end tell
If this does not error out, you can pretty well be assured that you have
the right "path" to the object. You can further verify this by looking at
its reference in the property list that is returned to the Result window of
your editor. In this case, it reads:
object refrence: h and j spec "Standard" of document "DocName" of
application "QuarkXPress"

Now you know you can reference the object using something similar to the
following:
tell application "QuarkXPress"
      set theHandJ to h and j spec "Standard" of document "DocName" --or
use document 1 as document reference
end tell
Now, you should be able to say:
tell application "QuarkXPress"
   tell document 1
      set theSpec to h and j spec "Standard"
   end tell
   tell paragraphs of current box
      set first indent to "p12"
      set h and j set to theSpec
   end tell
end tell

As you have discovered, this may not work in 6.0.  You can assign h and j's
to a paragraph style. Email me privately if you need more help.

Shirley Hopkins
FaceSpan Support




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: set variables, in mass
  • Next by Date: AppleScript/Xcode/Interfacebuilder book to recommend?
  • Previous by thread: Re:H and J in QuarkXPress
  • Next by thread: AppleScript/Xcode/Interfacebuilder book to recommend?
  • Index(es):
    • Date
    • Thread