开发者

How to unmount an image in mac using actionscript?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜