Skip to content

Beware: 'on open' handler doesn't see .app bundles; might trigger 'on run' handler! #1

@hmijail

Description

@hmijail

In macOS Sonoma 14.3.1 I'm noticing something pretty weird. I expected .app bundles to behave as directories, but they do NOT.

  • if you drop 1 .app to the droplet, the on run handler runs - not the on open handler.
  • if you drop multiple items, including an .app, to the droplet, the on open handler runs - but it never sees the .app, only the other items.

So it looks like .apps get somehow censored from the drag'n'drop operation.

I tried to do the same with an .rtfd bundle as created by TextEdit, and it does behave as a normal directory. So this doesn't affect all bundles.

I assume this is a macOS / Applescript bug, and that it can't be fixed from a script. Just... would be good to document it. Hopefully people will see it here at least.

As of today I can't find online any mention of this behavior, so maybe it's new? But it's hard to search for such a thing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions