dbTalk Databases Forums  

Is there a way to check if a file is missing in a script?

comp.databases.filemaker comp.databases.filemaker


Discuss Is there a way to check if a file is missing in a script? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
audleman@quasika.net
 
Posts: n/a

Default Is there a way to check if a file is missing in a script? - 08-10-2005 , 04:32 PM






I have two Filemaker 7 files A and B running on separate machines. A
connects to B once a day and copies over some of the data. A needs to
check to see if B is available before doing this, as the machine
hosting B is sometimes down.

Is there a way to check for this in a script?

Thanks,
Kevin


Reply With Quote
  #2  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: Is there a way to check if a file is missing in a script? - 08-10-2005 , 05:31 PM






Say you make a relationship between A and B based on constant = 1 both
sides. Now when you call by script the fileB, just ask 'if (
isempty(relationshipwith B:: constant)'. If Yes, B is not accessible, if
No, B is there OK.
Remi-Noel

<audleman (AT) quasika (DOT) net> a écrit dans le message de news:
1123709527.159738.114010 (AT) g14g20...oglegroups.com...
Quote:
I have two Filemaker 7 files A and B running on separate machines. A
connects to B once a day and copies over some of the data. A needs to
check to see if B is available before doing this, as the machine
hosting B is sometimes down.

Is there a way to check for this in a script?

Thanks,
Kevin




Reply With Quote
  #3  
Old   
Lynn allen
 
Posts: n/a

Default Re: Is there a way to check if a file is missing in a script? - 08-10-2005 , 07:33 PM



audleman (AT) quasika (DOT) net <audleman (AT) quasika (DOT) net> wrote:

Quote:
I have two Filemaker 7 files A and B running on separate machines. A
connects to B once a day and copies over some of the data. A needs to
check to see if B is available before doing this, as the machine
hosting B is sometimes down.

Is there a way to check for this in a script?
If(Patterncount(Databasenames, "yourfilename.fp7") = 1)

Do your thing here
Else
Otherwise do nothing)

EndIf

Lynn Allen
--
Allen & Allen Semiotics www.semiotics.com
FSA Associate Filemaker Design & Consulting


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.