in

Quark Forums

Create Text Box in Run Time in QuarkXpress File

Last post 06-18-2009 3:49 AM by prabu. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 06-15-2009 12:18 AM

    • prabu
    • Top 150 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Create Text Box in Run Time in QuarkXpress File

     How to create text box in run time in opened quarkxpress file using applescript? Is there any possible?

     Regards

    Prabu

    Regards
    Prabu
  • 06-15-2009 2:01 AM In reply to

    • Emma
    • Top 10 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,184

    Re: Create Text Box in Run Time in QuarkXpress File

     Certainly. Try this

     


    tell application "QuarkXPress"
         tell document 1
              make new text box at beginning with properties {bounds:{"12 mm", "20 mm", "50 mm", "90 mm"}}
         end tell
    end tell

     

    You can find out more about the properties of objects by inserting a line such as 'properties of text box 1' and examining the result. I strongly recommend buying Shirley Hopkins' book 'AppleScripting QuarkXPress' if you want to learn how to script Quark.

  • 06-16-2009 10:15 PM In reply to

    • prabu
    • Top 150 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Re: Create Text Box in Run Time in QuarkXpress File

     Thanks for your reply and also advice.

    Regards
    Prabu
  • 06-16-2009 10:17 PM In reply to

    • prabu
    • Top 150 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Re: Create Text Box in Run Time in QuarkXpress File

     Is there any possible to give name for that text box? Could we delete the newly created text box?

     

    Regards

    Prabu

    Regards
    Prabu
  • 06-17-2009 12:34 AM In reply to

    • prabu
    • Top 150 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Re: Create Text Box in Run Time in QuarkXpress File

    Hi Emma While i try the above script, QuarkXPress got an error : Can't make class text box. Have you any idea...! Regards Prabu
    Regards
    Prabu
  • 06-17-2009 2:05 AM In reply to

    • Emma
    • Top 10 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,184

    Re: Create Text Box in Run Time in QuarkXpress File

    prabu:
    Hi Emma While i try the above script, QuarkXPress got an error : Can't make class text box. Have you any idea...! Regards Prabu
     

     Have you got a Quark document open? The script assumes you have. This should work in any version of Quark. Can you describe very carefully exactly what you are doing when you get the error? (Try quitting Script Editor and Quark and re-loading both, too).

    Then this script will name the box:

     

    tell application "QuarkXPress"
         tell document 1
              make new text box at beginning with properties {bounds:{"12 mm", "20 mm", "50 mm", "90 mm"}}
              set name of text box 1 to "myTextBox"
              properties of text box 1
         end tell
    end tell

     

    It is easily deleted with 'delete text box 1' (deletes the frontmost text box in the document) or 'delete text box "myTextBox" ' deletes the named box.
     

  • 06-17-2009 4:25 AM In reply to

    Re: Create Text Box in Run Time in QuarkXpress File

    As you have a properties list open why not just include the name as part of the list? tell application "QuarkXPress" tell document 1 make new text box at beginning with properties {name:"myTextBox", bounds:{"12 mm", "20 mm", "50 mm", "90 mm"}} properties of text box 1 end tell end tell (sorry could not be bothered goingh to FireFox for something so small)
  • 06-18-2009 3:49 AM In reply to

    • prabu
    • Top 150 Contributor
    • Joined on 06-04-2009
    • Chennai
    • Posts 64

    Re: Create Text Box in Run Time in QuarkXpress File

    Hi Emma & larsen

    Now it's working fine.

    Thank you very much and Hope you will help me again.

    Regards

    Prabu

     

     

     

    Regards
    Prabu
Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems