script mouse movement and click OR script 'PRINT'
script mouse movement and click OR script 'PRINT'
- Subject: script mouse movement and click OR script 'PRINT'
- From: Christian Vinaa <email@hidden>
- Date: Sun, 22 Jan 2006 21:53:40 +0100
on open selection
try
tell application "Preview"
activate
open selection
end tell
tell application "System Events"
set myEnter to ASCII character of 13
keystroke "p" using command down -- print
keystroke myEnter -- ignore this, user specific
end tell
end try
end open
so far so good
result so far is an open document and an open print dialog
but how do I script to print to pdf ?
manually I: click the PDF square button at the bottom and choose
PRINT AS PDF
( OSX 10.3.9 )
--
Christian Vinaa
...... Meanwhile, aunt Martha, having taken a tramp in the woods,
is lying in a ditch at the edge of town .........................
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden