Re: Folder Actions & FileMaker backups
Re: Folder Actions & FileMaker backups
- Subject: Re: Folder Actions & FileMaker backups
- From: Gary Lists <email@hidden>
- Date: Thu, 26 Feb 2004 06:03:54 -0500
Denis Somar wrote [2/26/04 2:11 AM]:
>
Hi all,
>
>
I've recently updated an OS 9 Filemaker database to be OS X compliant. In
>
doing so I've upgraded the backup routines to use some Folder Action scripts
>
I have built.
>
>
The current problem is that the scripts begin moving the files before
>
FileMaker has finished saving the backup copy of the file. While the save
>
does finish properly, this screws up the execution order of other items
>
added to the FileMaker backup folder. Is there anyway, preferably free, to
>
have the folder action pause or wait for FileMaker to finish saving the
>
file?
>
>
I have tried one solution that said to use:
>
>
Repeat until app "FileMaker Pro" does not exist
>
End repeat
>
>
This worked but slowed the machine to A DEAD SNAIL CRAWL - simply not
>
acceptable.
That worked?! I can't imagine how, but if you say so... :)
There are various things like 'busy' and so forth to do with files (I don't
know them), but I have a very different folder action script that moves
downloaded items into dated folders.
Obviously, there is a similar need to wait for a file to be in a particular
state before trying to move it by FA. (Actually, in the annoying version of
my script, the Finder doesn't complain, nor does the downloading app, but
the moved file gets moved right back to its original place by someone.)
Here's what I did, which isn't overly sophisticated, but it works.
Make the files from FM into one location (not the folder where the action is
attached), then, when you've finished processing (saving) all of them, have
your script open the folder that has the action attached, move the lot of
them in one fell swoop, then have the action close the FA-attached folder if
you don't want it to remain open.
The Finder and Folder Actions seem to work out the details just fine on
their own.
>
Any help would be tremendous!!!
>
>
Thanks,
>
Denis
There's one way. There are surely others.
--
Gary
_______________________________________________
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.