script to open file
Hi,
I have this script which used to work prior to the latest Monterey and still does to some extent. I have a mounted .dmg and trying to get a file to open. Pretty simple, right?
Here's the rub.
I used to be able to open the following script when Excel was closed and it would open Excel and the file no problem.
Now, in order for it to run and open the file, Excel needs to be running, otherwise Excel will open and the file will not open.
On big sur, no problem. This also happens with Adobe files that I have scripted to open, and once again Adobe needs to be running for the script to run.
Appreciate your help as always !
tell application "Finder"
activate
open document file "MASTERS.xlsx" of disk "STUFF"
end tell
iMac Line (2012 and Later)