• 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
Mail Print GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail Print GUI


  • Subject: Mail Print GUI
  • From: Marcus Rodrigues <email@hidden>
  • Date: Tue, 24 Jun 2003 18:50:51 -0300

Can someone tell me why it does not print?

Please test it...

If someone can make it print I would really appreciate =-)

Thx =-D



if my do_menu("Mail", "File", "Print...") is false then error number
-128
if my do_menu("Mail", "File", "Print...") is false then error number
-128

on do_menu("Mail", "File", "Print...")
try
-- bring the target application to the front
tell application "Mail"
activate
end tell
tell application "System Events"
with timeout of 300 seconds -- 5 minutes
tell process "Mail"
tell menu bar 1
click menu item "Print..." of menu "File"
tell window "Print"
click button "Print"
end tell
end tell
end tell
end timeout

end tell
return true
on error error_message
return false
end try
end do_menu







o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Mail Print GUI
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Recipients in Mail.app
  • Next by Date: Re: Recipients in Mail.app
  • Previous by thread: Re: Recipients in Mail.app
  • Next by thread: Re: Mail Print GUI
  • Index(es):
    • Date
    • Thread