Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "System Events"
- set theSBounds to {{572, 64}, {332, 515}}
- set position of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 1 of theSBounds
- set size of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 2 of theSBounds
- end tell
- 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
- tell application "Default knipolnnllmklapflnccelgolnpehhpl"
- activate
- end tell
- tell application "System Events"
- set theSBounds to {{405, 23}, {1037, 633}}
- 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
- 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
- end tell
- on run {input, parameters}
- 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
- try
- run script resizeHangs
- end try
- return input
- end run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement