<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16915" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=978094616-26102009><FONT face=Arial
color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3>On 25 Oct
2009, at 13:51, Alessandro Vernet wrote:</FONT> </FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr align=left>You're right, it looks like undo and redo can't be
recorded in a macro. I tried editing the macro file by hand to add them, but
no <SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN>luck. <SPAN
class=978094616-26102009><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN>Sorry, I don't have any other bright
ideas.</DIV></BLOCKQUOTE>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=978094616-26102009> </SPAN><BR></DIV>
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: medium Optima; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV><FONT class=Apple-style-span color=#000000><SPAN class=Apple-style-span
style="BACKGROUND-COLOR: transparent"><FONT class=Apple-style-span size=3><SPAN
class=Apple-style-span style="FONT-SIZE: 12px">
<DIV dir=ltr align=left><SPAN class=978094616-26102009><FONT face=Arial
color=#0000ff size=2>Well, I was trying to utilize AppleScript. I got a
plain old script working:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=978094616-26102009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>tell application "System
Events"<BR> tell process "TextMate"<BR> set frontmost to
true<BR> keystroke "z" using {command down}<BR> keystroke
"z" using {command down, shift down}<BR> end tell<BR>end tell</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2>Assuming you have "Enable Access for Assistive Devices" turned on in the
Universal Access pref pane.</FONT></SPAN></DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff size=2>I got
it working from the Terminal:</FONT></SPAN></DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN><SPAN class=978094616-26102009><FONT face=Arial
color=#0000ff size=2>osascript -e 'tell application "System Events" to tell
process "TextMate" to set frontmost to true'; osascript -e 'tell application
"System Events" to tell process "TextMate" to keystroke "z" using {command
down}'; osascript -e 'tell application "System Events" to tell process
"TextMate" to keystroke "z" using {command down, shift
down}'<BR></FONT></SPAN></DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2>(that's three commands all on one line...)</DIV>
<DIV></FONT></SPAN> </DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff size=2>But
putting that command into a TM Command doesn't seem to work. I'm far from
a scripting expert, Apple- or Bash, so maybe it could work with
more love. I've spent about as much time as I'm able to
spend on such things, so hopefully someone else with more skills can take
the idea? </FONT></SPAN></DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=978094616-26102009><FONT face=Arial color=#0000ff
size=2>Dru</FONT></SPAN></DIV></SPAN></FONT></SPAN></FONT></DIV></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></DIV></SPAN></SPAN></DIV></BODY></HTML>