New topic: 

AppleScript command to move from one table cell to the next?

<http://forums.realsoftware.com/viewtopic.php?t=47557>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        oleman108          Post subject: AppleScript command to move 
from one table cell to the next?Posted: Wed Apr 10, 2013 1:00 pm                
                 
Joined: Tue Sep 02, 2008 3:01 pm
Posts: 193
Location: Switzerland                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
      
_________________
"Stop deluding yourself with wishful thinking and find a solution that works 
for what you need to do"
Tim Hare - on forums.realsoftware.com  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to