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: Andrew Oliver <email@hidden>
- Date: Fri, 14 Feb 2003 12:48:42 -0800
This works for me:
tell application "Disk Copy"
open (alias "Macintosh HD:path:to:some.dmg")
end tell
Alternatively, use the Finder:
tell application "Finder"
open (alias "Macintosh HD:path:to:some.dmg")
end tell
Which results in the same thing.
Having said that, there is way too much confusion between different
representations of what, to humans, are the same thing. 'file' and 'alias'
are not consistently interchangable.
For example, you can:
tell application "Finder" to open file "path:to:some.dmg"
But you can not:
tell application "Disk Copy" to open file "path:to:some.dmg"
Disk Copy only seems to work with aliases.
To compound the issue further, 'choose file' returns an alias, not a file as
its name might suggest... <sigh>
Andrew
:)
On 2/14/03 11:52 AM, "Jeff Ward" <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......
>
>
>
>
Help Desk
>
A-11 Bailey Library
>
(basement of the Library)
>
Slippery Rock University
>
>
Help Desk Hours of Operation:
>
Monday through Friday
>
8:00 am to 4:30 pm
>
(724)738-4357 - (HELP)
>
<email@hidden>
>
>
>
Jeffrey L. Ward
>
Apple Administrator/AASP/IT Tech
>
(724)738-4788
>
email@hidden
>
_______________________________________________
>
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.
_______________________________________________
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.