January 16, 200124 yr 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
January 16, 200124 yr 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.
January 17, 200124 yr 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
January 17, 200124 yr 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