MACSCRPT Archives

December 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Subject:
From:
Andreas Kiel <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 7 Dec 2009 15:14:30 +0100
Content-Type:
text/plain
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