When I try to run the following script in my computer I get an error:
tell application "Safari"
set myname to name of window 1
display dialog myname as string
end tell
I get told that the variable myname is undefined.
Moreover, If I run the following one
tell application "Safari"
set myURL to URL of document 1
display dialog myURL as string
end tell
I have no problem whatsoever.
This happens in my computer, but not in my wife’s, both running Jaguar. Her computer has almost no extra software installed; whereas mine has tons. Thus I know there is probably a conflict . I do not know if the problem is specific to Safari (I suspect it isn’t).
Can anybody tell me if they have encoutered this symptom and if so have they been able to fix the problem?