Re: Finder error duplicating AppleWorks file
Re: Finder error duplicating AppleWorks file
- Subject: Re: Finder error duplicating AppleWorks file
- From: Nigel Smith <email@hidden>
- Date: Fri, 23 May 2003 11:21:13 +0100
On 21/5/03 3:04, "Jeffrey Mattox" <email@hidden> wrote:
>
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.
Why use the Finder at all?
--begin script
set theSrc to ((path to current user folder) as string) & <no-break>
"Documents:WW1:Archives.cwk"
set theDest to ((path to current user folder) as string) & <no-break>
"Documents:WW1:Backups:Archives.cwk"
tell application "AppleWorks 6"
tell document "Archives.cwk"
save
save in file theDest
close
end tell
open file theSrc
end tell
--end script
No need to leave AppleWorks, and no trouble with updates etc.
HTH,
Nigel
_______________________________________________
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.