Apple Script to open a webpage in VM not working anymore

Discussion in 'Windows Virtual Machine' started by SandrineP, Mar 11, 2025.

  1. SandrineP

    SandrineP Bit poster

    Messages:
    2
    Hello,

    I am facing an issue, and I feel stupid not being able to figure it out because it's so simple.
    I have some AppleScript that I launch from my Mac with a Loupedeck to open a web page in a Windows 11 VM.
    I used the simple script found in the parallels doc:

    tell application "Google Chrome"
    activate
    open location "https://parallels.com/"
    end tell

    It was working perfectly until yesterday. Now, it starts Chrome on my Mac, not in the Windows VM anymore.
    And the only thing I have done since yesterday is just update the toolbox on the VM...

    Does anybody have any idea how to fix that ??

    Thanks in advance for your help.
     
  2. Adam45

    Adam45 Bit poster

    Messages:
    4
    I think that's because Parallels Desktop doesn't have a dedicated suite anymore:
    upload_2025-3-19_11-31-19.png

    Compare that to BetterZip, for example:

    upload_2025-3-19_11-31-48.png
     
  3. Swaan

    Swaan Bit poster

    Messages:
    2
    Your AppleScript may not work due to macOS security updates, VM settings, or script issues.
    Fixes:
    1. Enable Permissions:
      • Go to System Settings → Privacy & Security → Accessibility
      • Allow Script Editor & VMware Fusion
      • Check Automation permissions
    2. Update Script (Add Delay & Focus VM)
      tell application "VMware Fusion"
      activate
      delay 2
      tell application "System Events"
      keystroke "t" using command down
      delay 1
      keystroke "https://example.com"
      keystroke return
      end tell
      end tell
    3. Use VM Command Line (Alternative Fix)
      For Windows VM:
    tell application "VMware Fusion"
    do script "Start-Process 'chrome.exe' 'https://example.com'" in guest
    end tell
    For Linux VM:
    tell application "VMware Fusion"
    do script "firefox https://example.com &" in guest
    end tell
    Test and let me know if issues persist!
     

Share This Page