Dru beat me to it, so all I'll do is confirm his suggestions, with one small change:<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">  </span>set w to item 1 of (get natural dimensions of document 1)</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>set h to item 2 of (get natural dimensions of document 1)</div><div><br></div><div>("movie" doesn't seem to be a valid class anymore—it's just "document").</div>

<br><div class="gmail_quote">On Fri, Jan 21, 2011 at 12:29 PM, Dru Kepple <span dir="ltr"><<a href="mailto:dru@summitprojects.com">dru@summitprojects.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On Jan 21, 2011, at 8:56 AM, Walter Lee Davis wrote:<br>
<br>
> Bump --<br>
<div class="im"><br>
> On Jan 18, 2011, at 11:17 AM, Walter Lee Davis wrote:<br>
><br>
</div>>> Now [...] I get a cryptic error<br>
<div class="im">>> pasted into the current document instead of my code.<br>
<br>
</div>First, please provide the error.  That's going to be most helpful for other people to trying to help.<br>
<div class="im"><br>
>><br>
>> How is this supposed to work, so I can understand where to start<br>
>> poking around?<br>
<br>
</div>Not sure, but what that is is a drag command.  Open up the Bundle Editor (Control-Option-Command-B, or Bundles > Bundle Editor > Show Bundle Editor).  Then choose "Drag Commands" from the pop up menu in the top left.  Then open up the HTML section in the bar on the left.  Look for the "Insert QuickTime Movie" command.<br>


<div class="im"><br>
>> Does it rely on QuickTime 7 Pro being installed?<br>
>><br>
</div>I'm not the best one to provide information on drag commands, or on this particular one, but the code for the command I have installed (should be the one that came with TM) seems to rely on AppleScript, which actually then uses Quicktime Player to get the dimensions of the dropped movie.<br>


<br>
The obvious thing to me is that if Snow Leopard broke this, then maybe it's a difference in the AppleScript dictionaries for QuickTime Player 7 and the new QuickTime Player (X).<br>
<br>
Just a guess...app "QuickTime Player" will refer to QT X on Snow Leopard, but was probably intended for what is now called QT 7 when it was written.  Looking at the AppleScript being sent, the command is getting the dimensions of the movie.  This is a valid movie property in QuickTime 7, but not in QuickTime X (I'm looking at the dictionaries in AppleScript Editor).  QT X has a "natural dimensions" property, though, which seems like the same thing.<br>


<br>
So, in theory, we can change this:<br>
<br>
                set w to item 1 of (get dimensions of movie 1)<br>
                set h to item 2 of (get dimensions of movie 1)<br>
<br>
to this:<br>
<br>
                set w to item 1 of (get natural dimensions of movie 1)<br>
                set h to item 2 of (get natural dimensions of movie 1)<br>
<br>
Or, if you have QT 7 installed (personally, I still like it better), you can change this:<br>
<br>
        tell app "QuickTime Player"<br>
<br>
to this:<br>
<br>
        tell app "QuickTime Player 7"<br>
<br>
Haven't actually tried any of these suggestions, just conjecture, but if it doesn't work, maybe that gets you pointed in the right direction.<br>
<font color="#888888"><br>
+dru<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</div></div></blockquote></div><br></div>