Skip navigation.
 
mlRe: Calling methods on other applications?
FROM : Ken Tozier
DATE : Sun Apr 03 12:45:16 2005

I played around with AppleScript a little and this script will get you
a list of all open documents for applications that respond to the
"documents" command. Resizing them will be a trickier as each app seems
to define width and height their own way and some apps don't allow
resizing. It might be a wash.

set docList to GetDocumentList()

on GetDocumentList()
   set resultList to {}
   tell application "Finder"
       set appList to name of application processes
   end tell
   
   repeat with anApp in appList
       try
           tell application anApp
               set docList to documents
               set resultList to resultList & docList
           end tell
       end try
   end repeat
   return resultList
end GetDocumentList

Enjoy,

Ken

Related mailsAuthorDate
mlCalling methods on other applications? Benjamin Blonder Apr 3, 00:55
mlRe: Calling methods on other applications? Finlay Dobbie Apr 3, 01:19
mlRe: Calling methods on other applications? Ondra Cada Apr 3, 01:40
mlRe: Calling methods on other applications? Finlay Dobbie Apr 3, 01:49
mlRe: Calling methods on other applications? Bill Cheeseman Apr 3, 02:00
mlRe: Calling methods on other applications? Olivier Lanctôt Apr 3, 07:02
mlRe: Calling methods on other applications? Conrad Carlen Apr 3, 07:18
mlRe: Calling methods on other applications? Ken Tozier Apr 3, 11:04
mlRe: Calling methods on other applications? Mike Hall Apr 3, 11:27
mlRe: Calling methods on other applications? Ondra Cada Apr 3, 11:54
mlRe: Calling methods on other applications? Ken Tozier Apr 3, 12:45