Go Back   DisplayLink Forum > Alpha, Beta Software Testing Programs > Closed Alpha and Beta Programs > CLOSED: Mac OSX 1.7 Release
Register FAQ Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Old 11-11-2011, 04:30 AM   #1
xn1ncrmns
Junior Member
 
Join Date: Nov 2011
Posts: 2
Default temporary script to retrieve lost windows

Fellow black-hole-window comrades: while display link is working on a fix for us (you are working on a fix of this bug, right?) if you paste the following script into applescript and run it, it should pull the windows out of the invisible zone. Not a fix, but at least if you have something critical on a window that you might have otherwise lost, this might save it from being lost. *THANKFULLY, THE BROWSER WINDOW I USED TO PAY FOR MY TWO DISPLAYLINK DEVICES DID NOT BECOME IRRETRIEVABLY LOST ON THE INVISIBLE THIRD MONITOR MID PAYMENT*


***paste into applescript***

-- 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
xn1ncrmns is offline  
Old 11-11-2011, 10:22 PM   #2
prettyby7
Junior Member
 
Join Date: Sep 2011
Posts: 12
Default

Quote:
Originally Posted by xn1ncrmns View Post
Fellow black-hole-window comrades: while display link is working on a fix for us (you are working on a fix of this bug, right?) if you paste the following script into applescript and run it, it should pull the windows out of the invisible zone. Not a fix, but at least if you have something critical on a window that you might have otherwise lost, this might save it from being lost. *THANKFULLY, THE BROWSER WINDOW I USED TO PAY FOR MY TWO DISPLAYLINK DEVICES DID NOT BECOME IRRETRIEVABLY LOST ON THE INVISIBLE THIRD MONITOR MID PAYMENT*


***paste into applescript***

-- 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
Thanks for something xn1ncrmns.

Hopefully, DisplayLink is working on a fix for this........
prettyby7 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.