Skip to content

chore: remove applescript from trash#50067

Merged
ckerr merged 1 commit into38-x-yfrom
trop/38-x-y-bp-chore-remove-applescript-from-trash-1772623007039
Mar 4, 2026
Merged

chore: remove applescript from trash#50067
ckerr merged 1 commit into38-x-yfrom
trop/38-x-y-bp-chore-remove-applescript-from-trash-1772623007039

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop bot commented Mar 4, 2026

Backport of #50044

See that PR for details.

Notes: none

Previously, when trashItemAtURL: failed (e.g. on network shares or
under app translocation), the code fell back to constructing an
AppleScript that interpolated the bundle path directly into a string
literal via %@ with no escaping. This was fragile and unnecessary —
trashItemAtURL: has been the standard API since 10.8 and covers the
relevant cases. The fix simply removes the AppleScript fallback
entirely, so Trash() now returns the result of trashItemAtURL: directly.

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
@trop trop bot requested review from a team and codebytere March 4, 2026 11:17
@trop trop bot mentioned this pull request Mar 4, 2026
4 tasks
@trop trop bot added 38-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Mar 4, 2026
@ckerr ckerr merged commit 38b3090 into 38-x-y Mar 4, 2026
111 of 112 checks passed
@ckerr ckerr deleted the trop/38-x-y-bp-chore-remove-applescript-from-trash-1772623007039 branch March 4, 2026 20:32
@release-clerk
Copy link
Copy Markdown

release-clerk bot commented Mar 4, 2026

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

38-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant