Re: AS and shell
- Subject: Re: AS and shell
- From: Gnarlodious <email@hidden>
- Date: Thu, 30 Nov 2006 07:57:34 -0700
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mv2w7nkMVJE1szFKQ4dpRNfZDkdgVJph8XCHX681But2SlUHKmB56EFdtTDiROrJvmfsiPsUuNdRfVQ7tLlfvjgJYt7XyMm1HLjCjpUj7Mb0AlzLWsovAkoLz8QP2IoFzX2IVQ3RcrOSZNT1husxHpdVvYsHRfycEMfYFaSu4TE=
Jay Louvion wrote:
I don¹t know how I can integrate
the line breaks there are in this shell in the ³do shell² command.
You have to say something like this:
"echo " & someText & " | sed -e 's|,|\\" & (ASCII character 10) & ¬
"|5" & (ASCII character 10) & ¬
":loop" & (ASCII character 10) & ¬
"s|\\(.*\\),\\(.*\\n\\)|\\1~\\2|;tloop" & (ASCII character 10) & ¬
"s|\\n|~|' "
You send one long multiline string with UNIX lineendings. Very messy.
Hopefully a future upgrade of Applescript will include some sort of
"meta-quote" system for sending shell scripts from Applescript.
-- Gnarlie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
| References: | |
| | >AS and shell (From: Jay Louvion <email@hidden>) |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.