How to use Applescript to open a printer app and select items within? I have absolutely no knowledge or experience in using Applescript or Automator. I'm hoping by using either to create an app (or script) that will print a test page off my printer automatically. I know how to open the printer app (Canon iX6800 series.app), but I'm stuck from there with the dialog box not knowing how to continue to do the following steps:

Run &quot;Canon iX6800 series&quot; - I got this part…
Select &quot;Settings&quot; or Command S
Select &quot;Utility&quot;
Select &quot;Print Test Page&quot;
Click &quot;OK&quot;
Quit the app.

Any suggestions or help will be greatly appreciated. I can send the actual app to whoever might need it. Thanks in advance.
George
I believe I've roughly translated your steps into a working AppleScript:
tell application &quot;Canon iX6800 series&quot; to activate -- Run &quot;Canon iX6800 series&quot;
delay 0.25
tell application &quot;System Events&quot; to tell process &quot;Canon iX6800 series&quot;
    click menu item &quot;Canon iX6800 series&quot; of menu &quot;Window&quot; of menu bar 1
    click menu item &quot;Settings&quot; of menu &quot;Printer&quot; of menu bar 1 -- Select &quot;Settings&quot;
    click radio button &quot;Utility&quot; of tab group 1 of sheet 1 of window 1 -- Select &quot;Utility&quot;
    click button &quot;Print Test Page&quot; of tab group 1 of sheet 1 of window 1 -- Select &quot;Print Test Page&quot;
    key code 53 -- escape key (selects Cancel)
end tell
tell application &quot;Canon iX6800 series&quot; to quit -- Quit the app

Note that the part at the beginning (with the delay and window selection) is necessary to ensure that an active window is open in the printer app; otherwise, the Settings panel won't be able to open if a window isn't already open.

Although the following isn't what the OP is asking for, in case anybody else is looking to do this with a printer that doesn't supply a &quot;Print Test Page&quot; option in the Settings panel, here's an alternate solution:

Open the &quot;Canon iX6800 series&quot; app
Click the &quot;Print Test Page&quot; menu item in the &quot;Printer&quot; menu
Quit the app

To accomplish this, replace lines 5–7 of the above with click menu item &quot;Print Test Page&quot; of menu &quot;Printer&quot; of menu bar 1.