• 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: Running this script without the "Enable access for assistive devices" box checked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running this script without the "Enable access for assistive devices" box checked


  • Subject: Re: Running this script without the "Enable access for assistive devices" box checked
  • From: Simon Forster <email@hidden>
  • Date: Mon, 23 May 2005 11:22:50 +0100

Does this help:

tell application "Finder"
set listWindow to every window
repeat with thisWindow in listWindow
if (target of thisWindow as string) begins with "Mac OS X:" then close thisWindow
end repeat
end tell



Simon Forster _____________________________________________________ LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247 _____________________________________________________


On 23 May 2005, at 10:40, David Siberry wrote:

Hi, Im writing an apple script to close a window. the script im using is:

tell application "Finder"
    set theWindows to (get every Finder window)
    repeat with eachWindow in theWindows
        if (target of eachWindow as text) begins with "Mac OS X:" then
            close eachWindow
        end if
    end repeat
end tell

however I find if I have the "Enable access for assistive devices"
check box checked (located in System Preferences | Universal Access),
the script wont work.
Is there anyway I can run this script without checking the check box?




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Running this script without the "Enable access for assistive devices" box checked (From: David Siberry <email@hidden>)

  • Prev by Date: Re: Quark place image script woes
  • Next by Date: Print in postscript
  • Previous by thread: Running this script without the "Enable access for assistive devices" box checked
  • Next by thread: Re: Running this script without the "Enable access for assistive devices" box checked
  • Index(es):
    • Date
    • Thread