Friday 11 August 2017

Using Applescript to open multiple tabs

Hi,

After starting the machine, we feel to open Mozilla/Safari for browsing our favorite websites. So, we need to open the each tab again and again and enter the url or click on bookmark of our favorite website. This task can be make simpler by using AppleScript.



Here is the code

[code]
tell application "Safari"
open location "http://coding-scripting.blogspot.co.in"
open location "http://www.google.com/"
open location "http://www.nokia.com/"
open location "http://www.yahoo.com/"
end tell
[/code]

In same manner, you can use Firefox application, if you are firefox lover. Just replace Safari with Firefox.

No comments:

Post a Comment