On Oct 13, 2005, at 1:36 PM, Ted Zeng wrote:

Here is what I did:
I clicked the menu "File:New" and Illustrator presents
An "New document" dialog.

Now, I go to execute the commands to kill it.

The AppleScript version could not kill it.

Makes sense. The AppleScript would presumably (I don't have it in front of me) work by sending an Apple Event. Having a modal dialog open probably jams up the processing of such events.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Reply via email to