Weird reply in Tiger vs. Leopard....is this a bug?
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