This is my code:
Code: Select all
set the umask to 002
put ("auxfile.jpg") into tFileName
put specialFolderPath("documents") & "/" & tFileName into pFilePath --> --> EXTERNAL STORAGE!
export snapshot from group "Group 1" of card "Capture" to temp as JPEG
put temp into URL ("file:&pFilePath")
answer "Sending the file…" & cr & pFilePath & cr & (there is a file pFilePath) -->"TRUE
put pFilePath into tAttachment["file"]
put "image/jpg" into tAttachment["type"]
put tFileName into tAttachment["name"]
put "Here's the file!" into tBody
put "Sending a file" into tSubject
mobileComposeMail tSubject, , , , tBody, tAttachment --> SUCCESS!!!
the attachment is shown in the email composer but is not delivered (as expected according to this thread).put specialFolderPath("documents")...
When I use:
The file can't be found on the "external documents" and of course is neither shown nor delivered...put specialFolderPath("external documents")...
Note 1: Write External Storage is set on the standalone settings.
Note 2: I'm using LC 8.1.10 (because 9.02 gives me a black screen on my device) an Android 5.1
Note 3: I've tried "Prefer External Storage" in the Install Location settings as suggested by Jacque in another thread but made no difference
What am I doing wrong? Thanks