[mira_talk] Re: Bug when the mira executable is in a directory with a space character in the name

  • From: John Nash <john.he.nash@xxxxxxxxx>
  • To: "mira_talk@xxxxxxxxxxxxx" <mira_talk@xxxxxxxxxxxxx>
  • Date: Mon, 17 Feb 2014 19:42:43 -0500

> On Feb 17, 2014, at 7:00 PM, Sidney Markowitz <sidney@xxxxxxxxxxxxxx> wrote:
> 
> Bastien Chevreux wrote, On 2/18/14 12:26 PM:
>> Workaround is quite simple: do not use spaces in the path to MIRA.
> 
> I've got a use case where that is difficult - I'm creating a wrapper that
> itself shells out to command line MIRA that allows a user to install it as a
> plugin alongside other tools. On a Mac in particular the natural directory for
> it to be installed is under "/Library/Application Support/". In Linux it is
> less likely that the directory has a space in the name, but it would still be
> onerous if a user who did set things up that way would have to change it just
> to add MIRA to the set of tools.

I feel your pain. What I have been doing on the Mac is using cocoaDialog to 
create my dialog boxes, handle navigation, and run programs. I solved my "space 
in file and folder names" issue by doing something like this to quote each 
element in my array of file names (in Perl here). 

    @Files_list = map { qq/"$_"/ } @Files_list;

Would that help?



Other related posts: