Re: Multi-line do shell script. How?
Re: Multi-line do shell script. How?
- Subject: Re: Multi-line do shell script. How?
- From: "Don Goyette" <email@hidden>
- Date: Wed, 21 Apr 2004 08:06:57 -0400 (EDT)
Simon Forster wrote:
>
how can I do the equivalent of:
>
>
python
>
>>> import sys
>
>>> sys.path
>
>
from within do shell script?
You can use python's -c option to specify python commands from the command
line:
do shell script "python -c 'import sys; print sys.path'"
--
Don
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.