help a beginner :)

David McFarlane mcfarla9 at msu.edu
Thu Jul 29 21:07:12 UTC 2010


At 6/29/2010 06:28 AM Tuesday, Michiel Spape wrote:
>Hi Candy & OP,
>This is not exactly the case; files should be 
>accessible anywhere on the system, the only 
>problem is that it is A) difficult to move 
>experiments around like that (since the 
>structure on the other computer would need to be exactly the same)

I beg to differ here.  As long as you use 
relative paths instead of absolute paths, you 
should be able to copy & move experiments with no 
trouble.  We do that regularly.

>  and B) for some people difficult in terms of 
> syntax. The second one seems to be the problem 
> here, with several basic things going wrong:
>- Windows tends to use back-slash syntax for 
>files that are on the current PC i.e. 
>C:\windows\system32, rather than c:/windows/system32.
>- \ is also an escape character and writing 
>addresses very often goes wrong because of it. 
>In inline, for example, you'd have to use 
>c:\\windows\\system32 to produce c:\windows\system32

Please see
http://support.pstnet.com/forum/Topic2336-12-1.aspx ,
http://support.pstnet.com/forum/Topic1689-12-1.aspx ,
http://support.pstnet.com/forum/Topic1718-5-1.aspx 
and 
http://groups.google.com/group/e-prime/browse_thread/thread/d2760287fabeb88a 
, where this has been discussed at more length.

In short, in E-Prime it is best to simply use 
single *forward* slashes ("/") for all path 
separators, e.g., c:/windows/system32.  Yes, 
E-Prime defaults to inserting backslashes for 
you, which confuses things, you just have to 
ignore that and use forward slashes yourself.

-- David McFarlane, Professional Faultfinder


>...
>Because of all this often goes wrong, it's 
>usually better to do it like Candy suggested: 
>just dump everything in the same folder as the 
>experiment and never mind about writing down 
>paths. The only good reason for doing it 
>otherwise is that one might want to have some 
>organisation: sad faces 1-100 go in folder 
>'sad', happy faces 1-100 go in folder happy. 
>Have these folders, then, as subfolders of the 
>place where your experiment is located and use 
>relative paths: sad\\face1.bmp, 
>happy\\face8.bmp. This is also convenient if you 
>then have two attributes, say: TypeOfFace and 
>FaceNumber, because then you can just assign the current face as
>CurrentFace.filename = c.GetAttrib("TypeOfFace") 
>& "\\" & c.GetAttrib("FaceNumber")
>Or something like that.
>
>Best,
>Mich
>
>Michiel Spapé
>Research Fellow
>Perception & Action group
>University of Nottingham
>School of Psychology
>
>
>-----Original Message-----
>From: e-prime at googlegroups.com 
>[mailto:e-prime at googlegroups.com] On Behalf Of Candy Patterson
>Sent: 28 June 2010 12:56
>To: E-Prime
>Subject: Re: help a beginner :)
>
>I'm also a new user so not sure if this answer is correct but
>hopefully will make some sense:
>
>My understanding is all the images need to be in the same folder as
>the E-Prime script and cannot be in any sub-folders. For the Object
>display in a trial (filename1) you just need to list the file name as
>found in the folder (e.g. object1.bmp) and therefore there is no need
>to have a second attribute with the file path (filename2).
>
>Also, need to ensure in the 'Procedure' line-up that the attribute
>[filename1] is associated to an "ImageDisplay". The ImageDisplay
>should display the words: Your image '[filename1]' will appear here.
>
>Hope this helps
>
>Candy

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list