Page 1 of 1

Issues with writing Files to specialFolderPath("documents")

Posted: Wed Aug 30, 2023 12:04 pm
by ace16vitamine
Dear all,

I need to write a file to specialFolderPath("documents") on iOS Simulator.

As Test, this does not work:

put specialFolderPath("documents") & "/SetUp.txt" into myFile
open file myFile for write
put "TEST" into myText
write myText to file myFile
close file myFile

Any Ideas why? The folder is empty.

Stefan

Re: Issues with writing Files to specialFolderPath("documents")

Posted: Wed Aug 30, 2023 1:35 pm
by ace16vitamine
Spooky, this does work:

set the defaultFolder to specialFolderPath("documents")
put "" into URL ("file:orders.txt")


Seems that
"put specialFolderPath("documents")" does not work :-/

Hm... Issue solved