Sturgis is right on all counts. The property is there, you don't have to do anything else. I use your exact code in Zygodact and it works fine. Referencing the property will create it if it doesn't already exist, and you don't have to specifically open the stack to do it. File extensions don't matter either.
I don't know how you are checking the value after setting it, but I do it by setting the property as you do now, and then getting it again. It doesn't have to be in the same handler or script:
Code: Select all
on setPref
put specialFolderPath("preferences") & slash & "myAppPrefs" into myAppPrefsPath
set the cTest of stack myAppPrefsPath to "test"
end setPref
on getPref
put specialFolderPath("preferences") & slash & "myAppPrefs" into myAppPrefsPath
put the cTest of stack myAppPrefsPath
end getPref