mercredi 1 octobre 2014

AppleScript get attribute won't return value when app is in fullscreen


Vote count:

0




This script works when terminal application(or any application) is not in FullScreen mode. It will return the correct value of false. When you make the application fullscreen it returns any empty value. The only thing I can think of is that when you go fullscreen it puts it on a different desktop? Am I missing something to activate the app differently now that it is fullscreen?


tell application "System Events" to set the visible of every process to true set white_list to {"Finder", "AppleScript Editor", "Google Chrome"}


tell application "System Events" set process_list to the displayed name of every process whose visible is true set process_number to (number of items in process_list) set myList to process_list end tell


repeat with theItem in myList if theItem is not in white_list then log theItem tell application "System Events" to tell process theItem set isFullScreen to the value of attribute "AXFullScreen" of windows end tell end if end repeat return theItem & " application is FullScreen: " & isFullScreen



asked 17 secs ago







AppleScript get attribute won't return value when app is in fullscreen

Aucun commentaire:

Enregistrer un commentaire