AppleScript opening wrong Excel app
AppleScript opening wrong Excel app
- Subject: AppleScript opening wrong Excel app
- From: email@hidden
- Date: Fri, 07 Aug 2015 23:28:06 +0100
I have a script I have been using for years which positions an open
Excel file to the right screen. Now I have moved my 2nd screen to the
left, and AppleScript points to Windows Excel in Parallels Desktop and I
cannot see how to change it to where it should point: to my Mac Excel.
In Script Debugger it shows a runtime error: ~/Applications
(Parallels)/{03410e08-9dba-478d-9f7a-7e1e3c6699fb}
Applications.localized/Microsoft Excel.app
but I want the script to open: ~:Applications:Microsoft Office
2011:Microsoft Excel.app
- which it always did when it was positioning the worksheet on the right
screen.
The script I use is:
____________
tell application "Microsoft Excel"
activate
set window state of front window to window state normal
set {width of front window, height of front window, left
position of front window, top of front window} to {-1920, 137,
-30, 1289}
-- set bounds of active window to {2570, 125, 4460, 1325}
activate
end tell
_________________
Thx for any help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden