if application "Safari" visible is false then (AppleScript) I would like to check if Safari is visible, my AppleScript code was this, but it doesn't work ... How can I check the visible with AppleScript?

if application "Safari" visible is false then
    tell application "Safari"
        activate
    end tell
end if
Try this,,,

tell application "System Events"
    if visible of process "Safari" is false then
        tell application "Safari" to activate
    end if
end tell


That will only work if it's running, but hidden, btw. If you simply want the script to 'fetch' Safari, just activate it without any check