Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to write this applescript?
Hello,
Basically, I want to write an applescript that will do the following actions:
1. Open safari
2. Select private browsing in safari
3. Log onto my yahoo mail account, which is my homepage.
Best answer to the first one who tells me the right script. Thanks
I'm just learning applescript and can't seem to get the language correct.
1 Answer
- 9 years agoFavorite Answer
tell application "Safari" to open location "http://mail.yahoo.com"/
do shell script "/bin/sleep 5" -- pause to allow page to load
tell application "Safari" to activate -- bring Safari to front so that it receives the following keystrokes
tell application "System Events"
keystroke tab -- highlight username field
keystroke "Username" -- type in username
keystroke tab
keystroke "password" -- highlight password field
keystroke return -- equivalent to pressing "log in" button
keystroke "h" using command down -- hide Safari
end tell
ps: amazing, i learnt new language today :)