• 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: Notification of Device Addition/Removal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification of Device Addition/Removal


  • Subject: Re: Notification of Device Addition/Removal
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 14 Nov 2001 16:16:05 -0500

on 11/14/01 3:24 PM, Paul Berkowitz at email@hidden wrote:

> On 11/13/01 6:12 PM, "Reg Cheramy" <email@hidden> wrote:
>
>> I'd like an applescript that can notify and take action when a new device
>> has been added to my computer.
>>
>> Is there a way to know the following:
>>
>> a) DVD Inserted
>> b) Audio CD Inserted
>> c) Video CD Inserted
>> d) USB Device Inserted
>> - Camera
>> - USB->Serial Interface
>> - USB Speakers
>> - Printer
>> - Etc
>> e) Firewire Device Inserted
>> - Digital Video Camera
>> - New Hard Drive (by polling the disks of Finder... yes)
>> - iPod
>> - Etc
>>
>> Thanks!
>>
> I'm not sure what the current scripting efficacy of Apple System Profiler is
> (once upon a time it gave only limited reports in AS), but give it a try.
> I'll try out out soon in OS 10.1 myself: which OS are you using? (The
> 'limited' reports were in 8.6, maybe it's improved in OS 9.1.)

There are a few storage devices that actually send an Apple event when a
disk is inserted or removed. I believe you can write a stay-open AppleScript
to monitor those signals. Sorry, but I don't recall the manufacturer(s). I
know I put references to one or two of them somewhere on my web site.
Judicious use of my search engine might turn them up.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont


References: 
 >Re: Notification of Device Addition/Removal (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: ":" in OS X?
  • Next by Date: Idle handling questions
  • Previous by thread: Re: Notification of Device Addition/Removal
  • Next by thread: Re: Notification of Device Addition/Removal
  • Index(es):
    • Date
    • Thread