• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quark 7 - Get picture box number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Am 16.09.2009 um 21:14 schrieb email@hidden:

Von: Oakley Masten <email@hidden>
Datum: 16. September 2009 17:55:43 MESZ
An: Users Group AppleScript <email@hidden>
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

  • Prev by Date: Re: faulty logic, mine
  • Next by Date: Re: Courier in 10.6
  • Previous by thread: Quark 7 - Get picture box number
  • Next by thread: Re: Quark 7 - Get picture box number
  • Index(es):
    • Date
    • Thread