• 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: Question about list structure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about list structure


  • Subject: Re: Question about list structure
  • From: Kevin Walzer <email@hidden>
  • Date: Thu, 24 Nov 2005 12:27:33 -0500
  • Organization: WordTech Software

Michelle Steiner wrote:
On Nov 24, 2005, at 10:14 AM, Kevin Walzer wrote:

Are there any manipulations I can do to this data (or modifications to my code) to get it converted into the proper list structure?

Read the file without using delimiters to get the original text as written, with the returns.


When you make a string into a list as you did, all you do is make it into a single-item list. You need to use text item delimiters; in this specific case, that is a return.

set theIntermediateOutput to "/Users/kevin/Desktop/amsn received files/avg.xls
/Users/kevin/Desktop/avg.xls"


set text item delimiters to "
"

set theFinalOutput to text items of theIntermediateOutput

set text item delimiters to ""

theFinalOutput

--> {"/Users/kevin/Desktop/amsn received files/avg.xls", "/Users/kevin/Desktop/avg.xls"}

--"As democracy is perfected, the office of president represents, more and more closely, the inner soul of the people. On some great and glorious day the plain folks of the land will reach their heart's desire at last and the White House will be adorned by a downright moron."

.... H.L. Mencken ...



Wonderful! That did the trick. Thank you.


-- Cheers,

Kevin Walzer, PhD
WordTech Software - "Tame the Terminal"
http://www.wordtech-software.com
sw at wordtech-software.com
_______________________________________________
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: 
 >Question about list structure (From: Kevin Walzer <email@hidden>)
 >Re: Question about list structure (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Question about list structure
  • Next by Date: [OT] message for BR
  • Previous by thread: Re: Question about list structure
  • Next by thread: Re: Question about list structure
  • Index(es):
    • Date
    • Thread