Hi, I have a user on 10.15.1 on which our application is creating and writing to a folder in Application Support but it cannot be seen in Finder.
I am getting and checking a sub folder using
[code]Public Function GetApplicationDataFolder() as FolderItem
if not SpecialFolder.ApplicationData.Child(cProgramName).Exists then
SpecialFolder.ApplicationData.Child(cProgramName).CreateAsFolder()
if not SpecialFolder.ApplicationData.Child(cProgramName).Exists then
//did not have Permissions to create so return err
return nil
end if
end if
return SpecialFolder.ApplicationData.Child(cProgramName)
End Function
[/code]
I then reference and use a sub folder for debug data
[code]Public Function GetApplicationDebugFolder(create as boolean) as FolderItem
dim f as FolderItem
f = GetApplicationDataFolder()
if f = nil or not f.Exists then Return nil
f = f.Child(cDebugFolderName)
if f.Exists then return f
if create then
f.CreateAsFolder()
end if
if not f.Exists then return nil
return f
End Function
[/code]
I use this to write out a file into the debug folder
[code]myTempFolder=app.GetApplicationDebugFolder(true)
if myTempFolder=nil then
//show error
return nil
end
myTempFolder = myTempFolder.Child(“photoshop_script.jsx”)
if myTempFolder.Exists then
myTempFolder.deleteRetry
end
if myTempFolder<>nil then
bs=myTempFolder.CreateBinaryFileRetry(5)
If bs<>nil Then
bs.Write(bom)
bs.Write(contents)
bs.Close
else
App.ShowErrorMessage(kTextFailedToOpenTempFile, “title”)
return nil
end
else
App.ShowErrorMessage(kTextFailedToGetTempFile, “title”)
return nil
end[/code]
This all works without errors, and even printing out the native path shows the correct path.
It just is not in finder!
If i remove the debug folder it does not even create that. Which should cause all sorts of problems.
Application is code signed and notarized.
It has permissions in automation required
I even tested with full disk access.
I did notice that about 4 hours ago it did write out the file, but wont any more.
Any idea what is going on here