4
votes

Using AppleScript, Can I open a URL in the CURRENT Safari window (i.e. without opening a new window or tab)?

I want to create a history so that I can hit the backarrow through a few web pages but only have one window open.

Any ideas?

1

1 Answers

10
votes

Sure you can :)

tell application "Safari" to set the URL of the front document to "whateverURLYouWant"