Re: strange behaviour in search for \n
Re: strange behaviour in search for \n
- Subject: Re: strange behaviour in search for \n
- From: Nigel Smith <email@hidden>
- Date: Thu, 01 Jul 2004 12:38:42 +0100
On 1/7/04 10:52, "Charles Arthur" <email@hidden> wrote:
>
However if (in order not to have a dummy file that I write and read) I
>
include the curl command as part of "do shell script" and put the output
>
straight into a variable in the script, and then search using "</b>\n" and
>
"\n</font>" as the start and end points, it fails. I get an empty list for
>
the output of the search - my subroutine's way of saying "no such thing
>
here".
Probably the result of "do shell script"'s autmatic line ending conversion,
which is on by default.
Try:
set myVar to do shell script "whatever" altering line endings false
...instead.
HTH,
Nigel
_______________________________________________
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.