Open password protected dmg

broken image
broken image

If pDongleMounted then do shell script 'hdiutil unmount ' & quoted form of ( '/Volumes/' & pDongleName) If lDongleImage then set pDongleMounted to true Set lDongleImage to (pDongleName is in ( get name of disks)) > Unmount Dongle image (Do this AFTER data is accessed) Set lDongleImagePath to 'USB_Dongle:' & pDongleName & '.dmg'ĭo shell script 'hdiutil attach ' & quoted form of POSIX path of lDongleImagePath > Mount Dongle image (How do I do this when the. Set lReply to my sMountDongle(pDongleName) If lParseUSBPorts contains '0x1607' and lParseUSBPorts contains '0x0951' and lParseUSBPorts contains '001000000000000000000279' then Set lParseUSBPorts to (do shell script 'system_profiler SPUSBDataType') as text Property pDongleName : 'Test' - The name of the. Property pDongleMounted : false - Default value