• 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
Using 'echo' from 'do shell script'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using 'echo' from 'do shell script'


  • Subject: Using 'echo' from 'do shell script'
  • From: Philip Aker <email@hidden>
  • Date: Sat, 18 May 2002 02:38:50 -0700

OS X 10.1.4, AppleScript version 1.8.2 reported.

set joe to "joe" & return & "joe" & return
do shell script "echo " & joe & " >~/Desktop/joe.txt"


I'm ending up with a linefeed character at the end of the output file (as opened in BBEdit Lite) unless I use the '-n' arg to 'echo'. Is there something wrong with the way I'm formating the input to 'do shell script'?



Philip Aker
http://www.aker.ca
_______________________________________________
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: Using 'echo' from 'do shell script'
      • From: Matthew Stuckwisch <email@hidden>
References: 
 >Re: osascript - path to me (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Need help writing some AppleScripts!!! Please help!
  • Next by Date: Checking an admin password on os x
  • Previous by thread: Re: osascript - path to me
  • Next by thread: Re: Using 'echo' from 'do shell script'
  • Index(es):
    • Date
    • Thread