Awesome! I’m trying to get this working but I think I’m having a problem with providing the path to the Python App.
I keep getting the error: python: can’t open file ‘Macintosh HD/Users/jpatten/gam’:[Errno 2] No Such file or directory. Here’s what I have in my button script: on mouseUp put cd fld 1 into tScript put shell(tScript) into tPython answer tPython end mouseUp and in my field I have the following: python “Macintosh HD”/Users/jpatten/gam gam.py info domain This python command just returns info about the Google Apps domain…. What am I missing? Thank you! On Aug 27, 2014, at 2:18 AM, Thierry Douez <th.do...@gmail.com> wrote: > 2014-08-27 9:27 GMT+02:00 Rolf Kocherhans : > >> Hello John >> >> Yes this is possible, I do this all the time ! > > I do this very often too, with Perl or shells. > > Instead of using the replace, I've choosen the merge road; > find it more flexible and readable when you have to deal with a long list > of commands. > > Even build all the custom properties containing the template commands > automatically from the API documentation of the external tool with the help > of LC + regex. > > HTH, > > Thierry > >> >> The way I use it: >> Create a stack with a field, put the whole python script >> (can have multiple lines) into the field. >> Replace place holders (replace %NAME% with Peter etc.) in the field, >> and then put field into a variable and execute it with the shell command ! >> >>> I would like to be able to call the GAM Python scripts via LiveCode. A >>> typical GAM python terminal command would be something like: >>> >>> python gam.py create user j...@student.email.k12.ca.us firstname John >>> lastname Doe password 111111 change password off >>> >>> Could I call this Python script directly from LiveCode? > > > ------------------------------------------------ > Thierry Douez - http://sunny-tdz.com > Maker of sunnYperl - sunnYmidi - sunnYmage > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode