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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Who Viewed the Topic

    1 member has viewed this topic:
    cfmartinez1090 
×
×
  • Create New...

Important Information

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