Re: Quark 5.01 scripting syntax
Re: Quark 5.01 scripting syntax
- Subject: Re: Quark 5.01 scripting syntax
- From: Bill Metzinger <email@hidden>
- Date: Thu, 23 Oct 2003 08:33:17 -0400
Hey Kurt,
As Shane Stanely said you use the show document 2 to activate a
document. Although it's not necessary. You can do all your magic with
where the docs lie. As far as moving the boxes around, here's how I dot
it. This example moves everything down and right by a half inch.
tell application "QuarkXPress"
activate
set AppleScript's text item delimiters to ""
tell page 1 of document 1
select every text box
set bd to bounds of group box 1 as list
set char to ((count of characters of (item 1 of bd as text))) as
number
set y to ((items 1 thru (char - 1) of (item 1 of bd as text)) as text)
set char to ((count of characters of (item 2 of bd as text))) as
number
set x to ((items 1 thru (char - 1) of (item 2 of bd as text)) as text)
set char to ((count of characters of (item 3 of bd as text))) as
number
set h to ((items 1 thru (char - 1) of (item 3 of bd as text)) as text)
set char to ((count of characters of (item 4 of bd as text))) as
number
set w to ((items 1 thru (char - 1) of (item 4 of bd as text)) as text)
set bd2 to {(y + 0.5), (x + 0.5), (h + 0.5), (w + 0.5)} as list --<<
make your moves here
set bounds of group box 1 to bd2
end tell
set AppleScript's text item delimiters to tab
end tell
} Where'd you get the coconuts?
} We found them.
} Found them? In Mercea? The coconut's tropical!
} What do you mean?
} Well, this is a temperate zone.
_______________________________________________
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.