<br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 10:38 AM, Damien Pollet <span dir="ltr">&lt;<a href="mailto:damien.pollet@gmail.com">damien.pollet@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On Tue, Oct 28, 2008 at 6:08 PM, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt; I think the answer for the VM application is no because Mac OS X opens<br>
&gt; applications in /.<br>
&gt; So the VM cannot find the image unless given a full pathname and cannot find<br>
&gt; file unless given a full pathname either since the image won&#39;t be in the<br>
&gt; same directory as the image file.<br>
<br>
</div>But that&#39;s only when you run the application from the Finder or using<br>
/usr/bin/open I think.<br>
<br>
If you directly run the binary inside the .app bundle from a shell,<br>
then the unix way applies, no ?</blockquote><div><br></div><div>You&#39;d think so, but in my recent experience it isn&#39;t reliable. &nbsp;Sometimes relative paths to the image work, sometimes not. &nbsp;e.g. ../../foo might be interpreted as ../foo. So I think the only safe assumption is that one needs absolute paths.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">&gt; But it is trivial to write a shell script to wrapper the VM that supplies<br>
&gt; the full pathnames, e.g.<br>
&gt; ----8&lt;---squeak---8&lt;---<br>
&gt; #!/bin/sh<br>
&gt; open /Applications/SqueakFoo.app<br>
&gt; /Applications/SqueakFoo.app/Resources/Scripting.image &quot;`pwd`/$1&quot;<br>
&gt; ----8&lt;---squeak---8&lt;---<br>
<br>
</div>Heh, I wasn&#39;t even aware that open would pass arguments like that.<br>
What Stef and I are doing is<br>
/Applications/Squeak.app/Contents/MacOS/Squeak\ VM\ Opt<br>
$PWD/image.image $PWD/<a href="http://script.st" target="_blank">script.st</a><br>
<font color="#888888"><br>
<br>
--<br>
Damien Pollet<br>
type less, do more [ | ] <a href="http://people.untyped.org/damien.pollet" target="_blank">http://people.untyped.org/damien.pollet</a><br>
<br>
</font></blockquote></div><br>