I have a mobile application that should transfer files to a database. However, one of the specifications for this is that if the user does not have a configured wireless network, it must be connected to the Mac and transfer the file to the database. However, the problem I am facing is how to output the specified files from the iPad and to the computer via USB.
I spent the last week studying various solutions, mainly IOKit and applescript, but both of them seem to be unable to find the iOS device when it is connected using a USB cable. Although I know that I could jailbreak the device and then it should be simple, this is not an option.
It was difficult for me to find information on this issue, which makes me worry that this is hopeless.
However, I know that there must be a way to do this without jailbreaking, because this is a great application. I was able to access the files that I need for this application, so I know that this is possible. This, however, is not an ideal solution, since I really have no way to use third-party software for my application. I suspect the application uses applescript to do this, as there is an appleScriptServer executable in the installation directory that looks like it can handle it.
I need to understand how they access files and implement a similar scheme for my (much simpler) needs.
Does anyone know how to do this? If this is possible in IOKit or through applescript, I would like some resources to help me understand how to find and access the iPad correctly when connected to a USB port on a Mac. The closest I came is to use user$ system_profiler SPUSBDataTypefrom this thread , which lets me know:
iPad:
Product ID: 0x12a4
Vendor ID: 0x05ac (Apple Inc.)
Version: 3.10
Serial Number: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Speed: Up to 480 Mb/sec
Manufacturer: Apple Inc.
Location ID: 0x1d110000 / 7
Current Available (mA): 500
Current Required (mA): 500
Extra Operating Current (mA): 1600
but I don’t know that I can use any information that he gives me, except for checking that he is connected via USB.
Thanks so much for any help you can give me.