Jul Posted January 25, 2006 Posted January 25, 2006 Does anybody know how to write an apple script that would check if particular FileMaker file is open at the moment? Thank you !!!
Genx Posted January 26, 2006 Posted January 26, 2006 why?... if you try and run it while its already running all that happens is its brought to front...
Jul Posted January 26, 2006 Author Posted January 26, 2006 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!!
Stickybeak Posted November 23, 2010 Posted November 23, 2010 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
Søren Dyhr Posted November 23, 2010 Posted November 23, 2010 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
Stickybeak Posted December 7, 2010 Posted December 7, 2010 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
Matthew F Posted December 7, 2010 Posted December 7, 2010 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'.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now