RE: Open Windows
RE: Open Windows
- Subject: RE: Open Windows
- From: "Script2" <email@hidden>
- Date: Wed, 16 Jul 2008 08:28:19 -0400
- Importance: Normal
Thanks Stock, close every document works (less coding) and so does the
repeat loop.
Any idea why at times I have so many windows left open. I have only 11
scripts running off this computer. Is it possible the scripts would clash
with each other and stop processing? Each script has it's own hotfolder to
process from.
Ruby
-----Original Message-----
From: applescript-users-bounces+script2=email@hidden
[mailto:applescript-users-bounces+script2=email@hidden]
On Behalf Of Stockly, Ed
Sent: Tuesday, July 15, 2008 5:28 PM
To: email@hidden
Subject: Re: Open Windows
> I could have a script which will check for open windows by applications.
> Your script for TextEdit and AppleWorks worked. Thanks.
>
> Hope someone will be able to help with Illustrator.
Here's how I would do it with illustrator...
tell application "Adobe Illustrator"
close every document saving no
end tell
The "Close" command is usually a pretty simple command and is included in
nearly every scriptable application's dictionary. Usually as part of the
required suite.
In some cases you'll need to send the command to windows, in most you'll
need to send them to documents.
In applications where "every" doesn't work, you could use a repeat loop.
Check the application's dictionary if that doesn't work.
HTH,
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
tern.com
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden