• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multi-line do shell script. How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Multi-line do shell script. How? (From: Simon Forster <email@hidden>)

  • Prev by Date: Re: Multi-line do shell script. How?
  • Next by Date: AppleScript mystery
  • Previous by thread: Re: Multi-line do shell script. How?
  • Next by thread: Re: Multi-line do shell script. How?
  • Index(es):
    • Date
    • Thread