• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari


  • Subject: Re: Safari
  • From: 2551phil <email@hidden>
  • Date: Wed, 03 Apr 2013 23:29:21 +0700

Can anyone explain under what conditions that would that return "False"?

It returns "True" for me, even when Safari is just idling in the background (i.e, not the active application).


On 3 Apr 2013, at 23:23, Luther Fuller <email@hidden> wrote:

On Apr 3, 2013, at 11:00 AM, Alex Zavatone wrote:

Immediately, I think that a process to detect when the app moves to the background and disable _javascript_ from the Develop menu is an easy approach.

This seems to work as you describe …

tell application "System Events" to set safariFrontmost to visible of process "Safari"




Best

Phil
http://applehelpwriter.com

 _______________________________________________
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

  • Follow-Ups:
    • Script to pause/suspend Safari when in the background and resume when in foreground
      • From: Alex Zavatone <email@hidden>
    • Re: Safari
      • From: Alex Zavatone <email@hidden>
    • Re: Safari
      • From: Luther Fuller <email@hidden>
References: 
 >Safari (From: Alex Zavatone <email@hidden>)
 >Re: Safari (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Safari
  • Next by Date: Re: Safari
  • Previous by thread: Re: Safari
  • Next by thread: Re: Safari
  • Index(es):
    • Date
    • Thread