Re: Page Setup Change paper size
Re: Page Setup Change paper size
- Subject: Re: Page Setup Change paper size
- From: "Scott S. Lawton" <email@hidden>
- Date: Sun, 22 Apr 2001 12:09:21 -0400
Awhile back, "Bourque, Jason" <email@hidden> typed:
>
Does anyone have a more reliable solution for changing the paper size in a
>
Page Setup Dialog that is different than the one below?
>
>
tell application "PreFab Player"
>
--Yield processor time to PreFab Player
>
set forced yield to true
>
>
set mouse delay to 9
>
set typing delay to 9
>
do menu menu item "Page Setup" of menu "File"
>
>
drag from {316, 115} to {315, 165}
>
click button "Ok"
>
>
set forced yield to false
>
end tell
This works for me (using the LW 8 driver):
tell application "SimpleText" to activate
tell application "PreFab Player"
--Yield processor time to PreFab Player
set forced yield to true
do menu menu item "Page Setup" of menu "File"
do menu popup item "A4" of popup 31
click button "Ok"
set forced yield to false
end tell
Read the doc page on "do popup". Many popups don't have names (at the internal level where Player works), but Player accepts either the ID or XY location -- you almost never have to use "drag". e.g. this works too:
do menu popup item "A4" of popup {316, 115}
Also, you probably don't need the mouse delay and certainly don't need the typing delay (since there's no typing in this snippet) ... but if you do set them, you way want to set them back:
set mouse delay to default mouse delay
set typing delay to default typing delay
---
As you can tell, we don't monitor the mail lists very often. Registered users (or people testing out the free 30-day trial version downloaded from our website) can email or CC email@hidden for fast response.
cheers,
SSL, PreFab Software
Free 30-day trial version of Player at
http://www.prefab.com