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
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives:
http://lists.apple.com/archives/applescript-users
This email sent to email@hidden