Re: finding overset boxes in Quark 4.11
Re: finding overset boxes in Quark 4.11
- Subject: Re: finding overset boxes in Quark 4.11
- From: Hanaan Rosenthal <email@hidden>
- Date: Tue, 2 Mar 2004 22:34:39 -0500
Hi Butch,
Quark gets funny sometimes with using properties inside expressions
box overflows is a property, if box overflows then is an expression.
Try this:
set boxOverflows to (get box overflows of it)
if boxOverflows then...
and:
set boxWraps to (get box wraps of it)
if (not boxWraps) then
saying:
not boxWraps
is the same as:
boxWraps is false
But prettier...
That may not be it, but did solve quite a few issues for me in the past.
Hanaan
On Mar 1, 2004, at 11:43 AM, Chitty, Butch wrote:
>
Greetings!
>
I'm working on a simple script to locate text boxes in a Quark 4.11
>
document that have text overflow. I'm getting "Can't make data into
>
expected type" and "Access not allowed" errors on the 'if box wraps is
>
false' and 'if box overflows' lines. Anyone have any idea what I might
>
be
>
doing wrong? I'm on AS 1.6/OS 9.2.1.
>
>
thanks in advance,
>
>
Butch
>
>
>
on open (theDoc)
>
tell application "Finder" to open theDoc
>
set prevOverset to 1
>
set boxID to findOverset(prevOverset)
>
if boxID = 0 then
>
display dialog "No oversets found here, buddy!"
>
else
>
display dialog "Box " & (boxID as string) & " is overset!"
>
end if
>
>
end open
>
>
on findOverset(prevOverset)
>
tell application "QuarkXPress(tm) 4.11"
>
tell document 1
>
set boxID to 0
>
repeat with i from prevOverset to (count of text boxes)
>
tell text box i
>
if box wraps is false then
>
if box overflows then
>
set boxID to i
>
exit repeat
>
end if
>
end if
>
end tell
>
end repeat
>
>
end tell
>
end tell
>
return boxID
>
end findOverset
>
_______________________________________________
>
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.
>
>
--
Hanaan Rosenthal * Custom Flow Solutions
MEDIA AUTOMATION CONSULTING
401-487-2957 * email@hidden
* www.customflowsolutions.com *
be successful... ...work less.
_______________________________________________
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.