Skip to content

Commit

Permalink
OS X: add more windows to the 'Set up for single/dual screens' scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
norm committed Feb 9, 2010
1 parent dda5e1d commit 8f17b4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Library/Scripts/Set up for dual screens.sh
@@ -1,14 +1,21 @@
#!/bin/sh

osascript <<APPLESCRIPT
set_spaces_binding( "com.apple.mail", 65544 )
resize_application( "Mail", { 1920, 22, 2854, 1200 } )
set_spaces_binding( "com.apple.ical", 65544 )
resize_application( "iCal", { 1920, 22, 2854, 1200 } )
resize_application( "Adium", { 2655, 650, 3360, 1200 } )
to resize_application ( app_name, size )
tell application app_name to ¬
set the bounds of the first window to size
do shell script "/bin/sleep 1"
end resize_application
to set_spaces_binding ( identifier, binding )
Expand All @@ -23,5 +30,6 @@ osascript <<APPLESCRIPT
end tell
end tell
end tell
do shell script "/bin/sleep 1"
end set_spaces_binding
APPLESCRIPT
10 changes: 9 additions & 1 deletion Library/Scripts/Set up for single screen.sh
@@ -1,14 +1,21 @@
#!/bin/sh

osascript <<APPLESCRIPT
set_spaces_binding( "com.apple.mail", 4 )
resize_application( "Mail", { 0, 22, 934, 900 } )
set_spaces_binding( "com.apple.mail", 4 )
resize_application( "iCal", { 0, 22, 934, 900 } )
set_spaces_binding( "com.apple.ical", 4 )
resize_application( "Adium", { 735, 350, 1440, 900 } )
to resize_application ( app_name, size )
tell application app_name to ¬
set the bounds of the first window to size
do shell script "/bin/sleep 1"
end resize_application
to set_spaces_binding ( identifier, binding )
Expand All @@ -23,5 +30,6 @@ osascript <<APPLESCRIPT
end tell
end tell
end tell
do shell script "/bin/sleep 1"
end set_spaces_binding
APPLESCRIPT

0 comments on commit 8f17b4b

Please sign in to comment.