Why doesn't this script work?

Sarah Reichelt sarah.reichelt at gmail.com
Sun Nov 13 22:37:56 EST 2005


> local ldefaultFolder
>      if the environment <> "development" then
>        answer the platform
>        answer the defaultFolder
>        if the platform = "MacOS" then
>          put defaultFolder into ldefaultFolder
>          put "/Classroom Quizshow.app/Contents/MacOS" after
> ldefaultFolder
>          set the defaultFolder to ldefaultFolder
>          answer the defaultFolder
>        end if
>        if the platform = "Win32" then
>          put defaultFolder into ldefaultFolder
>          put "/CQdata" after ldefaultFolder
>          answer ldefaultFolder
>          set the defaultFolder to ldefaultFolder
>          answer the defaultFolder
>        end if
>      end if
>
> Note that the answer command 5 lines from the bottom returns the name
> of the correct folder I'm trying to make the defaultFolder, but the
> answer command 3 lines from the bottom returns the same thing minus "/
> CQdata".  What the heck?  I even copied "ldefaultFolder" in the 5th
> line from the bottom and pasted it over the same word in the 4th line
> from the bottom just to make doubly sure I didn't have a typo.
> Again, the MacOS part works as expected and produced the proper
> defaultFolder property value for the OS X standalone.

I have no idea why this isn't working, but I would check "the result"
after setting the defaultFolder in case that gives you any clues.

Cheers,
Sarah



More information about the use-livecode mailing list