• 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: Creating a shell script with AppleScript, and line endings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a shell script with AppleScript, and line endings


  • Subject: Re: Creating a shell script with AppleScript, and line endings
  • From: "Steven D. Majewski" <email@hidden>
  • Date: Mon, 14 Jul 2003 14:56:58 -0400

On Monday, July 14, 2003, at 12:26 PM, Charles Heizer wrote:

Hello,
I'm creating a small shell script on the fly with AppleScript, but when I do a more on my shell script it all runs together. It looks like the line endings are not UNIX but Mac. Is there a easy way to specify a UNIX Line Feed?


I have at the top of some of my scripts:

property eol : "
" -- use unix line endings

That was actually entered into the script editor as: "\n" -- use unix line endings
but script editor syntax check changes it to the above.

In writing out the unix commands I write out: cmd & "# " & comment & eol
with a write AS statement: write cmd & "# " & comment & eol to cmdfile


-- Steve Majewski
_______________________________________________
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: Creating a shell script with AppleScript, and line endings
      • From: Joshua See <email@hidden>
References: 
 >Creating a shell script with AppleScript, and line endings (From: Charles Heizer <email@hidden>)

  • Prev by Date: Re: Creating a shell script with AppleScript, and line endings
  • Next by Date: getting multiple selected messages in Eudora?
  • Previous by thread: Re: Creating a shell script with AppleScript, and line endings
  • Next by thread: Re: Creating a shell script with AppleScript, and line endings
  • Index(es):
    • Date
    • Thread