Hi,
I realized that when Backup executes it does not backup files that are open even if they are automaticaly saved by Excel or Word. I want to create a script that closes and saves all windows of certain open applications.
I did a little script to see what happens with Excel and Word having 4 windows open. The script seems to excute Ok with Word, but with Excel only 1 or 2 window closes.
Does somebody understand what is going wrong. Here is the script:
tell application "System Events"
tell application "Finder"
tell application "System Events" to exists process "Excel"
if result then
try
with timeout of 5 seconds
tell application "Excel" to close every window saving yes
end timeout
end try
end if
end tell
end tell
Thanks in advance.
Robert
Model: iMac G5 1.6 Ghz
Browser: Safari 523.12.2
Operating System: Mac OS X (10.5)