Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Application off screen - Mac OS X 10.7

Application is off screen. Happens after using 27inch display. Clearly a resolution issue. Tried everything including playing with the resolution, etc. After looking at several discussions and forums the one that works on my Macbook Air https://discussions.apple.com/thread/1693692?answerId=8012940022#8012940022&messageID=8012940#8012940does not work on my recently purchased (2 weeks) Macbook Pro 15inch.


After running applescript editor I get this error: error "System Events got an error: Access for assistive devices is disabled." number -25211


Anyone else getting this too?



This is the script Im running.


-- Example list of processes to ignore: {"xGestures"} or {"xGestures", "OtherApp", ...}

property processesToIgnore : {}


-- Get the size of the Display(s), only useful if there is one display

-- otherwise it will grab the total size of both displays

tell application "Finder"

set _b to bounds of window of desktop

set screen_width to item 3 of _b

set screen_height to item 4 of _b

end tell


tell application "System Events"

set allProcesses to application processes

set _results to ""

repeat with i from 1 to count allProcesses

set doIt to 1

repeat with z from 1 to count processesToIgnore

if process i = process (item z of processesToIgnore) then

set doIt to 0

end if

end repeat


if doIt = 1 then

tell process i

repeat with x from 1 to (count windows)

set winPos to position of window x

set _x to item 1 of winPos

set _y to item 2 of winPos


if (_x < 0 or _y < 0 or _x > screen_width or _y > screen_height) then


set position of window x to {0, 22}


end if

end repeat


end tell

end if

end repeat

end tell

MacBook Pro, Mac OS X (10.7.2)

Posted on Jan 1, 2012 7:40 PM

Reply
Question marked as Best reply

Posted on Jan 1, 2012 8:11 PM

Did you enable access for assistive devices? It's in the Universal Access system prefs.

5 replies

Jan 1, 2012 10:38 PM in response to gabemejiav

It sounds like you were running a second display in extended desktop mode.


If the adapter and/or cable for the second monitor is still attached, it can fool the Mac into believing the second monitor is still present. Detaching that cable/adaptr and then restarting should fix it.


You can also try going to System Preferences > Monitors and change the setup from extended mode to mirror mode.

Application off screen - Mac OS X 10.7

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.