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.

Current Machine Name -- and a second question...

Featured Replies

Does anyone know how to use AppleScript to get the Name of the Current Machine, and then copy it to the clipboard? I then want to run a FileMaker DoScript to paste it into a field. Is there a

better way to do this?

My second question is: is there a way to make sure that a an exported FMP

tab-delimited text file is always saved into the user's startup disc preferences folder?

Best Regards,

Jeffrey Ellis

FMP has functions that might help...

Status[CurrentHostName]

Status[CurrentNetworkChoice]

Status[CurrentPlatform]

Status[CurrentUserName]

... depending upon what you mean by "name of the current machine" which can be tricky if the database is run in a multi-user environment. (Hence the term "host" and "user" in the functions above.)

BTW the "username" is the whatever is typed into the operating system's "owner" or registration information.

  • Author

Actually, I was looking for the Computer Name as listed in the File Sharing Control Panel. Hence, the use of Apple Script because FMP has no Status Function to find the Computer Name -- which is the only part of File Sharing which *must* be different on each computer on a network.

Thanks!

Jeffrey

Actually, Status( CurrentHostName ) should work. I just set a text calc field to Status( CurrentHostName ) and it successfully showed the FileSharing name of my computer.

Chuck

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.