Real Software Forums
http://forums.realsoftware.com/

AppleScript command to move from one table cell to the next?
http://forums.realsoftware.com/viewtopic.php?f=7&t=47557
Page 1 of 1

Author:  oleman108 [ Wed Apr 10, 2013 1:00 pm ]
Post subject:  AppleScript command to move from one table cell to the next?

I'm trying to find an AppleScript equivalent to the VBA command "Selection.MoveRight Unit:=wdCell"

In AppleScript I can create a new document from a template, jump to a bookmark and insert text. But I am stuck with moving to the next cell and insert the next junk of text ...

Any ideas, anyone?
Oliver


===

In VB I do:

Selection.GoTo What:=wdGoToBookmark, Name:="LabelStart"
Selection.TypeText Text:="some label.."
Selection.MoveRight Unit:=wdCell

And in AppleScript :

-- create a new Word document based on a template
tell application "Finder"
set myPath to ((path to home folder) as text) & "Documents:Seminar Pro:Templates:imLabels.dotm"
set thePath to a reference to alias myPath
open thePath as alias
end tell

-- wait, to allow Word to get ready
delay 3

-- jump to the first Label
tell application "Microsoft Word"
select bookmark "LabelStart" of active document
end tell

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/