PDA

View Full Version : Launching & connecting to USB aircard when plugged in.




CBarkAZ
Mar 12, 2009, 10:05 PM
Hello All,

I've been searching for a solution to my question for a while. I've found hints and explanations, but I cannot find an example and I'm very new to applescript. So, here goes:

I have a Sierra 597U USB aircard that also contains an 8GB microSD card. I had an issue that whenever I wanted to remove the card, I had to unmount the volume for the MicroSD card also. I've managed to create a small script that I can run that will unmount the volume and quit Sprint's SmartView application. That was easy. Now for the stumper...I'd like to write a script and use folder actions that would run the SmartView application whenever the aircard is plugged into the USB port. Also, if possible, I'd like to emulate pressing the "Connect" button within the application.

Can someone please point me in the right direction? The name of the 8GB volume is "AIRCARD STO" and the app name is "Sprint SmartView".

Thanks in advance,
Charles