Hi boqsc,
do you know the name of the file?
If yes, you can do something like this (out of my head!):
Code: Select all
...
## Get the name of the folder the standalone is in:
put the effective filename of this stack into tFile
set itemdel to "/"
## Create path to your text file:
put "the_name_of_the_textfile.txt" into item -1 of tFile
## Check if file is present, if yes, put its content into a variable
## and do your processing. Then write the file back to disk.
if there is a file tFile then
put url("file:" & tFile) into tVarWithFile
## Do what must be done with the content...
## Do you know how to carry on?
## Drop a line if not!
## ...
## finally write the content back to file
put tVarWithFile into url("file:" & tFile)
end if...
BEWARE!
Not all users have write permissions in the OS application folder,
in case your standalone has been installed/copied to that folder!
Best
Klaus