getDirectory problem on Windows Vista Business

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

getDirectory problem on Windows Vista Business

mnqslbs2
Hello,

I need help.  I have searched the forum but cannot find a solution to this
problem.

We can't get the following macro to work with Windows Vista Business (Works
fine on XP):

  dir1 = getDirectory("Choose Source Directory ");

We have confirmed that varitions on the marco work such as:

  dir1 = getDirectory("image");

and

  dir1 = getDirectory("temp");

But cannot get the choose directory macro to run.  Does anyone have any
suggestions/solutions.

I look forward to your replies.

Ben
Reply | Threaded
Open this post in threaded view
|

Re: getDirectory problem on Windows Vista Business

Gabriel Landini
On Friday 04 May 2007 12:41:07 Ben Sutcliffe wrote:
> I need help.  I have searched the forum but cannot find a solution to this
> problem.
>
> We can't get the following macro to work with Windows Vista Business (Works
> fine on XP):
>
>   dir1 = getDirectory("Choose Source Directory ");

What would you name a directory "Choose Source Directory"?

Maybe you want:
dir1 = getDirectory(getString("Choose Source Directory ", ""));


Cheers,

G.
Reply | Threaded
Open this post in threaded view
|

Re: getDirectory problem on Windows Vista Business

mnqslbs2
In reply to this post by mnqslbs2
Hi Wayne

Thank you that did the trick it works fine now.

Regards

Ben

On 04/05/07, Wayne Rasband <[hidden email]> wrote:

>
> Ben,
>
> What version of Java are you using? Java 1.6 may work more reliably on
> Vista. Instructions for upgrading are at
>
>     http://rsb.info.nih.gov/ij/docs/install/windows.html#upgrade
>
> -wayne
>
>
> On May 4, 2007, at 7:41 AM, Ben Sutcliffe wrote:
>
> > Hello,
> >
> > I need help.  I have searched the forum but cannot find a solution to
> > this
> > problem.
> >
> > We can't get the following macro to work with Windows Vista Business
> > (Works
> > fine on XP):
> >
> >   dir1 = getDirectory("Choose Source Directory ");
> >
> > We have confirmed that varitions on the marco work such as:
> >
> >   dir1 = getDirectory("image");
> >
> > and
> >
> >   dir1 = getDirectory("temp");
> >
> > But cannot get the choose directory macro to run.  Does anyone have any
> > suggestions/solutions.
> >
> > I look forward to your replies.
> >
> > Ben
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: getDirectory problem on Windows Vista Business

Wayne Rasband
In reply to this post by mnqslbs2
JFileChooser, used by the getDirectory() macro function, does not work
with Java 1.5 on Vista. You need to upgrade to Java 1.6. Instructions
are available at

      http://rsb.info.nih.gov/ij/docs/install/windows.html#upgrade

-wayne

On May 4, 2007, at 7:41 AM, Ben Sutcliffe wrote:

> Hello,
>
> I need help.  I have searched the forum but cannot find a solution to
> this
> problem.
>
> We can't get the following macro to work with Windows Vista Business
> (Works
> fine on XP):
>
>   dir1 = getDirectory("Choose Source Directory ");
>
> We have confirmed that varitions on the marco work such as:
>
>   dir1 = getDirectory("image");
>
> and
>
>   dir1 = getDirectory("temp");
>
> But cannot get the choose directory macro to run.  Does anyone have any
> suggestions/solutions.
>
> I look forward to your replies.
>
> Ben
>
Reply | Threaded
Open this post in threaded view
|

Re: getDirectory problem on Windows Vista Business

Gabriel Landini
> >   dir1 = getDirectory("Choose Source Directory ");

I was very wrong in the assumption that "Choose..." was the name of a
directory.
I forgot that if one uses it this way the functions calls the file chooser
dialog.
Sorry for the misunderstanding!
Cheers,

G.