[racket-dev] Racket DMG improvements

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Jul 21 14:03:39 EDT 2011

Two hours ago, Stephen De Gabrielle wrote:
> 
> #!/bin/sh
> # used example http://hayne.net/MacDev/Bash/make_alias
> # thanks to authors
> # Cameron Hayne (macdev at hayne.net), December 2003
> # Paul Russell (prussell at sonic.net), May 2006
> 
> /usr/bin/osascript > /dev/null <<EOT
> tell application "Finder"
>    set Src to POSIX file "/Applications" as text
>    set Dest to POSIX file
> "/Users/spdegabrielle/Documents/Development/make alias test" as text
>    make new alias file to Src at folder Dest
> end tell
> EOT

This doesn't work, because it requires the Finder to be running.  (For
the build user.)  I just tried it, and I get:

  124:165: execution error: An error of type -10810 has occurred. (-10810)

And a quick search shows that this is indeed the problem:

  http://stackoverflow.com/questions/5088872

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the dev mailing list.