<br><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 10:38 AM, Damien Pollet <span dir="ltr"><<a href="mailto:damien.pollet@gmail.com">damien.pollet@gmail.com</a>></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 <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
> I think the answer for the VM application is no because Mac OS X opens<br>
> applications in /.<br>
> So the VM cannot find the image unless given a full pathname and cannot find<br>
> file unless given a full pathname either since the image won't be in the<br>
> same directory as the image file.<br>
<br>
</div>But that'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'd think so, but in my recent experience it isn't reliable. Sometimes relative paths to the image work, sometimes not. 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">> But it is trivial to write a shell script to wrapper the VM that supplies<br>
> the full pathnames, e.g.<br>
> ----8<---squeak---8<---<br>
> #!/bin/sh<br>
> open /Applications/SqueakFoo.app<br>
> /Applications/SqueakFoo.app/Resources/Scripting.image "`pwd`/$1"<br>
> ----8<---squeak---8<---<br>
<br>
</div>Heh, I wasn'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>