How to find out the computer name

is their a way in applescript to find and display the Computer Name in the fileshaing control panel? if their is a way can you show me how to find it.

The computer’s name is the startup disk, so use something simple like this:

tell application "Finder"
	display dialog startup disk
end tell

all you have to do is :


tell app "finder"
display dialog (computer name)
end tell

It was so easy after playing with it i figured it out. I’m still learning Applescript

Thanks for your Help :slight_smile: