I just discovered something else ...
In Lion, I modified the code for "Script Bundle Tool" by adding ONE line ...
on createAppBundle(sourceRef, projectName, projectParams)
set tempRef to (path to temporary items) --********** from user domain)
tell application "Finder"
open window of tempRef -- added this line <<<<<<<<<<<
set objectRef to (POSIX path of tempRef) & projectName & ".app" as POSIX file
Then I ran SBT with itself as input to create a new build of SBT.
I ran SBT on a test script:
run 1 ... no errors (expected)
run 2 ... no errors (but expected one)
run 3 ... no errors (but expected one)
So, now it seems to be working correctly, but the window of the temporary items folder is opened on my desktop. A little inconvenient, but it works.
This changes the problem with the temporary items folder in Lion.
Why does it not work correctly unless its window is open?
Do other applications that use the temporary items folder have this problem, too?