Re: truncating items in a list
Re: truncating items in a list
- Subject: Re: truncating items in a list
- From: KOENIG Yvan <email@hidden>
- Date: Tue, 11 Dec 2007 18:52:49 +0100
Hello
As sometimes the received dates aren't seen as dates by AppleScript,
I wrote this simple code:
set liste to every paragraph of (the clipboard as text)
repeat with i from 1 to count of liste
set di to liste's item i
set AppleScript's text item delimiters to " "
set di to text item 1 of di
set AppleScript's text item delimiters to " "
set item i of liste to di
end repeat
set AppleScript's text item delimiters to return
set liste to liste as text
set AppleScript's text item delimiters to ""
set the clipboard to liste
starting from
13/12/07 18:29
14/12/07 18:29
15/12/07 18:29
16/12/07 18:29
17/12/07 18:29
the result would be:
13/12/07
14/12/07
15/12/07
16/12/07
17/12/07
Yvan KOENIG
_______________________________________________
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