Hello board,
Thank you for all contribute to this real great project and those who take questions. I had bunch of hick-ups but I was able locate answers via search which worked but I can't seem to find a "working" solution for what I'm trying to do.
I have created a virtual box called Windows XP on Mac OS X 10.5.6 and I'm using Virtual Box 2.1.4
I want to create a dock icon with a windows XP logo to launch this virtual machine and I was able locate some scripting which would do this but the scripts I located are giving an error without launching a thing.
How can I do this?
Thanks in advance!!!
Creating a dock icon
Re: Creating a dock icon
http://forums.virtualbox.org/viewtopic. ... pplescript
and, remember - you can search the forum!
and, remember - you can search the forum!
-
- Posts: 3
- Joined: 5. Apr 2009, 08:09
- Primary OS: Mac OS X Leopard
- VBox Version: PUEL
- Guest OSses: Windows XP
Re: Creating a dock icon
I did find that tread and creating a script with the item below gives a scripting error
do shell script "vboxmanage startvm NAMEOFYOURVIRTUALMACHINE"
do shell script "vboxmanage startvm NAMEOFYOURVIRTUALMACHINE"
Re: Creating a dock icon
You should replace "NAMEOFYOURVIRTUALMACHINE" with the name of your virtual-machine.
-
- Posts: 3
- Joined: 5. Apr 2009, 08:09
- Primary OS: Mac OS X Leopard
- VBox Version: PUEL
- Guest OSses: Windows XP
Re: Creating a dock icon
This is exactly what I created which gave me the scripting error.
do shell script "vboxmanage startvm Windows XP"
do shell script "vboxmanage startvm Windows XP"
Re: Creating a dock icon
Your VMs name should be exactly the same you choosed in the virtualbox-properties and the name is case-sensitive.
But maybe this peace of code works:
But maybe this peace of code works:
Code: Select all
set VB_GUEST to "Windows XP"
set VB_PATH to "/usr/bin/"
set VB_VM to quoted form of VB_GUEST
do shell script VB_PATH & "VBoxManage startvm " & VB_VM
-
- Posts: 65
- Joined: 6. Apr 2009, 22:28
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Ubuntu 18.04
- Location: Detroit, MI
- Contact:
Re: Creating a dock icon
The problem is that there's a space in the name of the VM. vboxmanage interprets the name as two separate command-line parameters. There are two options here: either surround the name of the VM with escaped quotes or use the VM's UUID instead of its name. This will work:Burak wrote:This is exactly what I created which gave me the scripting error.
do shell script "vboxmanage startvm Windows XP"
Code: Select all
do shell script "/usr/bin/vboxmanage startvm \"Windows XP\""
Code: Select all
aristotle:~ slauncha$ vboxmanage list vms
VirtualBox Command Line Management Interface Version 2.2.0_BETA2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
"Ubuntu 9.04 Beta" {d149b343-998f-4298-a136-1b17638107fc}
Code: Select all
do shell script "/usr/bin/vboxmanage startvm d149b343-998f-4298-a136-1b17638107fc"