Re: Notification of Device Addition/Removal
Re: Notification of Device Addition/Removal
- Subject: Re: Notification of Device Addition/Removal
- From: Reg Cheramy - mBase <email@hidden>
- Date: Thu, 15 Nov 2001 10:35:02 -0700
I'm running 9.2.1 ( but the lowest I'd need to go is 9.1).
Checking the Sys Profiler Dictionary reveals no dictionary commands. It
appears I can create a devices and volumes report, save it as text and parse
that... but that seems a bit much... particularly for polling every 5
seconds or so on idle.
Any other ideas out there?
>
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.)
>
> 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!