AppleScript can't get the index of the QuarkXPress group boxes! Help Me!
AppleScript can't get the index of the QuarkXPress group boxes! Help Me!
- Subject: AppleScript can't get the index of the QuarkXPress group boxes! Help Me!
- From: "chung chung" <email@hidden>
- Date: Wed, 23 Jul 2003 17:12:18 +0000
To Everybody :
My name is Rex, I alway develop some tools with AppleScript.
II found the QuarkXPress and AppleScript problem. The result can
be retrieve 5 indexes of Sample A and that is normal, but the sample
B is 3 indexes only. I want to know How do I fix it problem?
Can you help me!
[ Sample Code ]
tell application "QuarkXPress"
activate
tell document 1
set _theIndexList to index of every generic box of page 1 &
whose box type is not line box and selected is true
end tell
end tell
Samples A step:
1. Create the genericBox 1 to 5 ( total 5 boxes) on the page 1
2. Select Generic Box 1 and 2, and make to first group, the name is GrpA,
3. Select Generic Box 3 and 4, and make to second group, the name is GrpB,
4. Select GrpA and GrpB and Generic Box 5, and make to final Group, the name is GrpC.
5. Select GrpC (total 5 index had been selection) and run the sample code.
6. The result can be return 5 indexes (Box 1 to 5).
--> { 1, 2, 3, 4, 5}
index 1 --> Generic Box 5
index 2 --> Generic Box 4
index 3 --> Generic Box 3
index 4 --> Generic Box 2
index 5 --> Generic Box 1
Samples B :
1. Create the genericBox 1 to 5 ( total 5 boxes) on the page 1
2. Select Generic Box 1 and 2, and make to first Group, the name is GrpA,
3. Select GrpA and Generic Box 3, and make to second Group, the name is GrpB,
4. Select GrpB and Generic Box 4, and make to third Group, the name is GrpC,
5. Select GrpC and Generic Box 5, and make to final Group, the name is GrpD,
6. Select GrpD (total 5 index had been selection) and run the sample code.
7. The result is 3 indexes only, and missing index 4 and 5.
--> { 1, 2, 3}
index 1 --> Generic Box 5
index 2 --> Generic Box 4
index 3 --> Generic Box 3
I want to know How do I fix the problem, have you any suggestion?
Thanks everybody
REX
_________________________________________________________________
Hotmail Extra StorageE}'A@r1o10MB CB%~@x&s*E6!!A=P'Y%S=P!I
http://join.msn.com/?pgmarket=zh-hk
_______________________________________________
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.