Re: Finder error duplicating AppleWorks file
Re: Finder error duplicating AppleWorks file
- Subject: Re: Finder error duplicating AppleWorks file
- From: Jeffrey Mattox <email@hidden>
- Date: Fri, 23 May 2003 20:30:20 -0500
At 11:21 AM +0100 5/23/03, Nigel Smith wrote:
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.
That will work for the basics, but I'm also renaming older version of
the backup and rippling them, so I have to use the Finder to rename
the older backups anyway -- might as well duplicate the current one
there, too. Telling finder to update the file(s) solved my problem,
and I don't even have to close the file (just save it first).
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.