• 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: strange behaviour in search for \n
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: strange behaviour in search for \n
      • From: Simon Forster <email@hidden>
References: 
 >strange behaviour in search for \n (From: Charles Arthur <email@hidden>)

  • Prev by Date: Re: strange behaviour in search for \n
  • Next by Date: Re: strange behaviour in search for \n
  • Previous by thread: Re: strange behaviour in search for \n
  • Next by thread: Re: strange behaviour in search for \n
  • Index(es):
    • Date
    • Thread