Re: finding newest file in a folder
Re: finding newest file in a folder
- Subject: Re: finding newest file in a folder
- From: Michelle Steiner <email@hidden>
- Date: Mon, 15 Mar 2004 16:15:51 -0700
On Mar 15, 2004, at 1:52 PM, Deivy Petrescu wrote:
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
-- {"paragraph 1", "paragraph 2", "paragraph 3", "paragraph 4",
"paragraph 5"}
Even easier:
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 paragraphs of x
--> {"paragraph 1", "paragraph 2", "paragraph 3", "paragraph 4",
"paragraph 5"}
-- Michelle
--
Support our troops. Bring them home NOW!
_______________________________________________
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.