Jump to content
Sign in to follow this  
rlinsurf

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

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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