tell application "Safari"
	activate
	if front document exists then
		tell front document
			set URL to "%@"
		end tell
	else
		open location "%@"
	end if
end tell
