[Pythonmac-SIG] MacPython 2.3a2 on OSX 10.1

Paul Berkowitz berkowit@silcom.com
Fri, 28 Feb 2003 08:52:50 -0800


On 2/28/03 7:48 AM, "Kevin Ollivier" <kevino@tulane.edu> wrote:

>> I've tried a couple of #! scripts in .app bundles on 10.1, but they
>> invariably give me an "Error -2857" on the console.
>> So I guess this means that having a script as the main program in a
>> .app bundle doesn't work under 10.1:-(
> 
> Just a thought that crossed my mind - would an Applescript work? =) (I
> thought Applescript for 10.1 supported sending commands to the shell.)

Yes, it does. 'do shell script "whatever"'.

I can't recall if 'quoted form of POSIX path' came in with OS 10.2 (AS 1.9)
or earlier. I think it was AS 1.8.3, which is a free update to OS 10.1.5,
but will work with all versions of 10.1.x. Maybe even AS 1.8.1, which
shipped with OS 10.1.2. OS 10.1.0 shipped with AS 1.7, which is not a good
version of AS, although I think it had 'do shell script' already. Best would
be to require AS 1.8.3 and do all testing in OS 10.1 with that, but you
could even go back to 10.1.0 and just not use 'quoted form' but always
include all the "\"" or ' quotes yourself.

-- 
Paul Berkowitz