on my dual 450 running 10.4.7 it takes less than a second. i’ve got 512mb of ram, and am running FireFox, Terminal, TextEdit, and iTunes (oh, and i tried it w/ Safari running too–no difference).
HTH.
ps–the only change i made is below. wanted the answer, doncha know
tell application "System Events"
if exists process "Safari" then
set x to 1
else
set x to 0
end if
end tell
display dialog x
It may be that either System Events or Safari is busy doing (scripting or other) tasks.
Try calling another app via System Events to see if that helps or either (force-) quit System Events or Safari and launch it again.
Safari is generally busy when many pop-up of moving graphics are active.