• 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
Weird reply in Tiger vs. Leopard....is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird reply in Tiger vs. Leopard....is this a bug?


  • Subject: Weird reply in Tiger vs. Leopard....is this a bug?
  • From: Jim Skibbie <email@hidden>
  • Date: Mon, 14 Jan 2008 18:58:50 -0600
  • Thread-topic: Weird reply in Tiger vs. Leopard....is this a bug?

Title: Weird reply in Tiger vs. Leopard....is this a bug?
I have a script that works in Tiger, but not in Leopard.

If you run a chunk of the script that looks like this...

set
x to do shell script "echo 'All Natural\\nIce Cream\\nVanilla\\nChocolate Chip Cookie Dough\\n' | ruby -p -e '$_.strip!'"

display dialog x

In Mac OS X 10.4.11 in the Terminal, Script Debugger and Script Editor, the reply is:

All Natural\nIce Cream\nVanilla\nChocolate Chip Cookie Dough\n

In Mac OS X 10.5.1, the reply in Script Debugger and Terminal is the same:

All Natural\nIce Cream\nVanilla\nChocolate Chip Cookie Dough\n

However, in Script Editor and if run from the Contextual menus (where this script runs), the reply is:

All NaturalIce CreamVanillaChocolate Chip Cookie Dough

Which turns into an unexpected result that causes further issues down the line.

Any thoughts?

Thanks.
Jim
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Weird reply in Tiger vs. Leopard....is this a bug?
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Using script bundles
  • Next by Date: Re: Weird reply in Tiger vs. Leopard....is this a bug?
  • Previous by thread: RE: AS Library and dictionary
  • Next by thread: Re: Weird reply in Tiger vs. Leopard....is this a bug?
  • Index(es):
    • Date
    • Thread