Hello,
I managed to execute "start" and "stop" vmrun commands if i use Terminal, but I use the same commands in Applescript I get the error "Cannot open VM: /Users/pascal/Documents/Virtal Machine/Win 10 x64 iMac 2017.vmwarevm/Win 10 x64.vmx, Cannot read the virtual machine configuration file."
remark: the proper name of the folder is "Virtal Machine", with the spelling mistake :-(
Commands I use with Terminal: and both work!
vmrun stop /Users/pascal/Documents/Virtal\ Machine/Win\ 10\ x64\ iMac\ 2017.vmwarevm/Win\ 10\ x64.vmx soft
vmrun start /Users/pascal/Documents/Virtal\ Machine/Win\ 10\ x64\ iMac\ 2017.vmwarevm/Win\ 10\ x64.vmx
The syntax I use in Applescript:
property usr : "myuser"
property pswd : "mypsw"
do shell script "sudo /Applications/'VMware Fusion.app'/Contents/Library/vmrun start '/Users/pascal/Documents/Virtal Machine/Win 10 x64 iMac 2017.vmwarevm/Win 10 x64.vmx'" user name usr password pswd with administrator privileges
do shell script "sudo '/Applications/VMware Fusion.app/Contents/Library/vmrun' stop '/Users/pascal/Documents/Virtal Machine/Win 10 x64 iMac 2017.vmwarevm/Win 10 x64.vmx' soft" user nameusrpasswordpswd with administrator privileges
Can you tell me what i do wrong in applescript?
Manhy thanks
mac book air Catalina
Fusion 11.5.1