At 02:22 -0800 3/11/08, you wrote:
>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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or
confirmed) problem with the software, please email to "[EMAIL PROTECTED]"
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---