• 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
GUI TextEdit (solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GUI TextEdit (solved)


  • Subject: GUI TextEdit (solved)
  • From: Michael Ghilissen <email@hidden>
  • Date: Sat, 2 Jun 2007 04:13:56 -0400

Thanks to Philip Aker's contribution:

1/  include delay to pace TE
2/ add a click on the pop up button, before selecting menu item "HTML"

the following script now works:

tell application "TextEdit" to activate
tell application "System Events"
tell application process "TextEdit"
click menu item "Save As…" of menu "File" of menu bar item "File" of menu bar 1 -- menu item 7
click pop up button 1 of group 1 of sheet 1 of window 1
delay 1
click menu item "HTML" of menu 1 of pop up button 1 of group 1 of sheet 1 of window 1 -- menu item 2
delay 1
click button "Save" of sheet 1 of window 1 -- save file
end tell
end tell

It's a beautiful day already!

Thanks,

Michael

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: GUI TextEdit
  • Next by Date: Re: list-building performance
  • Previous by thread: Re: list-building performance
  • Next by thread: resetting script between runs
  • Index(es):
    • Date
    • Thread