• 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
shell script with stdin from Applescript...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shell script with stdin from Applescript...


  • Subject: shell script with stdin from Applescript...
  • From: David Crowe <email@hidden>
  • Date: Wed, 2 Jul 2003 17:16:28 -0600

I want to run a shell script with input to be created by an applescript, something like:


do shell script "/usr/bin/unixapp <<$
line 1
line 2
line 3
$"


I can get this (the part in quotes, obviously) working fine in Terminal, but I get an "fread error 0" when trying this from AppleScript.

I've tried placing a backslash at the end of the lines, but the Applescript compiler just removes them.


- David Crowe
_______________________________________________
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.

  • Follow-Ups:
    • Re: shell script with stdin from Applescript...
      • From: Michael Terry <email@hidden>
    • Re: shell script with stdin from Applescript...
      • From: "Steven D. Majewski" <email@hidden>
    • Re: shell script with stdin from Applescript...
      • From: Loukas Kalenderidis <email@hidden>
    • Re: shell script with stdin from Applescript...
      • From: John Delacour <email@hidden>
  • Prev by Date: Trouble Copying Files to Netware Volume
  • Next by Date: re: Strange problem with text item delimiters
  • Previous by thread: Trouble Copying Files to Netware Volume
  • Next by thread: Re: shell script with stdin from Applescript...
  • Index(es):
    • Date
    • Thread