Applescript to cut and paste first word of Numbers cell
I'm creating a Service in Automator, and would like incorporate an Applescript that will "cut" the first word in any Numbers cell that I select, and "paste" it into the cell directly to the left of the the cell I've selected. Let's assume the column I'm selecting from is Column C. I'm no scripter and would appreciate any help.
As a very rough start, here is what I have (with some of things I'm trying to accomplish in brackets):
on run {input, parameters}
try
set MyText to input as string
set FirstWord to first word of MyText
set [remove the first word and a single space from what I've selected]
tell application "Numbers"
tell table 1 of sheet 1 of document 1
set theRow to [the row of the cell I've selected]
set value of cell 3 of theRow to FirstWord
end tell
end tell
end try
return input
end run
Thanks in advance!