Scripting Print Orientation
Scripting Print Orientation
- Subject: Scripting Print Orientation
- From: "Mr. Dan Pouliot" <email@hidden>
- Date: Sun, 23 Dec 2007 21:45:53 -0500
I have a need to automate printing a web page, and the web page must
be printed in Landscape orientation. Apparently no browser supports
the css property for page orientation, so that potentially simple
solution is not available. I find GUI scripting to be utterly
baffling- I can never figure out how to determine how to call a
particular element in a dialog box. UIElementInspector yields the
following code:
<AXApplication: “Safari”>
<AXWindow: “My Web Page”>
<AXSheet>
<AXRadioGroup>
<AXCheckBox>
Attributes:
AXRole: “AXCheckBox”
AXRoleDescription: “check box”
AXHelp: “(null)”
AXValue: “1”
AXEnabled: “1”
AXFocused (W): “0”
AXParent: “<AXRadioGroup>”
AXWindow: “<AXWindow: “My Web Page”>”
AXTopLevelUIElement: “<AXSheet>”
AXPosition: “x=896 y=270”
AXSize: “w=38 h=38”
AXTitle: “(null)”
Actions:
AXPress - press
And the Perform button even presses the button, but I have no idea how
to turn this gobbledygook into an applescript command to press the
button. hint hint feature request! Any help would be greatly
appreciated!
Sincerely
Dan Pouliot
_______________________________________________
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