in

Quark Forums

tell "current" table box?

Last post 02-03-2009 6:12 PM by Witcher. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 12-31-2008 8:53 AM

    • Witcher
    • Top 50 Contributor
    • Joined on 07-22-2004
    • philadelphia
    • Posts 175

    tell "current" table box?

    I use "tell current box" to restrict what I'm doing to just the currently selected text box. Does anyone know what the equivalent would be for table boxes? "Tell table box 1" won't always work, obviously, unless I'm working on the first table in the document.
  • 01-01-2009 12:40 PM In reply to

    Re: tell "current" table box?

    tell first table box whose selected is true
    Jeff Jungblut
    Senior Graphic Designer & Web Developer
    Uptown Publications
    www.gaylesbiantimes.com
  • 02-03-2009 8:20 AM In reply to

    • Witcher
    • Top 50 Contributor
    • Joined on 07-22-2004
    • philadelphia
    • Posts 175

    Re: tell "current" table box?

    Jeff, Has that worked for you? I'm in 6.5, and it's not returning anything. I get "Can't get height of bounds of table box 1 of document 1 whose selected = true" Here's the code: tell document 1 of application "QuarkXPress" activate --store current units set {OldHor, OldVert} to {horizontal measure, vertical measure} set {horizontal measure, vertical measure} to {points, points} tell (first table box whose selected is true) return height of bounds end tell end tell
  • 02-03-2009 8:38 AM In reply to

    • Emma
    • Top 25 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,063

    Re: tell "current" table box?

     That works fine for me in Quark 7.5. BTW Witcher, you need to post in Firefox here - Safari swallows up your line endings! (or put them in manually via html)

     Will test Q6....

     No, it works perfectly in Quark 6 too. 

    HOWEVER, your error message does not match your script. If you are really asking for 'height of bounds of table box 1 of document 1 whose selected = true' it WILL error because you've already specified 'table box 1'.

    In the script you just say  'first table box whose selected is true', and that works fine.

  • 02-03-2009 9:58 AM In reply to

    • Witcher
    • Top 50 Contributor
    • Joined on 07-22-2004
    • philadelphia
    • Posts 175

    Re: tell "current" table box?

    Emma, (sorry, no FireFox on this Mac) Can you post what you're using? I'm not specfifying table box 1 in the code that's erroring. I'm curious ...
  • 02-03-2009 6:12 PM In reply to

    • Witcher
    • Top 50 Contributor
    • Joined on 07-22-2004
    • philadelphia
    • Posts 175

    Re: tell "current" table box?

    Okay, I got this to work:   

    set TableID to uniqueID of first table box whose selected is true
        tell table box id TableID
         do whatever

     

    Thanks to both of you guys!!!

     

     (written from home, on FireFox)

     

Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems