• 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: QuarkXPress - delimit table defaults?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QuarkXPress - delimit table defaults?


  • Subject: Re: QuarkXPress - delimit table defaults?
  • From: Hans Haesler <email@hidden>
  • Date: Mon, 24 Apr 2006 00:21:34 +0200

On Sat, 22 Apr 2006, Dan Feather wrote:

>Dear Quark scripters,
<snip>
>Is there a reference for the default delimit table?

I have never seen any. But you can make one yourself!

Launch QuarkXPress, make sure that "Auto page insertion" is
enabled, create a project, uncheck "Facing Pages", activate
"Automatic Text Box".

Then run this:
---
tell application "QuarkXPress 6.5"
 set delimiterList to delimit items of delimit table 1
end tell
---
The result is a list with 256 items. The first 38 are 'not word member'.
Then there is one 'can be contained in word' and so on.

Copy the result including the braces and paste it in the XPress
text box. Depending on the size of the document there is a second
page inserted. Make sure that there is no return after the last
character (the closing brace).

Select the first text box and run this:
---
tell application "QuarkXPress 6.5"
 activate
 do script {numberParas}
 display dialog "Done." buttons "OK" default button 1 with icon 1 giving up after 1
end tell

script numberParas
 tell application "QuarkXPress 6.5"
  tell current box
   tell story 1
    try
     set every text where it is "{" to ""
    end try
    try
     set every text where it is "}" to ""
    end try
    set every text where it is ", " to return
    repeat with i from 1 to count of paragraphs
     try
      if i is not in {7, 9, 11, 12, 13, 256} then
       copy tab & i & tab & (ASCII character i) & tab to before paragraph i
      else
       copy tab & i & tab & tab to before paragraph i
      end if
     end try
    end repeat
   end tell
  end tell
 end tell
end script
---
Three more pages will be inserted. Up to you to define the tab stops.

Regards,
Hans

---
Hans Haesler <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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: QuarkXPress - delimit table defaults?
      • From: Dan Feather <email@hidden>
References: 
 >QuarkXPress - delimit table defaults? (From: Dan Feather <email@hidden>)

  • Prev by Date: Re: Apply User and Groups to Items in a Folder
  • Next by Date: Re: [AS] Getting some Finder windows properties under 10.4.6...
  • Previous by thread: Re: QuarkXPress - delimit table defaults?
  • Next by thread: Re: QuarkXPress - delimit table defaults?
  • Index(es):
    • Date
    • Thread