About scripting...

Lic. Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Sun Aug 14 20:08:17 UTC 2005


stephane ducasse puso en su mail :

>> 
>> Yes, but from the limited time I spent looking into it, it not so
>> easy to execute  a program from squeak though. I got as far as
>> loading the OSProcessPlugin before talk of using VMMaker got me
>> thoroughly confused. Is there a simple guide on how to execute a
>> shell command from Squeak that does not require me to compile a VM?
Yes, on OS X using AppleScript.
You can have this on AppleScript

AppleScript  >>terminal
    "Applescript terminal"

    self doIt: '

tell application "Terminal"
    
     do script  "cd ~/Public/SqueakDevelop
    grep -l ''Morph'' *.st "


end tell'

And any other what you wish.


Edgar



	

	
		
___________________________________________________________ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar 




More information about the Squeak-dev mailing list