• 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: Quark Problem (Simon)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark Problem (Simon)


  • Subject: Re: Quark Problem (Simon)
  • From: nino <email@hidden>
  • Date: Mon, 09 Dec 2002 21:30:53 +0100

> Da: email@hidden
> Risposta: email@hidden
> Data: Sat, 07 Dec 2002 22:00:15 -0800
> A: email@hidden
> Oggetto: applescript-users digest, Vol 3 #1128 - 6 msgs
>
> I am trying to make a script loop through text boxes (about 100) and at each
> box take all the text in one style sheet and pop it into a FileMaker field.
> The looping and FileMaker stuff work OK but getting every paragraph in the
> named style sheet results in just the last paragraph in that style sheet
> being grabbed and then the last character, usually a full stop but not
> always, being lost.
try with:

tell application "QuarkXPress"
tell document 1
repeat with i from 1 to count of text box
try
tell text box i
set a to text of (every paragraph where name of style sheet is "Titolo")
--subsitute the "current box reference and style spec name as needed
if class of a is not list then set a to {a} --if only one paragraph
--result is a list of strings {"para 1","para 2"...}
on error
-- your action if no paragraph in the specified style sheet exists
end try
-- if you need to have them as a single text divided into paragraphs then
set AppleScript's text item delimiters to return
set a to a as string
set AppleScript's text item delimiters to ""
-- your export to fm code
end repeat
end tell
end tell

nino
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Determine Default Browser?
  • Next by Date: Strange "bug": Scripting QT Player 6 and setting chapter tracks
  • Previous by thread: RE: QuickTime scripts acting flaky
  • Next by thread: Quark Problem (Simon)
  • Index(es):
    • Date
    • Thread