Re: Download dmg and then mount the volume ?
Re: Download dmg and then mount the volume ?
- Subject: Re: Download dmg and then mount the volume ?
- From: Andrew Oliver <email@hidden>
- Date: Sun, 30 Jan 2005 13:45:12 -0800
On 1/30/05 1:31 PM, "Graham Anderson" <email@hidden> wrote:
> what is the proper way to download a dmg file and then mount it
> The curl script is working...but the 'mount volume' or 'open file' is
> not
>
> --gives 'Network file permission error"
> mount volume "Fonovisa.dmg"
>
> --gives does not understand message
> open file ((path to desktop as text) & "Fonovisa.dmg")
>
> Alternative:
> Can I mount the dmg from my server [unix] to the user's desktop ?
Haven't tried it, but I expect the script is failing since you're not
telling the system to mount a volume, you're telling it to mount a string.
If for no other reason there's no path the 'mount volume' command has no
idea what or where 'Fonovisa.dmg' is.
At the very least I'd expect you to have to:
mount volume "file://" & posix path of gFonovisaDMG
or maybe just:
tell application "Finder"
open file gFonovisaDMG
end tell
(in both cases, assuming gFonovisaDMG is a Mac-style path)
Andrew
:)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden