Re: Running this script without the "Enable access for assistive devices" box checked
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: Andrew Oliver <email@hidden>
- Date: Mon, 23 May 2005 08:26:19 -0700
On 5/23/05 2:40 AM, "David Siberry" <email@hidden> 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?
That's your entire script?
There's nothing there that uses UI scripting, so it shouldn't require the
assistive devices support.
There's no other code in your script that might be causing the problem?
Andrew
:)
_______________________________________________
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