-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Feature request: Make AppleScript update registry fully support Apple Virtualization shared directories #7664
Copy link
Copy link
Open
Description
Summary
update registry in AppleScript currently updates VM shared directories in a way that appears to be QEMU-oriented (BookmarkRemote) rather than Apple Virtualization-oriented (Bookmark).
For Apple Virtualization (Virtualization.framework) VMs, this makes behavior look incomplete/inconsistent versus normal UI-configured shared directories.
Context
AppleScript dictionary says update registry can update shared directories:
tell application \"UTM\"
set vmObj to virtual machine id \"<vm-uuid>\"
update registry vmObj with {POSIX file \"/Users/me/ShareA\", POSIX file \"/Users/me/ShareB\"}
end tellFrom code inspection:
UTMScriptingRegistryEntryImpl.updateRegistry(...)creates entries viaUTMRegistryEntry.File(dummyFromPath: ..., remoteBookmark: ...)- This writes
BookmarkRemotewhileBookmarkremains empty for those entries - Apple backend (
UTMAppleVirtualMachine) syncs shared directories viaregistryEntry.sharedDirectories -> URLand does not appear to consumeremoteBookmark
Requested improvement
Please make update registry a first-class path for Apple Virtualization shared directories, ideally by:
- Creating proper persistent/scoped bookmark data for
Bookmark(not onlyBookmarkRemote), and - Preserving compatibility with existing QEMU behavior.
Why this helps
This would make AppleScript automation reliable and consistent across backends, especially for users managing VF VMs headlessly or from external automation.
Thanks for considering this!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels