Hi, I’ve been looking into this for a while now, and can see that printing from Safari is problematic. However, I need to do it. I’m writting a script that will automatically process orders taken on our website. The script logs in, tabs and keystrokes its way through the process, selects the ‘print this invoice link’ … then comes the following:
tell application “System Events”
tell process “Safari”
keystroke “P” using (command down)
delay 4
keystroke return
end tell
end tell
The print window appears, the button gets clicked and the print window goes away again, but nothing gets printed.
Any ideas?
Cheers,
Kev.