开发者

How to unmount an image in mac using actionscript?

开发者 https://www.devze.com 2023-01-24 12:43 出处:网络
I am developing an AIR application in Flex. This deals with mounting images using .dmg files. After finishing the work with it, the program has to unmount it.

I am developing an AIR application in Flex. This deals with mounting images using .dmg files. After finishing the work with it, the program has to unmount it.

I am able to mount the .dmg using the DiskImageMounter utility by passing the path to dmg file as argument. I would like t开发者_JAVA技巧o know how do I unmount the image programatically. Please help..

Thanks!!


in Terminal, you can unmount a .dmg with this command:

> diskutil unmount /Volumes/DMG_NAME

so pass "unmount /Volumes/DMG_NAME" as an argument to diskutil using native process.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号