FW: Q: echo | sed ; can't replace range of lines
FW: Q: echo | sed ; can't replace range of lines
- Subject: FW: Q: echo | sed ; can't replace range of lines
- From: Gnarlodious <email@hidden>
- Date: Tue, 18 May 2004 13:25:03 -0600
------ Forwarded Message
From: Mark Alldritt <email@hidden>
Date: Tue, 18 May 2004 12:22:16 -0700
To: Gnarlodious <email@hidden>
Subject: Re: Q: echo | sed ; can't replace range of lines
>
Evidently " quoted form of " in Script Editor and Smile convert the \r
>
characters to \n but Script Debugger does not. I'd like to report it as a
>
bug.
Quoted form is an AppleScript thing -- SD does not implement it. The issue
of which line endings are "right" is complicated. Those wanting to interact
with Unix want LF, but those interacting with Quark and InDesign want CR.
AppleScript its self favors CR (which is what AppleScript's built-in return
property contains). String literals contain whatever line endings the
editor supplies (SD uses CR). However, you can introduced mixed line
endings as well which makes things even worse:
set x to "a\nb\rc"
When you compile this, AppleScript does not preserve the escaped characters.
I have a series of bug reports in this area and I'll try and find a workable
solution for a future version of Script Debugger.
Cheers
-Mark
---------------------------------------------------------------------
Mark Alldritt Late Night Software Ltd.
Phone: 250-380-1725 333 Moss Street
FAX: 250-383-3204 Victoria, B.C.
WEB:
http://www.latenightsw.com/ CANADA V8V-4M9
AIM: markalldritt
------ End of Forwarded Message
_______________________________________________
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.