Re: .DMG Keeps Getting Bigger After Converting?

2009-01-19 Thread Chunk 1978
i'm really a big fan of DMG Canvas, and i'm surprised the developer is
offering it as donationware, but unfortunately i can't use it... there
seems to be a bug that will automatically set off "internet enabled"
option (even if it's unchecked) when the .DMG is downloaded from my
server, and there's no point in designing a .DMG window, etc., if it's
just going to skip that step and download the files to the user's
downloads folder.

i'm actually curious to know if that's a problem with my server (or
computer) or if everyone else has the same experience with this
software.

On Mon, Jan 19, 2009 at 10:12 AM, Alastair Houghton
 wrote:
> On 17 Jan 2009, at 21:02, Markus Spoettl wrote:
>
>> Totally agreed, scripting the entire process would be wonderful. But: How
>> does one go about scripting a template DMG creation that should open in a
>> certain view mode in Finder (e.g. icon) using a defined icon size and
>> defined icon locations, background image, in a new window with a certain
>> initial window size?
>
> You *can* use AppleScript and shell script to do what you need here.  The
> only problem is that you need to run the script from a window session, which
> may be an issue if you have some kind of build server.
>
> We have a rather substantial chunk of AppleScript that I wrote for exactly
> this purpose, which is called from some shell scripts we use.  Of course, we
> have the additional problem of needing to build bootable CDs, so our set-up
> is rather more complicated than it need be for most people.
>
> If you need more information on this topic, this probably isn't the right
> list.  But you might start by looking at the man pages for "hdiutil" and
> "osascript" and the Finder's Application Dictionary (in Script Editor, or
> better yet, Script Debugger).
>
> Alternatively, as someone else suggested, there are some third-party apps
> that you can use for this exact purpose, which will be much easier if they
> support what you need.
>
> Kind regards,
>
> Alastair.
>
> --
> http://alastairs-place.net
>
>
>
> ___
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/chunk1978%40gmail.com
>
> This email sent to chunk1...@gmail.com
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-19 Thread Alastair Houghton

On 17 Jan 2009, at 21:02, Markus Spoettl wrote:

Totally agreed, scripting the entire process would be wonderful.  
But: How does one go about scripting a template DMG creation that  
should open in a certain view mode in Finder (e.g. icon) using a  
defined icon size and defined icon locations, background image, in a  
new window with a certain initial window size?


You *can* use AppleScript and shell script to do what you need here.   
The only problem is that you need to run the script from a window  
session, which may be an issue if you have some kind of build server.


We have a rather substantial chunk of AppleScript that I wrote for  
exactly this purpose, which is called from some shell scripts we use.   
Of course, we have the additional problem of needing to build bootable  
CDs, so our set-up is rather more complicated than it need be for most  
people.


If you need more information on this topic, this probably isn't the  
right list.  But you might start by looking at the man pages for  
"hdiutil" and "osascript" and the Finder's Application Dictionary (in  
Script Editor, or better yet, Script Debugger).


Alternatively, as someone else suggested, there are some third-party  
apps that you can use for this exact purpose, which will be much  
easier if they support what you need.


Kind regards,

Alastair.

--
http://alastairs-place.net



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-17 Thread Michael Ash
On Sat, Jan 17, 2009 at 4:02 PM, Markus Spoettl
 wrote:
> Totally agreed, scripting the entire process would be wonderful. But: How
> does one go about scripting a template DMG creation that should open in a
> certain view mode in Finder (e.g. icon) using a defined icon size and
> defined icon locations, background image, in a new window with a certain
> initial window size?
>
> There are 3rd party tools out there which do (parts of) that (DMG Canvas is
> one I believe), but I failed to get this to work with system tools -
> probably because I don't know what to use.

I've used FileStorm in the past, and it works decently and can be AppleScripted.

I believe it is possible to do it only with Apple tools. The trick is
to build your dmg by hand once. Then you save off the .DS_Store file
from the dmg, and put it on your new ones when you create it. I recall
that there are some tricks to the process but it's been a very long
time since I've done it.

My personal advice would be to simply give up on dmgs for software
distribution. Zip is quickly becoming the standard distribution format
for software on OS X. While we can probably start a giant thread
arguing about the good and bad of each (and please don't take this as
an invitation to start that thread), it should be clear that zip has
become common and accepted, and it eliminates the whole problem of
building good-looking dmgs.

Mike
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-17 Thread Markus Spoettl

On Jan 16, 2009, at 11:07 PM, Michael Ash wrote:

I highly recommend scripting the entire process. This is the kind of
thing you want to be able to do by typing a single easy command, not
have to slog through the whole process twice just because you forgot
something the first time. (This won't be the only time you forget
something important, I guarantee!) The time you spend scripting it
will pay itself back ten times over in the long run.



Totally agreed, scripting the entire process would be wonderful. But:  
How does one go about scripting a template DMG creation that should  
open in a certain view mode in Finder (e.g. icon) using a defined icon  
size and defined icon locations, background image, in a new window  
with a certain initial window size?


There are 3rd party tools out there which do (parts of) that (DMG  
Canvas is one I believe), but I failed to get this to work with system  
tools - probably because I don't know what to use.


Regards
Markus
--
__
Markus Spoettl



smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Michael Ash
On Fri, Jan 16, 2009 at 2:19 PM, Chunk 1978  wrote:
> i'm manually creating a .DMG using Disk Utility... the process is that
> i create a template . DMG, make it look all pretty and stuff, then
> convert it to it's final . DMG... let's say now that the final . DMG
> is 20.2mb after it's been compressed/converted...
>
> oh, but i forgot to do something to a large file... so i go back to
> the template . DMG, delete the effected file, fix it on my local
> drive, and then send the fixed file to the template .DMG... time to
> convert!  now the .DMG is 20.4mb after it's been
> compressed/converted...
>
> i'm assuming this has something to do with .trashes, but i don't have
> access to that hidden folder on the template so i can't go in and
> REALLY delete the original file that i want deleted...
>
> what can i do?

Your template's free space is filling up with data which is now
unused. The compression phase isn't smart enough to exclude that data,
so the end result gets bigger.

How to avoid it? Just create a new template .dmg every time. Between
creation and conversion the only thing you should do on the .dmg is
copy files to it. The moment you start removing or replacing files,
you start building up garbage.

I highly recommend scripting the entire process. This is the kind of
thing you want to be able to do by typing a single easy command, not
have to slog through the whole process twice just because you forgot
something the first time. (This won't be the only time you forget
something important, I guarantee!) The time you spend scripting it
will pay itself back ten times over in the long run.

Mike
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Chunk 1978
oh... nevermind... sorry, i'm dumb...

i was trying to erase free space on the .DMG and now the mounted volume...

got it now... and thanks for your help :)

On Fri, Jan 16, 2009 at 3:18 PM, Chunk 1978  wrote:
> i though maybe it's because i recreated the .DMG without erasing
> anything to keep it down in size... so then made another one, deleted
> stuff, put new stuff on the .dmg and now i have the erase tab... but
> the "Erase Free Space" is grayed out...
>
> On Fri, Jan 16, 2009 at 3:14 PM, Chunk 1978  wrote:
>> i don't have an erase tab for my .dmgs
>>
>> On Fri, Jan 16, 2009 at 3:08 PM, Nick Zitzmann  wrote:
>>>
>>> On Jan 16, 2009, at 12:54 PM, Chunk 1978 wrote:
>>>
 excuse my ignorance... but how can i do that?
>>>
>>>
>>> /Applications/Utilities/Disk Utility.app -> choose the mounted image ->
>>> click the "Erase" tab -> click the "erase free space" button -> choose to
>>> zero out deleted files. When you do your conversion later, the data left
>>> behind from the deleted files will be gone.
>>>
>>> Nick Zitzmann
>>> 
>>>
>>>
>>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Chunk 1978
i though maybe it's because i recreated the .DMG without erasing
anything to keep it down in size... so then made another one, deleted
stuff, put new stuff on the .dmg and now i have the erase tab... but
the "Erase Free Space" is grayed out...

On Fri, Jan 16, 2009 at 3:14 PM, Chunk 1978  wrote:
> i don't have an erase tab for my .dmgs
>
> On Fri, Jan 16, 2009 at 3:08 PM, Nick Zitzmann  wrote:
>>
>> On Jan 16, 2009, at 12:54 PM, Chunk 1978 wrote:
>>
>>> excuse my ignorance... but how can i do that?
>>
>>
>> /Applications/Utilities/Disk Utility.app -> choose the mounted image ->
>> click the "Erase" tab -> click the "erase free space" button -> choose to
>> zero out deleted files. When you do your conversion later, the data left
>> behind from the deleted files will be gone.
>>
>> Nick Zitzmann
>> 
>>
>>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Nick Zitzmann


On Jan 16, 2009, at 12:54 PM, Chunk 1978 wrote:


excuse my ignorance... but how can i do that?



/Applications/Utilities/Disk Utility.app -> choose the mounted image - 
> click the "Erase" tab -> click the "erase free space" button ->  
choose to zero out deleted files. When you do your conversion later,  
the data left behind from the deleted files will be gone.


Nick Zitzmann


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Chunk 1978
excuse my ignorance... but how can i do that?

On Fri, Jan 16, 2009 at 2:29 PM, Nick Zitzmann  wrote:
>
> On Jan 16, 2009, at 12:19 PM, Chunk 1978 wrote:
>
>> i'm assuming this has something to do with .trashes, but i don't have
>> access to that hidden folder on the template so i can't go in and
>> REALLY delete the original file that i want deleted...
>>
>> what can i do?
>
>
> Use Disk Utility to zero out the erased data on the image prior to
> converting.
>
> Nick Zitzmann
> 
>
>
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: .DMG Keeps Getting Bigger After Converting?

2009-01-16 Thread Nick Zitzmann


On Jan 16, 2009, at 12:19 PM, Chunk 1978 wrote:


i'm assuming this has something to do with .trashes, but i don't have
access to that hidden folder on the template so i can't go in and
REALLY delete the original file that i want deleted...

what can i do?



Use Disk Utility to zero out the erased data on the image prior to  
converting.


Nick Zitzmann


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com