Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Keeping files open?

Featured Replies

  • Newbies

I have two Macs networked. How can I prevent people from closing windows on the host machine. I try to have them always hide but they close out of habit.

I also need a script that will open all the files I need then hide them all. I created a script that open, hide, open, hide but it doesn't work. It only opens all the files.

And lastly. . .

How can I have the guest machine automatically open a file from the host?

...steven

  • Newbies

>>>I have two Macs networked. How can I prevent people from closing windows on the host machine. I try to have them always hide but they close out of habit.<<<

1. Create a script called re-open

2. Clear All and choose Perform Applescript

2. Put the following into the script box (in this case the database is on the desktop):

tell application "Finder"

activate

select file "Name of Database"

open selection

end tell

3. Use Script Editor if you have your database somewhere else so Applescript can find it.

4. Make this script the close script in the document prefs.

5. The database will reopen if it is closed. The only problem it that to quit FMP you have to press cmd-Q twice. There is probably a way around this, but I have not yet discovered it. Also you cannot close your database without quitting FMP

And lastly. . .

How can I have the guest machine automatically open a

  • Author
  • Newbies

The applescript sounds like it will work but I found a better solution to open guest files on the host machine.

You see I didn't want people having to open FMPro, Open Hosts and find what they need.

I just created an initial db that opens the host file and closes the initial db.

Simple solution.

I'll work with the applescript.

Thanks.

The best answer is not to let people work on the host machine! There are soooo many ways people can shut down the database on the host machine (crashes, hard reset, pull the power plug). The ONLY good solution is to make the host a server and lock it away.

I know, I know, you probably don't want to do this. A lot of my clients don't, until after the first major disaster. wink.gif

-bd

  • Author
  • Newbies

I came up with an elegant solution to keep files open.

I use a menu db that is used as the hub for all other dbs acting as the, well, the menu.

In each file I need opened I have a script named open and hide. It simply opens the file and hides it. I have another script named menu which hides the opened file and triggers the open all files script below from the menu db.

Since I want my host computer to keep certain files open at all times I created a script in the menu db that. . .

Script named "Open all files"

If Status (CurrentUserName)="host computer name"

Perform script open and hide for file

Perform script open and hide for file

Perform script open and hide for file

Perform script open and hide for file

Perform script open and hide for file

End if

Open "Menu"

Now everytime a person ends a task and selects a menu button the above script is ran. If it's the host computer, it opens and hides each file. If it's a guest nothing happens except that the menu db is shown.

...steven

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.