Hi,
I've managed to find enough info via Google to get part of an AppleScript done that I really need.
I use a translation software package called OmegaT. When translating, you can opt to auto insert a Google Translation suggestion by pressing the key combination cmd+m.
If you then hit return, it moves to the next line and you can continue to auto fill via cmd+m.
I'd like to set up an AppleScript that when run will do both of these in turn until it reaches the end of the given doc and then quit.
Here is what I have so far (borrowed and amended from a couple of different places):
tell application "System Events"
keystroke return
delay 0
tell application "OmegaT 2.1.7"
activate
end tell
key code 46 using command down
tell application "System Events"
keystroke return
end tell
end tell
Can anyone tell me how I fit in a while loop that runs only until the end of the document has been reached and then stops issuing the "cmd+m/return" command?
Thanks
I've managed to find enough info via Google to get part of an AppleScript done that I really need.
I use a translation software package called OmegaT. When translating, you can opt to auto insert a Google Translation suggestion by pressing the key combination cmd+m.
If you then hit return, it moves to the next line and you can continue to auto fill via cmd+m.
I'd like to set up an AppleScript that when run will do both of these in turn until it reaches the end of the given doc and then quit.
Here is what I have so far (borrowed and amended from a couple of different places):
tell application "System Events"
keystroke return
delay 0
tell application "OmegaT 2.1.7"
activate
end tell
key code 46 using command down
tell application "System Events"
keystroke return
end tell
end tell
Can anyone tell me how I fit in a while loop that runs only until the end of the document has been reached and then stops issuing the "cmd+m/return" command?
Thanks