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: 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