Previous Message |
Next Message Previous in Topic | Next in Topic Previous by Same Author | Next by Same Author Previous Page (July 2004) | Back to Main IMAGEJ Page | |
|
Reply
| Post a New Message |
Join or Leave IMAGEJ, or Change Options
|
Search |
|
Chronologically |
Most Recent First |
Wrap Text (Proportional Font) |
Don't Wrap Text (Non-proportional Font) |
| |
Message-ID: <[log in to unmask]> Date: Mon, 19 Jul 2004 19:46:02 -0400 Reply-To: ImageJ Interest Group <[log in to unmask]> Sender: ImageJ Interest Group <[log in to unmask]> From: Brendan Morris <[log in to unmask]> Subject: Re: macro helpThanks a lot guys, you were exactly right. When I put my files into c:\mydoc\ everything worked fine. I tried the "%20" but that didn't seem to work, oh well. Brendan On Mon, 19 Jul 2004 17:54:55 -0500, Gregory Wong <[log in to unmask]> wrote: >Try URLEncoding the strings first. >I believe spaces are converted to "%20" > >The "My Documents" folder would therefore look like "My%20Documents". >I do not know if this will work, but it's worth a try, since the scripting >language is similar to Javascript. URLEncoding is how you deal with this >problem in Javascript. > >-greg > >-----Original Message----- >From: Michael Cammer [mailto:[log in to unmask]] >Sent: Monday, July 19, 2004 2:21 PM >To: [log in to unmask] >Subject: Re: macro help > > >I'm not sure if this addresses your problem, but I have found that paths >with spaces don't work in macros on WindowsXP. > >It was easier to keep all the files in a new C:\mydocs\ or D:\users\ >directory path structure with no spaces than that the "My Documents" folder >than to figure out and write a function to handle spaces. > > > >At 02:14 PM 07/19/04 -0400, you wrote: >>I think this is probably a really easy problem but I've been stuck on this >>way too long. I'm trying to run a plugin i wrote through a macro. The >>plugin has a generic dialog box with 2 text fields. I'm not sure how to >>specify in the macro those fields. Any help is appreciated. >> >>After reading through some threads I've done something like this: >> >>truth = "C:\\Documents and Settings\\morris56\\My >>Documents\\DipImage\\truth\\scil\\truths_12_0_1.tif"; >>test = "C:\\Documents and Settings\\morris56\\My >>Documents\\DipImage\\truth\\matlab\\truthm_12_0_1.tif"; >>run("ROC ", "truth="+truth + " test=" +test); >> >>but this doesn't actually send the images to the plugin. Using the >>recorder I get something like >> >>run("ROC ", "select=file1 select=file2") >> >>Here the problem is the same file (file1) is used for both file1 and >>file2. Thanks. >>Brendan > >__________________________________________________________________________ __ >Michael Cammer Analytical Imaging Facility Albert Einstein Coll. of Med. >Jack & Pearl Resnick Campus 1300 Morris Park Ave. Bronx, NY 10461 >(718) 430-2890 Fax: 430-8996 URL: http://www.aecom.yu.edu/aif/
Center for Information Technology National Institutes of Health Bethesda, Maryland 20892 301 594 6248 (v) 301 496 8294 (TDD) Comments and Assistance Accessibility |