Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS and shell



Title: Re: AS and shell
On 30.11.2006 15:57, "Gnarlodious" <email@hidden> spake thus:

> 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
>

I must say that I was much more tempted by Michelle’s “;” - since very honestly I didn’t get a thing of the above few lines. If you have the time to explain, it would indeed be very enlightening.

Cordialement,

j.

Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva

T+4122 840 3272
F+4122 840 3271

skypeme:
jaylouvion

www.studiocasagrande.com


P Please consider the environment before printing this email.

 _______________________________________________
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: 
 >Re: AS and shell (From: Gnarlodious <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.