This content has been marked as final. Show 4 replies
Figured it out:
simplifying it even further:
tell application "Adobe InDesign CS2"
set myTest to "var thisNumber = 5;"
It's because the application object has a do script method, but the document object doesn't. These sorts of things are hard to see in AppleScript, because the dictionary browser(s) don't group methods with their parent objects. Sal Soghoian at Apple has long said that this needs fixing.
On 4/12/08 5:41 AM, "Olav Kvern" <firstname.lastname@example.org> wrote:<br /><br />> These sorts of things are hard to see in AppleScript, because the dictionary<br />> browser(s) don't group methods with their parent objects. Sal Soghoian at<br />> Apple has long said that this needs fixing.<br /><br />And in fact it has been fixed -- it just needs app developers to write their<br />dictionaries appropriately. For a good example, have a look at the<br />dictionary of Script Debugger 4.5 -- you'll see classes listed with<br />elements, properties, and "Responds to". And none of that truncation ID's<br />dictionary is full of.<br /><br />-- <br />Shane Stanley <email@example.com><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>
Huh. I had no idea, and I doubt if Jonathan does, either. We'll have to take a look.