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

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


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

Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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

This topic is 8709 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.