Execute an application on Mac OS X when a particular type of USB device is connected?

前端 未结 5 2255
感动是毒
感动是毒 2020-12-14 03:32

I need to implement a Mac OS X application. In my application I need to do two things:

  1. Execute / Open an application when a particular type of USB device is c
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 04:06

    Depending on the type of device you might able to set an application to open automatically via the iPhoto/Image Capture preferences. That will work only for a limited class of devices, for an application already present on the computer and will require changing the preferences on the computer manually.

    In general, there's no way to automatically run arbitrary applications on CD/DVD/USB insert because it's a security problem.

提交回复
热议问题