tell application "System Events"
set scriptableApps to (name of application processes whose (has scripting terminology) is true)
end tell
set p to "Open Dictionary for..."
set theApps to (choose from list scriptableApps with prompt p with multiple selections allowed)
if theApps is false then -- user cancelled
return
end if
repeat with theApp in theApps
set theApp to theApp as string
set appPath to (path to application theApp)
tell application "AppleScript Editor"
open appPath
end tell
end repeat
For some reason this has stopped working at some point.
It fails when run from script menu, which I otherwise find to be a marvellous timesaver, although it works just fine if I run it from inside script editor. That makes debugging rather hard.
The symptom is that I can not choose from list. The list appears just fine, and contains the correct items, but for some reason I can make no selection. Just to repeat, this is only occurring when I run it from script menu.