<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Georgia">seems like URL is only one option...<br>
<br>
scriptName isEmpty ifFalse:[<br>
"figure out if script name is a URL by itself"<br>
isUrl := (scriptName asLowercase
beginsWith:'<a class="moz-txt-link-freetext" href="http://">http://</a>') or:[<br>
(scriptName asLowercase
beginsWith:'<a class="moz-txt-link-freetext" href="file://">file://</a>') or:[<br>
(scriptName asLowercase
beginsWith:'<a class="moz-txt-link-freetext" href="ftp://">ftp://</a>')]].<br>
isUrl ifFalse:[ | encodedPath pathTokens |<br>
"Allow for ../dir/scriptName arguments"<br>
pathTokens := scriptName splitBy:
FileDirectory slash.<br>
pathTokens := pathTokens collect: [:s | s
encodeForHTTP].<br>
encodedPath := pathTokens reduce: [:acc :each
| acc , FileDirectory slash , each].<br>
scriptName := (FileDirectory default uri <br>
resolveRelativeURI: encodedPath)
asString]].<br>
]. ]<br>
<br>
did you try a plain old file path?<br>
<br>
</font>
<div class="moz-cite-prefix">On 3/22/13 7:53 AM, Frank Shearar
wrote:<br>
</div>
<blockquote
cite="mid:CAJbhyRFf7g8moUCWJtScjDFX2HRV-cHMg1FR_=S2y520T9booQ@mail.gmail.com"
type="cite">
<pre wrap="">On a Linux machine, you can run a script from the command line thusly:
my/path/to/vm/squeak MyImage.image path/to/my/script.st. On Windows,
the analogous operation fails because (I think) CodeLoader doesn't
know how to handle file URIs like
'<a class="moz-txt-link-freetext" href="file:///C%3A/Users/frank/squeak-ci/target/update-image.st">file:///C%3A/Users/frank/squeak-ci/target/update-image.st</a>'.
Is this a known problem? How else can I run a startup script on
Windows? (Surely I'm not the only person in the world who wants to do
this?)
frank
</pre>
</blockquote>
<br>
</body>
</html>