Re: Quark 7 - Get picture box number
Re: Quark 7 - Get picture box number
- Subject: Re: Quark 7 - Get picture box number
- From: "Christian Sonntag <email@hidden>" <email@hidden>
- Date: Wed, 16 Sep 2009 22:37:01 +0200
Hi.
You can use index: set PBoxNumber to index of item x in MissingImageList set selected of picture box PBoxNumber to true --tell me to ReLinkthePicture() set selected of picture box PBoxNumber to false
Another way to access a box is the property uniqueID: set PBoxNumber to uniqueID of item x in MissingImageList set selected of picture box id PBoxNumber to true --tell me to ReLinkthePicture() set selected of picture box id PBoxNumber to false
Regards, Christian
Datum: 16. September 2009 17:55:43 MESZ
Betreff: Quark 7 - Get picture box number
Sorry but the code was not all bunched together when I sent it the first time. Hope this comes thru better.
Oakley
Greets All
I am trying to get the same data that the Quark/Utility/Usage/Pictures does via AppleScript.
This Works but I need to get the picture box number from the MissingImageList. I want to use it to select the pBox and relink it.
tell application "QuarkXPress" tell document 1 set MissingImagesCount to 0 tell spread 1 set selected of everypicture box to false set MissingImageList to every picture box whose image 1 is missing set MissingImagesCount to number of items in MissingImageList (* --this part does not work
repeat with x from 1 to MissingImagesCount set PBoxNumber to picture box number of item x in MissingImageList --Bad Line of code display dialog "Pict Box Number of Item " & x & " is " & PBoxNumber set selected of picture box PBoxNumber to true tell me to ReLinkthePicture{} set selected of picture box PBoxNumber to false end repeat *) end tell
end tell display dialog "Missing Image Count is <" & MissingImagesCount& ">" buttons {"OK"} default button "OK" giving up after 60 endtell
Thanks for any insight on this one. Oakley
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden