• 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: Alex Zavatone <email@hidden>
  • Date: Wed, 03 Apr 2013 13:02:42 -0400

Visible = if the application process is hidden or not - I think.

visibleget/setbooleanIs the process' layer visible?


On Apr 3, 2013, at 12:29 PM, 2551phil wrote:

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
References: 
 >Safari (From: Alex Zavatone <email@hidden>)
 >Re: Safari (From: Luther Fuller <email@hidden>)
 >Re: Safari (From: 2551phil <email@hidden>)

  • Prev by Date: Re: Safari
  • Next by Date: Re: Safari
  • Previous by thread: Re: Safari
  • Next by thread: Script to pause/suspend Safari when in the background and resume when in foreground
  • Index(es):
    • Date
    • Thread