Re: Applescript to get the User Name
Re: Applescript to get the User Name
- Subject: Re: Applescript to get the User Name
- From: Peter Forsyth <email@hidden>
- Date: Mon, 22 Oct 2001 22:57:07 -0700
Oops - I realized you're probably wanting to run this over a network, to get
info on remote machines. Which means you have to *launch* file sharing
before you can query it. So here's my modified sample code; note the first
tell block.
- pete -
--------
tell application "Finder" of machine "remotemac"
open application file id "shcp"
end tell
tell application "File Sharing" of machine "remotemac"
get computer name
get owner name
end tell
--------
>
From: email@hidden
>
Reply-To: email@hidden
>
Date: Mon, 22 Oct 2001 22:04:15 -0700 (PDT)
>
To: email@hidden
>
Subject: applescript-users digest, Vol 2 #1226 - 10 msgs
>
>
> Can anyone give me a snippet of Applescript that will get the user name or
>
> the computer name (as in Filesharing control panel)?
>
>
Using Jon's Commands, this might get it (I don't have users, and File
>
Sharing is disabled, so I'm not sure if this is what you need or not):