Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
 
Thread Tools Rate Thread Display Modes
Old 03-18-2011, 02:40 PM   #1
himanshu
Major Leaguer
 
Join Date: Aug 2010
Location: India, Pune
Posts: 298
IsRunning is not working

PHP Code:
tell application "Finder"
    
if appIsRunning("Firefox"then
        tell application 
"Firefox" to quit
    
else
        
tell application "Safari"
            
set theURL to "THE URL"
            
make new document with properties {URL:theURL}
            
open location theURL
            
        end tell
    end 
if
end tell 
err: finder got err :can't continue IsRunning (-1708)
__________________

10.6.7 Snow Lepord "I n t e l"
himanshu is offline   Reply With Quote
Old 03-18-2011, 04:11 PM   #2
renaultssoftware
MVP
 
Join Date: Dec 2009
Location: Pembroke, Ontario
Posts: 2,051
There's no need to tell Finder at all, is there?
__________________
Get Icon Creator and support me.
renaultssoftware is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 06:47 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.