Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Load multiple AppleScript dictionaries in Script Editor' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Load multiple AppleScript dictionaries in Script Editor
Authored by: rusto on Mar 05, '03 10:54:00AM
The second link has a post with this delightful script that will present a dialog box with all running apps, command-click on the ones you want to opent the dictionaries of (with acknowledgements to the authors):
tell application "Finder" 
    set {theFiles, theNames} to {file, name} of application processes 
    set eligibleNames to {} 
    repeat with i from 1 to (count theFiles) 
       try 
          if has scripting terminology of item i of theFiles then 
             set the end of eligibleNames to item i of theNames 
          end if 
       on error -- just skip anything that errors 
       end try 
    end repeat 
    activate 
    set chosenNames to (choose from list eligibleNames with prompt  
       "Select the currently running application(s) whose " &  
       "dictionaries you wish to open:" default items {"Finder"} with multiple selections allowed) 
    if the result is false then return 
    repeat with i from 1 to (count chosenNames) 
       open (get application file of process (item i of chosenNames)) using application file id "ToyS" 
    end repeat 
 end tell 
 


[ Reply to This | # ]