Re: Calling methods on other applications?
Re: Calling methods on other applications?
- Subject: Re: Calling methods on other applications?
- From: Ken Tozier <email@hidden>
- Date: Sun, 3 Apr 2005 06:45:16 -0400
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden