Code: Select all
put the filename of this stack into P
Delete the last item of P
Open file P & "/" & "TimeSeq" & field "Subject" for write
etc.
Code: Select all
Open file P & "/DataFiles/" & "TimeSeq" & field "Subject" for write
Similarly, I'm creating png files from images with:
Code: Select all
put (item 1 to -2 of the effective filename of this stack) & "/activity1-snapshots" & field "Subject" into tSnapshotPath
create folder tSnapshotPath
Code: Select all
then export image "ImageDrawing" of card "Activity1" to URL ("binfile:"&tSnapshotPath&"/" & the seconds & ".png") as PNG
Is there a way to alter the file paths to produce files outside the App? They also need to work in the PC standalone. Separate folders would be good there too for convenient access.
(Which of these two ways of creating the file path is preferred? they seem to work equally well; the second one is more efficient.)