Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5099 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Does anybody know how to write an apple script that would check if particular FileMaker file is open at the moment?

Thank you !!!

Posted

why?... if you try and run it while its already running all that happens is its brought to front...

Posted

I need that application running all the time. I have my files on the server and to open them on the client machine I use the "opener" FM db. It actually opens FM file hosted on the client machine and then a file that I need on the server.

I do not want the "opener" file to pop up every minute even though it does not really do anything.

If there is some way to avoid possible closure of FileMaker file on that computer, that would help too, but I do not how to do that. My goal is to have that file open all the time.

Thank you!!

  • 4 years later...
Posted

I have found that it doesn't just bring the already open window to the front it opens another iteration and calls it X -2

Posted

I do not want the "opener" file to pop up every minute even though it does not really do anything.

Why isn't it terminated in the first place?

--sd

  • 2 weeks later...
Posted

I have found that it doesn't just bring the already open window to the front it opens another iteration and calls it X -2

Me too - and its annoying because I wrote my scripts on the basis that it didn't matter if it was already open

Posted

If you're not adverse to using the Terminal then this could easily accomplish this with a crontab. This will run in the background without bothering you:


bash

export EDITOR=pico

crontab -e

1  *  *  *  * open Path/FileName.fp7

2  *  *  *  * open Path/FileName.fp7

3  *  *  *  * open Path/FileName.fp7

4  *  *  *  * open Path/FileName.fp7

.

.

.

59  *  *  *  * open Path/FileName.fp7

0  *  *  *  * open Path/FileName.fp7

The ... should be filled in with every minute of the hour, since this sounds like what you want. the * * * * means that it will run any hour, day, month and day of the week. If you're not sure of the path to the file just copy it in the Finder and paste it into the Terminal. To view the crontab type 'crontab -l' and to remove it type, 'crontab -r'.

This topic is 5099 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.