Summary: Truncating month
Summary: Truncating month
- Subject: Summary: Truncating month
- From: Robert Poland <email@hidden>
- Date: Thu, 26 Sep 2002 07:08:04 -0400
This from Jay Young <email@hidden>. Turns out that all my books say
1 to 3 which the latest AppleScript doesn't accept. I knew it had to
be something simple. Thanks Jay.
If you're working with one item as a string you could use:
-----------------------------------------
set Mnth to "September"
set Mnth2 to (characters 1 thru 3 of Mnth) as string
get Mnth2
-----------------------------------------
or if you want to work with a list of months, you could try
something like this:
-----------------------------------------
set Mnth to {"September", "October"}
set Mnth2 to {}
repeat with x from 1 to (count of Mnth)
set end of Mnth2 to (characters 1 thru 3 of item x of Mnth) as string
end repeat
get Mnth2
-----------------------------------------
Jay
On Wednesday, September 25, 2002, at 05:50 PM, Robert Poland wrote:
Hi,
I'm trying to change, for example, September to Sep. I can find all
kinds of ways to change words of a document but not just a lone
word. Where do I look, I've about worn out Danny Goodmans book.
--
Bob Poland - Sumter, SC
email@hidden
Check out my garage sale http://www.ibrb.org/
_______________________________________________
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.
--
Bob Poland - Sumter, SC
email@hidden
Check out my garage sale
http://www.ibrb.org/
_______________________________________________
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.