Change title case with external script

Users asking other users for AppleScripts that work with Bookends.
Post Reply
chittu
Posts: 25
Joined: Wed Mar 25, 2015 9:36 am

Change title case with external script

Post by chittu »

I need to change the title to sentence case, however I can't use the built-in change case, for an example the title
"A Mild and Ligand-Free Ni-Catalyzed Silylation via C-OMe Cleavage."
will become
"A mild and ligand-free ni-catalyzed silylation via c-ome cleavage."
but the correct one is (I'm also removing the full stop at the end)
"A mild and ligand-free Ni-catalyzed silylation via C-OMe cleavage"
I have a python script with an exclusion list that can take care of this issue, but is it possible to use applescript script to Iteratively pull every title of the selected references and execute the python script? (I can do "do shell script")

Jon
Site Admin
Posts: 8736
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Change title case with external script

Post by Jon »

I don't see why not (but others may give you a better answer). But why do you want to do this? The format you use can set the case of the title, there are few good reasons for hard coding this in the database.

Jon
Sonny Software

chittu
Posts: 25
Joined: Wed Mar 25, 2015 9:36 am

Re: Change title case with external script

Post by chittu »

The nature group journals use sentence case and my database is mixed with both upper and lower case title. Depends on where I submit my manuscript, I have to change the case! (ACS journals use Title case)

Jon
Site Admin
Posts: 8736
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: Change title case with external script

Post by Jon »

As I said, you set this in the *format*, not the database! The database never has to change.

Please read the User Guide (Help menu) about how formatting works, and how to change the title case.

Jon
Sonny Software

Post Reply