does "put URL file" block Windows OS ?
Posted: Mon Nov 09, 2009 5:27 pm
Hi,
I use the following code to put multiple file content from the hard drive into a variable:
put the files into MyList
repeat with i=1 to the number of lines of MyList
if line i of MyList contains word 1 of fld"symbol2" then
put "file:"& line i of MyList into thisfile
put URL thisfile after BackData
end if
end repeat
The code works fine except that if a non-Rev program is simultaneously attempting to append to the source file while Rev is retrieving it, the original source file content is lost, and only the "newly appended" data is placed into the file by the non-Rev program. It's like the "put URL" Rev command blocks the OS append.
My assumption is that this a Windows issue. But, I don't have the ability to force the non-Rev program to change its timing of the append process.
Thanks in advance for any ideas on how to avoid the loss of data?
I use the following code to put multiple file content from the hard drive into a variable:
put the files into MyList
repeat with i=1 to the number of lines of MyList
if line i of MyList contains word 1 of fld"symbol2" then
put "file:"& line i of MyList into thisfile
put URL thisfile after BackData
end if
end repeat
The code works fine except that if a non-Rev program is simultaneously attempting to append to the source file while Rev is retrieving it, the original source file content is lost, and only the "newly appended" data is placed into the file by the non-Rev program. It's like the "put URL" Rev command blocks the OS append.
My assumption is that this a Windows issue. But, I don't have the ability to force the non-Rev program to change its timing of the append process.
Thanks in advance for any ideas on how to avoid the loss of data?