Thanks for posting the Applescript. It doesn't seem to work anymore because
the name of the window has seemed to change from "Window" to "Command".
Here's a slightly more elaborate script that I created as a riff on your
script. Thanks for the head start!
-- Get dimensions of the screen
tell application "Finder"
set screenSize to bounds of window of desktop
set screenWidth to item 3 of screenSize
set screenHeight to item 4 of screenSize
end tell
tell application "System Events" to tell process "Quicksilver"
-- {window "Command" of application process "Quicksilver" of application
"System
Events"}
keystroke space using {command down}
delay 1
set {{p1, p2}, {s1, s2}} to window "Command"'s {position, size} --'
-- {pos {x,y}, size {x,y}}
set targX to (screenWidth - s1) / 2.0
set targY to (screenHeight - s2) / 2.0
tell window "Command" to set position to {targX, targY}
delay 1
keystroke space using {command down}
end tell
On Saturday, November 22, 2014 at 9:12:05 AM UTC-8, 1.61803 wrote:
>
> To center the Cube interface I made this script. I guess you can adjust
> the delays and make it a trigger.
>
> *tell* *application* "System Events" *to* *tell* *process* "Quicksilver"
>
> *keystroke* space using {*command down*}
>
> *delay* 1
>
> *tell* *window* "Window" *to* *set* position *to* {605, 545}
>
> *delay* 1
>
> *keystroke* space using {*command down*}
>
> *end* *tell*
>
--
You received this message because you are subscribed to the Google Groups
"Quicksilver" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/blacktree-quicksilver.
For more options, visit https://groups.google.com/d/optout.