Finder error duplicating AppleWorks file
Finder error duplicating AppleWorks file
- Subject: Finder error duplicating AppleWorks file
- From: Jeffrey Mattox <email@hidden>
- Date: Tue, 20 May 2003 21:04:48 -0500
I am trying to save a copy of an AppleWorks 6 database file (Mac OS
10.2.5). If there are no AppleWorks files open when this starts, it
runs. However, normally the database file is open, so I close it.
But this fails, even if I quit AppleWorks and delay in the script, as
shown.
tell application "AppleWorks 6"
save every document
close every document
quit -- does not help
end tell
delay 10 -- does not help
set theSrc to ((path to current user folder) as string) & [no break]
"Documents:WW1:"
set theDest to ((path to current user folder) as string) & [no break]
"Documents:WW1:Backups:"
tell application "Finder"
duplicate file (theSrc & "Archives.cwk") to folder theDest
--> document file "Archives.cwk"
--> Finder got an error: The operation could not be completed.
end tell
Sometimes, the original file is damaged and cannot be used by AppleWorks.
Using the Finder, I can manually duplicate the database file, even if
the file is currently open in AppleWorks.
This is part of an AppleScript Studio project on Mac OS 10.2.5, but
this snippet was run in Script Editor and generated the results shown
above.
What is the problem with the script?
Jeff
_______________________________________________
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.