Re: Need Help with a command to open a DMG file
Re: Need Help with a command to open a DMG file
- Subject: Re: Need Help with a command to open a DMG file
- From: Rob Morton <email@hidden>
- Date: Fri, 21 Feb 2003 08:48:06 -0500
on 2/14/03 2:52 PM, Jeff Ward at email@hidden wrote:
>
Hi
>
I have racking my brain, trying to build a script to open a dmg file.
>
I have tried open, mount, get with the following
>
>
Tell application 3disk copy2
>
???? 3image.dmg2
>
End tell
>
>
I cannot figure out what I should use for ????, I don9t know if I should
>
even be using the tell command.
>
What I am doing is trying to build a bootable cd, that when you boot to it ,
>
you run this script it goes out to a network volume and copies certain files
>
from the 3image.dmg2
>
>
Thanks for any Help......
Well, you have already gotten the answer, but I hate loading applications to
do this. Either way you have to watch the silly things bounce in the dock
for a second. I would suggest something like...
set diskImage to alias <path to disk image>
do shell script ("usr/bin/hdiutil attach " & quoted form of POSIX path of
(diskImage as string))
Where the do shell script is all one line. This works great, is quicker (no
GUI, no other noticeable application). As much as I like the simplicity of
AppleScript, most of my scripts are now calling do shell script much more
frequently.
Rob Morton
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.