• 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
FaceSpan and Quark object references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FaceSpan and Quark object references


  • Subject: FaceSpan and Quark object references
  • From: Steve Thompson <email@hidden>
  • Date: Fri, 30 Aug 2002 04:34:32 -0700 (PDT)

Hey,

I have FaceSpan application that uses a subroutine to return a record based on the contents of a Quark Document. One of the items in the record is a list of lists of object references which I need to repeat through and select the relevant box. However when it comes to the 'set selected to true' command I get the following error message: Can't set +class selc; of +class GNBX; 2 of +class sprd; 1 of document "read test" to true

I've been trying to get this working for ages - I can't work out why I'm getting raw event code, it seems like it does know what the class of the data in the variable is...

Here is my code and results:

tell application "QuarkXPress"
set tboxes to my flightCheckBoxes(a, b, c)
--> {passed:false, errors:{"\"Panel\" is the wrong type.", "\"Legal\" is the wrong type."}, badBoxes:{{generic box 2 of spread 1 of document "read test"}, {generic box 1 of spread 1 of document "read test"}}}
if passed of tboxes is false then
repeat with i from 1 to (count of errors of tboxes)
if item i of badBoxes of tboxes is not false then
repeat with j from 1 to (count of items of badBoxes of tboxes)
set x to item i of badBoxes of tboxes
tell item j of x
set selected to true
--> Can't set +class selc; of +class GNBX; 2 of +class sprd; 1 of document "read test" to true
end tell
end repeat
end if
display dialog (item i of errors of tboxes)
end repeat
end if
end tell

Any help or suggestions would be greatly appreciated!!! Thanks!
_______________________________________________
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.

  • Prev by Date: Re: Mai.app - Get sender ...
  • Next by Date: Re: Error codes
  • Previous by thread: Re: Mai.app - Get sender ...
  • Next by thread: Other lists
  • Index(es):
    • Date
    • Thread