• 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
Scripting Print Orientation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Scripting Print Orientation
      • From: Axel Luttgens <email@hidden>
    • Re: Scripting Print Orientation
      • From: parag vibhute <email@hidden>
  • Prev by Date: Re: scripting in Safari
  • Next by Date: changing uppercase/lowercase of MS word footnote text...
  • Previous by thread: Re: Searching in iCal
  • Next by thread: Re: Scripting Print Orientation
  • Index(es):
    • Date
    • Thread