• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting Computer Name of Sharing Pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Computer Name of Sharing Pane


  • Subject: Re: Getting Computer Name of Sharing Pane
  • From: Jeffrey Berman <email@hidden>
  • Date: Thu, 15 May 2003 11:31:41 -0500

On 5/9/03 1:03 PM, Jeffrey Berman <email@hidden> wrote:

> With OS X, is there a simple way to have a script get the computer name
> listed in the Sharing pane of System Preferences?
>
> I found I can get the name with the following:
>
> do shell script "awk '/ComputerName/ " &
> "{{{getline} print substr($0,12,length($0)-20)} exit}'" &
> " /private/var/db/SystemConfiguration/preferences.xml"
>
> but surely there must be a more straightforward solution.


There's been no response to this one. Is a 'do shell script' command the
only way to have a script get the computer name in the Sharing preference?

-Jeffrey Berman
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Getting Computer Name of Sharing Pane (From: Jeffrey Berman <email@hidden>)

  • Prev by Date: Re: Script to change file name
  • Next by Date: Re: Excel and empty cells
  • Previous by thread: Getting Computer Name of Sharing Pane
  • Next by thread: triggering an AppleScript
  • Index(es):
    • Date
    • Thread