• 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: finding newest file in a folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding newest file in a folder


  • Subject: Re: finding newest file in a folder
  • From: Bill <email@hidden>
  • Date: Tue, 16 Mar 2004 11:04:06 +0800

set x to "paragraph 1" & return & "paragraph 2" &
(ASCII character 10) & "paragraph 3" & (ASCII
character 13) & "paragraph 4" & (ASCII character
10) & "paragraph 5"

set lista to {}
repeat with j from 1 to 5
set end of lista to paragraph j of x
end repeat
lista

Deivy,

Would you consider this one:

set lista to paragraphs of x
-- {"paragraph 1", "paragraph 2", "paragraph 3", "paragraph 4", "paragraph 5"}

In my experience, applescript handles characters (every characters of) & paragraphs (every paragraphs of) quite well. Even returns correct results when dealing with Traditional Chinese or Simplified Chinese.


bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: How to detect a file has resource fork, or not?
  • Next by Date: Re: finding newest file in a folder
  • Previous by thread: Re: finding newest file in a folder
  • Next by thread: Re: finding newest file in a folder
  • Index(es):
    • Date
    • Thread