I don't understand why this is so hard.
I'm starting to think like I'm in over my head again.
Is this script returning an error under win32 and I don't see it cause I'm not trapping for errors?
Or simply not updating the defaultFolder.
Code: Select all
set the defaultFolder to specialFolderPath("engine")
And since there is always something in defaultFolder
this script will always return something?
Code: Select all
put defaultFolder into theFolderName
answer theFolderName
If the folder is not found, the specialFolderPath function returns empty.
If the folderIdentifier is either not supported on the current platform
or doesn't exist on the current system, the result is set to folder not found.
Found it:
set the defaultFolder to specialFolderPath("engine")
answer the result
-- on win32 returns: can't open directory
So, to me, set the defaultFolder to specialFolderPath("engine")
does execute on win32
but returns an error in 'the result'
I wonder which other LiveCode commands do this and I'm missing them.