Thanks for your Tipp with " System
Events", but does not work, too.
But this works fine:
tell application "System Events"
tell process "QuarkXPress"
activate -- important!
set position of window 1 to {0, 0}
set size of window 1 to {0, 0} -- set window 1 to Minimum
end tell
end tell
---------------------------------------
Am 20.03.14 23:37, schrieb John Baltutis:
On 3/20/14, dw <email@hidden> wrote:
I have a problem with QuarkXPress 10.1.0.1, reducing the Main Window
with AppleScript 2.3.1. (Mac OS 10.9.2).
I have to to set the Main Window of QuarkXPress to a smaller one.
tell application "QuarkXPress"
activate
set bounds of document 1 to {44, 44, 300, 1000} -- no Error: but
does not work, does nothing
set bounds of front document to {44, 44, 300,1000} -- no Error:
but does not work, does nothing
set properties of document 1 to {bounds:{22, 22, 492, 575}} -- no
Error: but does not work, does nothing
set properties of front document to {bounds:{22, 22, 492, 575}} --
no Error: but does not work, does nothing
end tell
I did not found any solution. And its a problem of Quark 10, in earlier
versions of Quark (8) it works. Any idea?
I don't have either, but try this, which works with TextEdit.
tellapplication "QuarkXPress" to activate
tellapplication "System Events"
set bounds of first window of application "QuarkXPress" to {44, 44, 300,
1000}
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
--
----------------------------------------------------------------------
Dieter
Wahner
DTP-Produktion
Heise Zeitschriften Verlag GmbH & Co.
KG
Karl-Wiechert-Allee 10, 30625 Hannover
Tel.: +49 [0] 511
5352-410
Fax: +49 [0] 511 5352-174
E-Mail:
email@hidden
----------------------------------------------------------------------
Heise
Zeitschriften Verlag GmbH & Co. KG
Registergericht:
Amtsgericht Hannover HRA 26709
Persönlich haftende
Gesellschafterin:
Heise Zeitschriften Verlag Geschäftsführung
GmbH
Registergericht: Amtsgericht Hannover, HRB
60405
Geschäftsführer: Ansgar Heise, Dr.
Alfons Schräder
|