save documents problem (reprise)
save documents problem (reprise)
- Subject: save documents problem (reprise)
- From: Charles Bennett <email@hidden>
- Date: Thu, 01 Aug 2002 18:40:03 -0400
It looks like I "boiled" by example down too far and was mistaken
about where the error message was generated. Same problem, same app
but let me show the entire script.
it appears that 'tell "Microsoft Word" to save documents' works,
but that just makes the error more "interesting" :-)
Here it is. All that is running is script editor, Word and Finder
tell application "System Events"
set theApps to the name of every process whose visible is true
end tell
repeat with i from 1 to (count theApps)
set theAppName to item i of theApps
if theAppName is not "Finder" and theAppName is not "Script Editor" then
tell theAppName to save documents
end if
end repeat
NOW I get the 'Can't get every document of "Microsoft Word"' error
and if Text Edit is running instead of Word then it tosses the error.
Sorry for the false start.
Chuck
Charles Bennett wrote:
Hi all.
I'm trying to debug some script problems
that seem to have popped up after an AppleScript update
Running 10.1.5 server. Latest AppleScript updates.
Logged in as root.
Created a Word document, saved it with a valid name, then modified the
text...
so I'm sitting there with a "dirty red dot" but ready to save.
I have boiled it down to this single line example, run in script editor.
tell "Microsoft Word" to save documents
This used to work.. honest :-)
Now I get an error that says
Can't get every document of "Microsoft Word"
I get the same error from "Text Edit" if I do the same with it..
I'm new to AppleScript but either I've forgotton something basic
or my system is horked (tech term) in some way.
Any ideas welcome. My "AppleScript is a nutshell" is letting me down on
this one :-)
Thanks,
Chuck
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
--
UPS Management software for OS X
http://www.powerguardian.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.