(no subject)
(no subject)
- Subject: (no subject)
- From: Elmer Banate <email@hidden>
- Date: Thu, 26 Jun 2003 17:59:46 -0700 (PDT)
Hi List,
I'm trying to make a script the will extract evey text
in every page, but my problem is I'm only get the text
only format. I need to get the with style the for
example the bold, ital, underline etc., is it possible
to do that thing? Can you give me a suggestion on what
to do, or the syntax in geting text with style. One
more question whyt is it the my script is getting all
the text in spread not the page which is specified in
my script, and how to get also the actual page number
of current page?
Here is my workaround.
tell application "QuarkXPress"
activate
tell document 1
set newTextBox to make new text box at beginning of
current page with properties {bounds:{0, "-30p",
"30p", 0}}
set textBoxCount to count of text box in current
page
repeat with i from 1 to textBoxCount
try
tell text box i
set textContent to every text of text of current
box
end tell
on error
display dialog "The current box is an empty box"
buttons {"continueing...."} giving up after 2
end try
tell newTextBox
make text at end with properties
{contents:textContent & return}
end tell
end repeat
end tell
end tell
TIA,
elmer
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
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.