• 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: Loading Print Styles in Quark?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading Print Styles in Quark?


  • Subject: Re: Loading Print Styles in Quark?
  • From: Brett Conlon <email@hidden>
  • Date: Fri, 16 Dec 2005 15:53:11 +1000


Hey Bastiaan,

Thanks for the reply.

Unfortunately I still can't get the click action to respond. Perhaps it's a 10.4 issue???

I've used UI Browser's 'click at' recommendation:

--------------------
tell application "QuarkXPress" to activate
tell application "System Events"
        tell process "QuarkXPress"
                delay 1
                try
                        -- modify offsets as needed for hot spot
                        tell button "Import..." of window "Print Styles"
                                set pos to position as list
                                set siz to size as list
                                set x to item 1 of pos
                                set y to item 2 of pos
                                set width to item 1 of siz
                                set Height to item 2 of siz
                                click at {x + width / 2, y + Height / 2}
                        end tell
                end try
        end tell
end tell
--------------------
and the following:
--------------------
tell application "QuarkXPress" to activate
tell application "System Events"
        tell process "QuarkXPress"
                delay 1
                select button 2 of window "Print Styles"
        end tell
end tell
--------------------

But in both cases the button flashes blue, like it is actually being pressed but nothing happens. I even tried sending the command 2 or 3 times in a row... flash, flash, flash - no action!

Is the click too quick, like I sometimes have gotten away with when I went to click on a button but instantly realise I didn't want to do it and it miraculously didn't activate, even though it flashed for an instant? Can I send a more solid, longer, heavier kind of click - a bash!? I've even tried using AXPress but nothing will work apart from the user clicking it themselves. As you can see I'm getting desperate!  ;-D

Cheers,

Coj




Bastiaan Boertien <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden

15/12/05 09:34 PM

To
email@hidden
cc
Subject
Re: Loading Print Styles in Quark?





Hi,

You can get the bounds of the print dialog. 
Then you can claculate where to click. And click location instead of an UIelement. 
Also you can try to click an UIElement by numeric index instead of an button  with name. 
I had the same problems with clikcing in the pdf perferences of QuarkXpress 6.1. With clicking the UIElement by nummeric index solved my problem. and Clicking on pallettes I calculate the bounds of the pallettes and click location. In Quark I never say click button 1 or botton "botton" because 80% doesn't work with my version of QuarkXPress. maybe this has something to do that QuarkXPress is not written in cocoa. 

Maybe this information helps you

here an example what I use for closing pallettes

closePalette("QuarkXPress Passport", "QuarkXPress", "Typogrammen") --Typogrammen is needed when closing the pallette style sheets and the programming language is dutch

on closePalette(theApp, theProcess, thePallette)
tell application theApp to activate
tell application "System Events"
tell process theProcess
tell window thePallette
set windowPosition to position
set locationToClick to {((item 1 of windowPosition) + 10), ((item 2 of windowPosition) + 7)}
end tell
click at locationToClick
end tell
end tell
end closePalette
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Loading Print Styles in Quark? (From: Bastiaan Boertien <email@hidden>)

  • Prev by Date: Re: Best practices for creating and comparing lists of text?
  • Next by Date: Re: Best practices for creating and comparing lists of text?
  • Previous by thread: Re: Loading Print Styles in Quark?
  • Next by thread: Best practices for creating and comparing lists of text?
  • Index(es):
    • Date
    • Thread