I am struck with simple script.
I am opening Safari on Leapord using script as following:
tell application "Safari"
activate
--open some url
end tell
Its working fine. But the problem is that if Safari is already opened and showing some webpage, its over writing in same window/tab of Safari.
What I want is that if Safari is already running, I want to create a new tab and open url in that. If Safari is not running, I just want to launch it and open the URL in first window (not in a new tab).
Looking for some help here.
--Satyam.
Thanks & Regards,
Satyanarayana SVV
Novell Software Development (I) Pvt. Ltd., Bangalore, India
9886555469 (mobile)
|