Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Why don't I get a second AppleScript aevtodoc event when my app is open?

I am adding scripting to my Cocoa app. I support the Standard suite via the aevtodoc command selector in my sdef. On the first execution, this calls my app delegate's openFiles: method as expected. I can then call my app-specific event to process the file. But if I re-run the script, or drag a different file's icon onto my app in the dock, the open event is not resent, so I end up processing the same file as I originally opened. How do I force a reload of the file on each invocation of my script?

1 Answer

Relevance
Still have questions? Get your answers by asking now.