• 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
visible of window bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

visible of window bug


  • Subject: visible of window bug
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 6 Nov 2006 09:40:13 -0600

My script said ...

	set appSup to (path to application support from user domain) as alias
	...
	else if visible of window of folder "Folder Name" of appSup then
		my doSomeStuff()
	dnd if

but other parts of the script were not working properly. Finally, I found the problem and wrote this to fix the it ...

	set appSup to (path to application support from user domain) as alias
	...
	else
		try
			visible of window of folder "Folder Name" of appSup
			if the result then my doSomeStuff()
		end try
	end if

It seems that 'visible of window ...' requires the window to be visible in order to return a boolean result, otherwise it errors. Illogical!

Does anyone know if there's a report on this bug?

_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: visible of window bug
      • From: kai <email@hidden>
  • Prev by Date: Re: Find server name of mounted volume
  • Next by Date: Re: Find server name of mounted volume
  • Previous by thread: detect power-saving mode
  • Next by thread: Re: visible of window bug
  • Index(es):
    • Date
    • Thread