RE: AppleScript for references
RE: AppleScript for references
- Subject: RE: AppleScript for references
- From: "h." <email@hidden>
- Date: Tue, 27 Dec 2011 00:25:37 -0600
Thank you all. I'll play with these tips.
h.
PD for Christian: I use Word because the manuscripts come from the authors in that format. Convert is not an option. The text that I want to change is precisely in the search and replace window.
El lunes 26 de diciembre de 2011 a las 23:56, Michelle Steiner escribió:
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