junaid,

when you issue a setPrefs command the prefs file will be created in a
prefs folder at the same level as the application, if no prefs folder
exists then one will be created. While you are authoring the
'application' is Director itself, therefore the prefs file will be
created in the prefs folder in the same directory as the Director
application.

In projector mode the application is the projector itself, so it will
look for a folder called 'prefs' in the same directory as itself (in
your case the desktop). Again if one does not exist then it will create
one.

>From what you've written it looks like this is happening OK. So I'm
guessing that maybe you are trying to specify a pathname in your
setPrefs call. You shouldn't do this as director doesn't like it, it
will always create the prefs file in it's root folder.

If this is not the case maybe you could post a snippet of the code you
are using and someone should be able to help you further. It also helps
to include the version of Director you are using and the operating
system you are running.

HTH

Jon Rowe

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 18, 2000 10:38 AM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> external txt file problem
> 
> 
> i am using the setpref() and getpref command to update my 
> external txt file but i am
> stuck in one problem that the txt file that i want to create 
> by using setpref command gets created normally in the 
> prefences folder if my projecter is in the same folder in 
> which the normal preferences lie(inside director 8 folder)...
> ......... but when i keep my projector on any other 
> location(i kept it on desktop) then
> the pref. folder is created but the txt file is not 
> generated...and i get an error msg...
> saying ..."director player error", "script error".. but in 
> authoring mode it works fine and 
> shows no error...
>         ......i am stuck again in my project..its urgently reqd...
> please someone find me the solution....
>      thanks in advance......
>    .........junaid(india)
> 
> 
> ______________________________________________________
> 123India.com - India's Premier Portal 
> Get your Free Email Account at http://www.123india.com
> 
> 
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
> 

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to