Hi all,
I use AppleScript to re-size 10.9 and 10.10 VMs (several scripts out there that more or less do the same thing) and I have my own flavor that takes into account differences of screen size of my iMac and my MacBook Pro. Since upgrading to Fusion Pro 7 these scripts are now broken which is pretty surprising. I spend very little time writing AppleScript so before I go digging and debugging just curious if others ran into this? Below is a simplified script for illustration where this is returned: error "VMware Fusion got an error: Can’t set window 1 to {640, 178, 1920, 1262}." number -10006 fromwindow 1
An example:
settheAppto "VMware Fusion"
setappHeightto 1084
setappWidthto 1280
tellapplication "Finder"
setscreenResolutiontoboundsofwindowofdesktop
endtell
setscreenWidthtoitem 3 ofscreenResolution
setscreenHeighttoitem 4 ofscreenResolution
tellapplicationtheApp
activate
setyAxisto (screenHeight - appHeight) / 2 asinteger
setxAxisto (screenWidth - appWidth) / 2 asinteger
settheboundsofthefirstwindowto {xAxis, yAxis, appWidth + xAxis, appHeight + yAxis}
endtell