On 01.12.2011, at 22:56, Steve Thomas wrote:
> How can I call execute a shell script (ie: python script) from within Etoys.
>
> I am using the image export tools, and have a python script to upload the images from the book to Picasa and create a Google Doc, for comments and review.
>
> Quick piece of code would be great.
You can't, easily. That's the point of the Etoys security sandbox. Otherwise, any project you download could execute any command on your machine, including wiping your disk, or uploading your data to some random web server.
You would be much better off asking this over on the Squeak list ... Squeak normally ships with the OSProcess plugin, but not Etoys. You could install it (UnixOSProcessPlugin.bundle from a Mac 4.2.x VM should be compatible with the Mac Etoys VM), and also install the OSProcess package. That lets you call external programs:
http://www.squeaksource.com/OSProcess.html- Bert -
_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev