Hi Robert,
please use the CODE tags above (5th button from the left) after pasting your script.
That will keep the formatting and makes the script better readable_One possible issue might be this line:ALWAYS use parens whzen concatenating file and objenames, try this:Hint: You may want to save some typing by using
"/" instead of SLASH
and
CR instead of RETURN![Smile :-)]()
Best
Klaus
please use the CODE tags above (5th button from the left) after pasting your script.
That will keep the formatting and makes the script better readable_
CODE:
... if tAppExeVersionUpdateCheck > tAppExeVersionMusicRGTCheck then put tFolderMusicRGT & slash & tTextToCheck & " -- 1" & return into msg ------- delete file tFolderMusicRGT & slash & tTextToCheck put the result & " -- 2A" & return after msg ------ put the sysError & " -- 2B" & return after msg ------ put tFolderUpdate & slash & tTextUpdate into tFileToCopy put tFileToCopy & " -- 3" & return after msg ------- put tFolderMusicRGT & " -- 4" & return after msg ------ revCopyFile tFileToCopy, tFolderMusicRGT if the result is empty then ------ put "the result is empty -- 5A" & return after msg --- else ----- put the result & " -- 5B" & return after msg ------- end if ----- if the sysError is empty then ------ put "the sysError is empty -- 6A" & return after msg --- else ----- put the sysError & " -- 6B" & return after msg ------- end if set the thumbPosition of scrollbar "Progress" to 100 put "Replacing Mac App with " & quote & tTextUpdate & quote & " is Completed." & \ return & return after field "Status" else put "Mac App - " & quote & tTextUpdate & quote & " is the latest !" & return & \ return after field "Status" end if ...
CODE:
delete file tFolderMusicRGT & slash & tTextToCheck
CODE:
delete file (tFolderMusicRGT & slash & tTextToCheck)
"/" instead of SLASH
and
CR instead of RETURN

Best
Klaus
Statistics: Posted by Klaus — Mon Feb 03, 2025 8:14 pm