• 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
script mouse movement and click OR script 'PRINT'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Now Contact issues
  • Next by Date: Re: Address Book Bug
  • Previous by thread: Now Contact issues
  • Next by thread: [OT] My life after AS ... perl!
  • Index(es):
    • Date
    • Thread