In article <1hpitig.1x2ba371l4mlrxN%pere.noel@[EMAIL PROTECTED]
>,
pere.noel@[EMAIL PROTECTED]
(Une bévue) wrote:
> Ok i see what you mean, then it isn't a new build phase but rather a new
> target one (i'm following your above writing within XCode).
A new build phase would also work, but I wanted an easy way to choose
between building an install image and not, so I wouldn't have to wait
for it to build when debugging.
> in the window Run Script Phase "Package" Info their is a textfield
> right to the first label "Shell", actually it's writen, by default
> "/bin/sh" i think i could change that to any shell script including ruby
> calling applescript ?
Yes, you can use any program you like to interpret the script.
> yes i know for the background image BUT i've nerver been able to get
> size of opened dmg window +/-= size of background image (on the end user
> side) even if i do something like :
>
> tell the_window
> set the_bounds to bounds of the_window
> set item 3 of the_bounds to (item 1 of the_bounds) + 545
> set item 4 of the_bounds to (item 2 of the_bounds) + 355
> set its bounds to the_bounds
> end tell
>
> 545x355 being the size of the background image + borders thickness.
>
> it seems these bounds aren't save even if i detach re-attach de dmg...
>
> do you have solved that tricky point (at least for me) ?
I've found that if the applescript brings the finder to the front, and
it resizes the window, then ejects the disk, that the window's size is
written to the disk.


|