Script and XT

Discuss AppleScripting for QuarkXPress 10, 9 & 8 (and before)
mtbswiss
Posts: 0
Joined: 22 Oct 2009, 09:13

Script and XT

Post by mtbswiss » 22 Oct 2009, 03:36

\

Scripting_Ace
Posts: 684
Joined: 29 Jun 2004, 13:14

Script and XT

Post by Scripting_Ace » 22 Oct 2009, 03:53

Does this Xtension come with a UI, do you need to have acces to it?
If not, its a somple case of calling the appropriate shortcut menu vis AppleScript. (If there isn't one for your XT, just set one up in keboard shortcuts prefs).
If you do need access to the UI then you have to check if it is compatible with UI Scripting.
That said, there is porbably a way to do what you wish without using the XT.

HTH

mtbswiss
Posts: 0
Joined: 22 Oct 2009, 09:13

Script and XT

Post by mtbswiss » 22 Oct 2009, 04:15

\

Scripting_Ace
Posts: 684
Joined: 29 Jun 2004, 13:14

Script and XT

Post by Scripting_Ace » 22 Oct 2009, 04:37

Ok, but you still need access to the "Rename, Relink & Save Document..." button.

Like I said, this could all be done witrh AppleScript alone...

mtbswiss
Posts: 0
Joined: 22 Oct 2009, 09:13

Script and XT

Post by mtbswiss » 22 Oct 2009, 04:55

\

mtbswiss
Posts: 0
Joined: 22 Oct 2009, 09:13

Script and XT

Post by mtbswiss » 24 Oct 2009, 13:11

\

Scripting_Ace
Posts: 684
Joined: 29 Jun 2004, 13:14

Script and XT

Post by Scripting_Ace » 26 Oct 2009, 05:16

It is very hard to target a specific picture box unles it has a specific (and unique) property (name, color, location, frame, contents, etc.)

mtbswiss
Posts: 0
Joined: 22 Oct 2009, 09:13

Script and XT

Post by mtbswiss » 26 Oct 2009, 10:02

\

Scripting_Ace
Posts: 684
Joined: 29 Jun 2004, 13:14

Script and XT

Post by Scripting_Ace » 27 Oct 2009, 05:14

Unfortunately, boxes on Master Spread cannot be targetted according to set properties. However, the following script will do what you want on all pages that of you document that has the mentioned Mastre applied to it.

001tell application "QuarkXPress Passport 7.x"
002set docName to name of document 1

003[b]tell [b]document [b]docName
004[b]set [b]PageList [b]to [b]page number [b]of [b]every [b]page [b]whose [b]master spread [b]is [b]"B-Master B[b]"
005[b]repeat [b]with [b]p [b]in [b]PageList
006[b]tell [b]page [b]p
007[b]set [b]box type [b]of [b]([b]every [b]picture box [b]whose [b]shade [b]is 10 [b]and [b]color [b]is [b]"black[b]") [b]to [b]graphic box type
008[b]end [b]tell
009[b]end [b]repeat
010[b]end [b]tell

011[b]end [b]tell
[b]Notes: The line numbers included with this script are there to aid future discussions. In order to use this script, you will have to strip all of them.

HTH

mtbswiss
Posts: 0
Joined: 22 Oct 2009, 09:13

Script and XT

Post by mtbswiss » 27 Oct 2009, 07:35

\

Post Reply

Return to “QuarkXPress 8, 9 & 10: AppleScript”