• 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: I have a "write to file" dream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I have a "write to file" dream


  • Subject: Re: I have a "write to file" dream
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 04 Mar 2011 06:46:06 -0600

On Mar 04, 2011, at 11:32, Eric Geoffroy wrote:
Thanks Paul, that's spiffy. Much, much nicer than piping out to 'tr \r \n
______________________________________________________________________

Hey Eric,

If you install the Satimage.osax you can also do things like:

set aList to {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"}

set someText to join aList using linefeed

set newText to splittext someText using linefeed

set sentenceText to change linefeed into " " in someText

set funkyText to change {"f", "t"} into {"F", "T"} in sentenceText

set resultAnything to change "\\b([[:alpha:]])" into "\\u\\1" in aList ¬
case sensitive false ¬
with regexp

Without the speed penalty of using the shell.

--
Best Regards,
Chris
 _______________________________________________
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

References: 
 >Re: I have a "write to file" dream (From: Eric Geoffroy <email@hidden>)

  • Prev by Date: Re: I have a "write to file" dream
  • Next by Date: Re: Rant Generator
  • Previous by thread: Re: I have a "write to file" dream
  • Next by thread: Mail.app Rule to copy subject and body to a new message?
  • Index(es):
    • Date
    • Thread