• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Open Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Windows


  • Subject: Re: Open Windows
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 15 Jul 2008 14:27:56 -0700
  • Thread-topic: 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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • RE: Open Windows
      • From: "Script2" <email@hidden>
  • Prev by Date: q.qqq vil tale med dig!
  • Next by Date: q.qqq vil tale med dig!
  • Previous by thread: q.qqq vil tale med dig!
  • Next by thread: RE: Open Windows
  • Index(es):
    • Date
    • Thread