Skip to content

Feature request: Make AppleScript update registry fully support Apple Virtualization shared directories #7664

@EkkoG

Description

@EkkoG

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:

  1. Creating proper persistent/scoped bookmark data for Bookmark (not only BookmarkRemote), and
  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions