• 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: 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.


References: 
 >finding newest file in a folder (From: John Cochrane <email@hidden>)
 >Re: finding newest file in a folder (From: Deivy Petrescu <email@hidden>)
 >Re: finding newest file in a folder (From: Christopher Nebel <email@hidden>)
 >Re: finding newest file in a folder (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: finding newest file in a folder
  • Next by Date: Re: Another stupid question
  • Previous by thread: Re: finding newest file in a folder
  • Next by thread: Re: finding newest file in a folder
  • Index(es):
    • Date
    • Thread