Re: Set bounds of doc window in Acrobat Professional 6.0.2
Re: Set bounds of doc window in Acrobat Professional 6.0.2
- Subject: Re: Set bounds of doc window in Acrobat Professional 6.0.2
- From: "Shane Stanley" <email@hidden>
- Date: Mon, 7 Mar 2005 14:49:27 +1100
On Sun, 6 Mar 2005 10:34:12 -0800, B2 Fass-Holmes wrote:
>tell application "Acrobat 6.0.2 Professional"
> activate
> set bounds of document 1 to {0, 45, 750, 1020}
> activate
>end tell
>
>The AppleScript above worked flawlessly with Acrobat Pro 6.0 and 6.0.1
>(i.e., with the corresponding version number in the script's first line).
>
>It does not resize the document window with 6.0.2. The script executes
>without an error message, but Acrobat's currently active document window
>fails to resize. If I change "document" to "window," then Script Editor
>does display an error alert.
>
>What do I need to change in this script so that it will function properly
>with 6.0.2?
It works fine here. Keep in mind that Acrobat's idea of document 1 is not
the active document, but the first one opened -- so if you open two
documents in a row, your snippet will resize the back one (it was ever
thus with Acrobat). You could also use "set bounds of active doc to..."
--
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