PDA

View Full Version : Open Location in SAME WINDOW with Safari


wizerd
February 10th, 2009, 12:03 PM
i need an applescript for opening a specific url in my current browsing window without using tabs... i don't know why you can't open links from external applications in the same window as a given option..?

anyways... what are my chances? :D

Mikuro
February 10th, 2009, 02:25 PM
Try this:
tell application "Safari"
set the URL of document 1 to "http://www.macosx.com"
end tell

wizerd
February 10th, 2009, 02:32 PM
genius... muchos gracias