>I'm trying to construct a script that opens a member document of a
>project with its default application. The script below (credit to
>Michael Tsai) works great for a browser window, but falters with a
>project window when modified.
Try this, observing that 'selection' is always a list:
tell application "BBEdit"
if class of window 1 is disk browser window then
set _list to selection in window 1
else
set _list to {file of window 1}
end if
end tell
tell application "Finder"
activate
repeat with _item in _list
open _item
end repeat
end tell
JD