• 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: Adding to a text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding to a text file


  • Subject: Re: Adding to a text file
  • From: Gnarlodious <email@hidden>
  • Date: Wed, 16 Mar 2005 15:54:20 -0700

This works here:

do shell script "du -ch /Volumes/francois.houle | col -b |  sed
's/\\/.*\\/.*\\///' > ~/Desktop/Exchange.txt"

Shell escapes need double escaped backslashes when used inside Applescript.

Also, your command string was closed with a doublequote instead of a
singlequote.

-- Gnarlie


Entity francois.houle uttered this profundity:

> Ive found a way to do it in a shell script but it created another issue...
> AS doesn't take the command as it contains indentifiers used by AS as well
> do shell script "du -ch /Volumes/francois.houle | col -b |  sed
> 's/\/.*\/.*\///" > ~/Desktop/Exchange.txt"
> That's the command... Obviously it finds identifiers as wont accept to
> compile it... Anyone know how to make sure that AS takes it straight up ?
> On 3/16/05 2:51 PM, "Michelle Steiner" <email@hidden> wrote:
>> On Mar 16, 2005, at 12:14 PM, Francois Houle wrote:
>>
>>> Thank you for your answer Michelle...
>>> However what you wrote made only some limited sense to me...
>>> Could you give me maybe a scripting dictionnary reference to look into
>>> to do waht your proposing ? Just that I've never dealt with playing
>>> with
>>> text with AS before.
>>
>> Check the File Read/Write suite in Standard Additions.
>>
>> -- M

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Adding to a text file (From: "francois.houle" <email@hidden>)

  • Prev by Date: Re: [gcmac] printing extra blank page
  • Next by Date: Re: Parsing text from a string
  • Previous by thread: Re: Adding to a text file
  • Next by thread: list to a text representation of that list (followup)
  • Index(es):
    • Date
    • Thread