I am at the moment attempting to do a small script that pulls some information from my Android telephone to a folder in my Mac, type of an automated backup.
The script is working completely. The .plist file can be okey after I use WatchPaths, and it detects USB exhausting drives. Nevertheless, since Mac OS would not detect an Android Telephone as a Quantity, even with File Switch on.
I’ve then tried with:
<key>LaunchEvents</key>
<dict>
<key>com.apple.iokit.matching</key>
<dict>
<key>com.apple.device-attach</key>
<dict>
<key>IOProviderClass</key>
<string>IOUSBHostDevice</string>
<key>IOMatchLaunchStream</key>
<true/>
<key>IOMatchStream</key>
<true/>
</dict>
</dict>
</dict>
But it surely nonetheless would not work.
As properly with this:
<key>IOServiceMatch</key>
<dict>
<key>Class</key> <string>IOUSBDevice</string>
</dict>
Does not work both.
Any concept why it might be? One thing associated with IOKit? I do not know about the way it works or if I ought to configure one thing else.
