• 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: Machine ID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Machine ID


  • Subject: Re: Machine ID
  • From: Axel Luttgens <email@hidden>
  • Date: Tue, 29 Apr 2003 20:31:45 +0200

Robert Poland wrote:

Hi,

Couldn't stay unsubscribed, so I'm back.


Hello :-)



I have a script that I use on multiple machines. I would like to individualize the script on a machine basis. And not have to create a different script for each machine.

Is there a command (or series of commands) that will identify different machines?, NOT different OSes.

TIA,


Assuming:

1. every machine targeted by your script has an ethernet card,
2. none of those computers uses some tricks for changing its MAC address,
3. those computers are running under OS 10

something like this one-liner could perhaps meet your requirements:

(words 2 thru -1 of (do shell script "ifconfig en0 | grep 'ether'")) as string


HTH,
Axel
_______________________________________________
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: 
 >Machine ID (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Language at a Glance
  • Next by Date: Re: Script in Script Editor MUCH faster than compiled app -- why?
  • Previous by thread: Machine ID
  • Next by thread: RE: Machine ID
  • Index(es):
    • Date
    • Thread