Hi,
Could any one help me on how to find whether a selected text box is in grouped or not in applescript.
Thanks,
Gopal
Hi,
Could any one help me on how to find whether a selected text box is in grouped or not in applescript.
Thanks,
Gopal
Hi Gopal,
I am also currently scripting QuarkXPress and took your problem as a learning experience. After some fiddling, I came up with this solution:
(Please note that I am running Mac OS X 10.5 and QuarkXPress 7.3.1 (Demo))
tell application "QuarkXPress Passport"
if exists current box then
set curbox to current box
if class of curbox is text box then
set boxisgrouped to false
tell document 1
set curpage to current page
tell curpage
set allgroupboxes to every group box
set curboxid to uniqueID of curbox
repeat with agroupbox in allgroupboxes
set containedboxes to (uniqueID of generic boxes of agroupbox) as list
if curboxid is in containedboxes then
set boxisgrouped to true
exit repeat
end if
end repeat
end tell
end tell
return boxisgrouped
end if
end if
--generic boxes of curbox
end tell