David Phillip Oster <oster RemoveThis @ieee.org> wrote:
>
> I add a new target called "Package" that depends on the previous target,
> so it only runs when the previous target succeeds. It has only a single
> shell script build phase, that runs a separate text file (so it is easy
> to edit and not part of the .xcodeproj file.)
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).
That's realy nice i've just added a new project > target > shell script
target.
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 ?
It seems to be so easy to do that i want to insure myself
>
> That shell script starts with:
<snip/>
>
> If you rename the disk represented by the .dmg, you'll also need
> to use an applescript to reset the volume's background image,
> since the Finder stores the path to the volume's background image
> using an absolute pathname.
fine thanks very much, i appreciate.
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) ?
anyway thanks for youur reply it helps me a lot !
--
une bévue