Hi I am tryin to add a new printer, but i am unable to click on the continue button which comes in a dialog box for duplex printing setup. here is what i have
tell application "AddPrinter" to activate
tell application "System Events" to tell process "AddPrinter"
click button "Advanced" of tool bar 1 of window "Add Printer"
tell group 1 of window "Add Printer"
tell group 2
repeat until pop up button 1 exists
end repeat
click pop up button 1
click menu item "Windows" of menu 1 of pop up button 1
set value of attribute "AXFocused" of text field 1 to true
set value of text field 1 to "smb://printserver"
end tell
tell group 1
set value of text field 1 to "Printer name"
set value of text field 2 to "printer location"
click pop up button 1
click menu item "Generic PostScript Printer" of menu 1 of pop up button 1
end tell
end tell
click button "Add" of window "Add Printer"
end tell
Also, is there any way to add the “Advanced” toolbar item if it is not present, or a way to add the smb printer through shell script, cause that would make my life much more easier…
Thanks,