Re: AppleScript for references
Re: AppleScript for references
- Subject: Re: AppleScript for references
- From: Michelle Steiner <email@hidden>
- Date: Mon, 26 Dec 2011 22:56:05 -0700
On Dec 26, 2011, at 10:11 PM, h. wrote: I need a script that eliminates coma and put in parentheses the year in a selected text. Does anyone know how?
Alex showed you how to parse the parts of the selected text. Here's how to put the parens around the year.
set x to "Last-Name, 1999" set text item delimiters to "," set y to text items of x
repeat with i from 1 to 2 try set q to item i of y as integer set b to "(" & q & ")" on error set a to item 1 of y end try end repeat set text item delimiters to space set z to {a, b} as text
-- Michelle -- The best way to ruin a friendship is to do someone's website
|
_______________________________________________
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