I’m trying to run the following subRoutine, but when it reaches the “Keystroke Return” line, nothing happens. The Save as Tiff window just sits there, highlighting the File Name and unhighlighting it. I’m a total rookie at this, so any help would be greatly appreciated.
on saveStack(tcsName)
my do_submenu("ImageJ", "File", "Save As", "Tiff...")
delay 1.5
tell application "System Events"
tell process "ImageJ"
tell window "Save as Tiff"
keystroke "Stack" & tcsName & ".tif"
delay 1
keystroke return
end tell
end tell
end tell
end saveStack
on saveStack(tcsName)
my do_submenu(“ImageJ”, “File”, “Save As”, “Tiff…”)
delay 1.5
tell application “System Events”
tell process “ImageJ”
tell window “Save as Tiff”
keystroke “Stack” & tcsName & “.tif”
delay 1.5
click button “Save” of window “Save as TIFF” __ maybe try a click?
end tell
end tell
end tell
end saveStack
Thanks guys! The Click “Save” button worked like a charm… Although I did have to take out the extra “of window “save as tiff”” since it was already in the tell window.