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 tell
From code inspection:
UTMScriptingRegistryEntryImpl.updateRegistry(...) creates entries via UTMRegistryEntry.File(dummyFromPath: ..., remoteBookmark: ...)
- This writes
BookmarkRemote while Bookmark remains empty for those entries
- Apple backend (
UTMAppleVirtualMachine) syncs shared directories via registryEntry.sharedDirectories -> URL and does not appear to consume remoteBookmark
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 only BookmarkRemote), 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!
Summary
update registryin 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 registrycan update shared directories:From code inspection:
UTMScriptingRegistryEntryImpl.updateRegistry(...)creates entries viaUTMRegistryEntry.File(dummyFromPath: ..., remoteBookmark: ...)BookmarkRemotewhileBookmarkremains empty for those entriesUTMAppleVirtualMachine) syncs shared directories viaregistryEntry.sharedDirectories -> URLand does not appear to consumeremoteBookmarkRequested improvement
Please make
update registrya first-class path for Apple Virtualization shared directories, ideally by:Bookmark(not onlyBookmarkRemote), andWhy 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!