Re: Creating a shell script with AppleScript, and line endings
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.