MACSCRPT Archives

December 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0 (Apple Message framework v753.1)
Content-Type:
text/plain; charset=US-ASCII; delsp=yes; format=flowed
Date:
Mon, 7 Dec 2009 15:14:30 +0100
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
Andreas Kiel <[log in to unmask]>
In-Reply-To:
Content-Transfer-Encoding:
7bit
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (36 lines)
Works fine here.

Maybe you try :
set srcPathUnix to quoted form of (POSIX path of srcPath)
set dstPathUnix to quoted form of (POSIX path of savePath)

do shell script "hdiutil create -srcfolder " & srcPathUnix & space &  
dstPathUnix & " -format UDZO -ov" user name thisUser password userPW  
with administrator privileges

Andreas

On 07.12.2009, at 10:21, Chuck Pelto wrote:

> I had a script for making DMGs of user folders that worked under  
> Tiger.
>
> I've moved to Snow Leopard and now that script fails at this call:
>
> do shell script "hdiutil create -srcfolder '" & srcPathUnix & "' '"  
> & dstPathUnix & "' -format UDZO -ov" user name thisUser password  
> userPW with administrator privileges
>
> Where the srcPathUnix and dstPathUnix are derived from
>
> set srcPathUnix to (POSIX path of srcPath)
> 		
> set dstPathUnix to (POSIX path of savePath)
>
>
> Has something changed in how to make the "do shell script" call?
>
> Regards,
>
> Chuck

ATOM RSS1 RSS2