• 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: AppleScript for references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: AppleScript for references
      • From: Alex Zavatone <email@hidden>
References: 
 >AppleScript for references (From: "h." <email@hidden>)
 >Re: AppleScript for references (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: AppleScript for references
  • Next by Date: Re: AppleScript for references
  • Previous by thread: Re: AppleScript for references
  • Next by thread: Re: AppleScript for references
  • Index(es):
    • Date
    • Thread