• 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: AppleScript-Users Digest, Vol 5, Issue 123
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 5, Issue 123


  • Subject: Re: AppleScript-Users Digest, Vol 5, Issue 123
  • From: Philip Aker <email@hidden>
  • Date: Thu, 21 Feb 2008 13:43:48 -0800

On 2008-02-21, at 12:11:07, Dolores Trujillo wrote:

From: "John C. Welch" <email@hidden>

I need to write a script to run on an xserve, Tiger, to send an email,
say to the sysadmin if the inventory of any of the internal hard
drives have been removed or changed. Can someone help, I am just
beginning to learn scripting. I've been looking for one that exists
already but haven't found one yet.

You really, really need to be more specific about "inventory of the internal
drives" here. Do you mean raw size, new files, what?

I need to know if the drives have removed (unmounted and pulled out, possibly replaced) so I guess with that said I need to know if the disk is not mounting or if the disk changes. So since each internal hard drive has its own serial number, I need to know if that changes, whether it was removed or differs. Probably new files as well.

Maybe the 'diskutil list' and 'diskutil info /Volumes/xxx' commands can be of some help. I don't know if there's any alternates available -- if there were, I'd use them because diskutil is kind of slow.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: AppleScript-Users Digest, Vol 5, Issue 123 (From: Dolores Trujillo <email@hidden>)

  • Prev by Date: write file to /Library/Preferences
  • Next by Date: Re: write file to /Library/Preferences
  • Previous by thread: Re: AppleScript-Users Digest, Vol 5, Issue 123
  • Next by thread: Re: AppleScript-Users Digest, Vol 5, Issue 123
  • Index(es):
    • Date
    • Thread