tell application "Finder"
delay 10
set selected_Item to selection
delay 10
display dialog "" & selected_Item
end tell
If I open, for example, the Applications folder and select any item then run the script "selected_Item" is empty. If I run the script again all is well.
If I then open, for example, the Utilities folder and select any item then run the script "selected_Item" is empty. If I run the script again all is well.
Neither 10 second delay helps.
This anomaly seems to have started with Lion.
Any ideas?
TIA,
Robert Poland - Fort Collins, CO