MACSCRPT Archives

January 2006

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:
Chuck Pelto <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 16 Jan 2006 02:55:09 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (67 lines)
Okay....

...how do I determine the size of the disk image I need to create?

Regards,

Chuck

On Jan 15, 2006, at 8:25 PM, Mark Lively wrote:

> Yes.
>
> Take a look at create option on hdiutil
>
> hdiutil create -s 50m ~/Desktop/test.dmg
>
> -Mark
>
> On Jan 15, 2006, at 9:55 PM, Chuck Pelto wrote:
>
>> Is it possible that one has to CREATE the file MyDiskImage.dmg  
>> before one can ATTACH items such as a user folder to it? That  
>> might explain why I'm getting the "no such file" error message.
>>
>> Regards,
>>
>> Chuck
>>
>> On Jan 15, 2006, at 4:13 PM, John Delacour wrote:
>>
>>> At 3:16 pm -0700 15/1/06, Chuck Pelto wrote:
>>>
>>>> On Jan 13, 2006, at 10:02 AM, Barry Wainwright wrote:
>>>>
>>>>> Do shell script "hdiutil attach '/Users/MyName/Documents/ 
>>>>> MyDiskImage.dmg'-readonly"
>>>>
>>>> This syntax does not seem to work very well.
>>>>
>>>> I've used '/Users/whatgoesformyname/Documents/TestDiskImage.dmg'- 
>>>> readonly and I get error messages about "no such file".
>>>>
>>>> The naming of the path IS correct.
>>>
>>>
>>> Are you _sure_?  It works in every case for me so long as the  
>>> path is right.  Are you sure you're not _both_ escaping spaces  
>>> _and_ enclosing in quotes.  You can do one or the other but not  
>>> both, and since you don't tell us what your correct path is, it's  
>>> impossible to say what's wrong.
>>>
>>>
>>> do shell script¬
>>>    "cd; hdiutil attach -readonly 'Downloads_060101/Eudora  
>>> 6.2.3.dmg'"
>>>
>>> OR
>>>
>>> do shell script ¬
>>>    "cd; hdiutil attach -readonly Downloads_060101/Eudora\\  
>>> 6.2.3.dmg"
>>>
>>> JD
>>>
>>
>

ATOM RSS1 RSS2