This is actually very interesting to me, to see how to instruct the Mac to click specific menu items by name from a scripting language.
In case it's of use to you though, this and many more things can be done by a Python application I wrote and maintain called Clisk, which stands for Command Line Interface to Skype. Its web site is http://www.dlee.org/skype/clisk/ and it is open source. It uses the Skype API and the Skype4Py Python library though, not AppleScript, System Events, etc. As such, its capabilities and limitations are markedly different than those you're working with. On Tue, Aug 24, 2010 at 11:03:22AM -0700, louie wrote: Hi all, Below is a apple script to hang up a skype call. I am working on a apple script to answer skype calls. -- Apple script to hang up a skype call. -- Author -- Richard L. Most better known as Louie -- e-mail -- [email protected] -- Thanks to Greg Kearney for code so I can do creative plagiarism. tell application "Skype" to activate tell application "System Events" tell process "Skype" click menu item "Hang Up" of menu 1 of menu bar item "Call" of menu bar 1 end tell end tell tell application "Skype" to quit louie [email protected] -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en. -- Doug Lee [email protected] http://www.dlee.org SSB BART Group [email protected] http://www.ssbbartgroup.com "There are no guarantees. From a standpoint of fear, none are strong enough. From a standpoint of love, none are necessary." - from Emmanuel's Book II -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.
