• 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: Scripting Quark XPress palettes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Quark XPress palettes


  • Subject: Re: Scripting Quark XPress palettes
  • From: Bastiaan Boertien <email@hidden>
  • Date: Fri, 4 Mar 2005 10:57:26 +0100

Hello David

No there isn't because you call the palletes with applescript and you gan get the size and position of that window but you can't set it. what I did with a couple of script is getting te bounds and then calculating te position to click. I don't know if you want to use it like this way but this was the only way I can find for closing pallettes and Scripting QX-Tools.

Here are two of my Handlers I Use. I have more so when you need something else just mail me

getBounds("QuarkXPress Passport", "QuarkXPress", "Style Sheets")

closePallete("QuarkXPress Passport", "QuarkXPress", "Style Sheets")

on theApp, theProcess, thePalette)
tell application theApp to activate
tell application "System Events"
tell process theProcess
tell window thePalette
set wiindowPosition to position
set windowSize to size
end tell
end tell
end tell


set theBounds to {(item 1 of wiindowPosition), (item 2 of wiindowPosition), ((item 1 of wiindowPosition) + (item 1 of windowSize)), ((item 2 of wiindowPosition) + (item 2 of windowSize))}
return theBounds
end getBounds

on theApp, theProcess, thePalette)
tell application theApp to activate
tell application "System Events"
tell process theProcess
tell window thePalette
set wiindowPosition to position
set locationToClick to {((item 1 of wiindowPosition) + 10), ((item 2 of wiindowPosition) + 7)}
end tell
click at locationToClick
end tell
end tell
end closePallete

Maybe this helps you a little

greetings bastiaan

Op 3-mrt-05 om 23:41 heeft Shane Stanley het volgende geschreven:

On Thu, 3 Mar 2005 14:00:48 -0500, David Wolfe wrote:

Does anyone know of a way to script the positioning of palettes in
XPress?

Can't be done, I'm afraid.

--
Shane Stanley <email@hidden>


_______________________________________________
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
 _______________________________________________
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: 
 >Scripting Quark XPress palettes (From: David Wolfe <email@hidden>)
 >Re: Scripting Quark XPress palettes (From: "Shane Stanley" <email@hidden>)

  • Prev by Date: Re: FTP-delete - variation ?
  • Next by Date: Re: unicode to ascii (not MacRoman)
  • Previous by thread: Re: Scripting Quark XPress palettes
  • Next by thread: Re: Scripting Quark XPress palettes
  • Index(es):
    • Date
    • Thread