Re: Another FileMaker Applescript Question....
Re: Another FileMaker Applescript Question....
- Subject: Re: Another FileMaker Applescript Question....
- From: Bruce Robertson <email@hidden>
- Date: Wed, 05 Sep 2007 12:16:47 -0700
> Hi,
>
> I'm trying to write a script that will restore some databases in
> filemaker (I have about 500 to do in order to upgrade to FM9). I have a
> very simple one line script in FM that runs the restore command, and an
> Applescript that calls it. Unfort I can't for the life of me figure a
> way to interact with the two menus the Restore command bring up. The
> first menu asks for a db to restore; the next one ask for a place to
> save the restored copy. Can anyone suggest away to fill these menus
> with AppleScript?
>
> Thanks!
> tom
First of all there is no such command as Restore.
Secondly - perhaps you mean the Recover command?
Why would you want to do this?
You risk damaging all your databases. The Recover command is a last-resort
command and is not necessary for conversion to FileMaker 9.
What IS suggest when converting to FileMaker 9 is to use the save a copy
compacted command.
If your files are in FileMaker 8.5 then you can use a script like the
following to save the files in compacted format into a folder "Compacted"
Save Me Compacted
Set Error Capture [ On ]
Set Variable [ $path; Value:Get(FilePath) ]
Set Variable [ $path; Value:Substitute( $path; Get(FileName); "Compacted/" &
Get(FileName)) ]
Save a Copy as [ "$path" ] [ compacted copy (smaller) ]
Set Variable [ $result; Value:Get(FileName) & " error code: " &
Get(LastError) ]
Exit Script [ Result: $result ]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden