On Fri, Aug 5, 2011 at 10:15 PM, Rainer Standke <[email protected]> wrote: > args: ( > "-T fusion", > "-gu Administrator", > "-gp Admin", > runScriptInGuest, > "\"/Users/rainer/Documents/Virtual Machines.localized/Windows XP > Professional v1.vmwarevm/Windows XP Professional v1.vmx\"", > "", > "start http://apple.com" > ) > > None of the many variations I have tried have worked.
Ever worked with argv? Know how argv[1] would be "-T" and argv[2] would be "fusion", etc? That's the type of thing you have to build on this side. So, args are: "-T", "fusion", "-gu", "Administration", "-gp", "Admin", "runScriptInGuest", "/Users/rainer/Documents/Virtual Machines.localized/Windows XP Professional v1.vmwarevm/Windows XP Professional v1.vmx", "-noWait", "", "start http://apple.com" No shell escapes. Just what you would have to escape for a normal C/Obj-C string (\", \\, etc). There's no reason to do shell escapes since you aren't involving the shell here. Don't escape spaces, put things in quotes, or escape "$", etc. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
