Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Find whether Safari is active or not
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Find whether Safari is active or not



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)
 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >What AppleScript Can Do For Me? (From: James Bensley <email@hidden>)
 >Re: What AppleScript Can Do For Me? (From: Philip Aker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.