Advertisement
Guest User

Untitled

a guest
Feb 4th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. tell application "System Events"
  2. set theSBounds to {{572, 64}, {332, 515}}
  3. set position of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 1 of theSBounds
  4. set size of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 2 of theSBounds
  5. end tell
  6.  
  7. do shell script "osascript -e 'tell application "System Events"' -e 'set theSBounds to {{572, 64}, {332, 515}}' -e 'set position of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 1 of theSBounds' -e 'set size of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 2 of theSBounds' -e 'end tell'" with administrator privileges
  8.  
  9. tell application "Default knipolnnllmklapflnccelgolnpehhpl"
  10. activate
  11. end tell
  12. tell application "System Events"
  13. set theSBounds to {{405, 23}, {1037, 633}}
  14. set position of window "Google Hangouts - username@gmail.com" of application process "Google Chrome" to item 1 of theSBounds --replace username@gmail.com with your actual Gmail information
  15. set size of window "Google Hangouts - username@gmail.com" of application process "Google Chrome" to item 2 of theSBounds --replace username@gmail.com with your actual Gmail information
  16. end tell
  17.  
  18. on run {input, parameters}
  19.  
  20. set resizeHangs to POSIX file "/Users/Smokestack/Desktop/Resize Hangouts Test/Resize Hangouts.scpt" --obviously you will replace this file path with your actual file path that you saved your script in
  21. try
  22. run script resizeHangs
  23. end try
  24. return input
  25. end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement