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: "Gary (Lists)" <email@hidden>
- Date: Mon, 23 May 2005 07:07:28 -0400
"David Siberry" wrote:
> 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?
This is confusing, David.
You say the script _fails_ when you have the box _checked_.
Then you ask how to run it without checking the box...?
That Finder window closing script has nothing (that I see) to do with GUI
scripting.
This 'close every window' script works for me, with or without the GUI
feature enabled (as I would expect):
set allTargets to {}
tell application "Finder"
set theWindows to (get every Finder window)
repeat with eachWindow in theWindows
copy (get target of eachWindow) as text to end of allTargets
close eachWindow
end repeat
end tell
allTargets
--> (all windows close)
--> {"DRIVE1:", "DRIVE2:", "DRIVE3:"}
You also posted (about another script) the same confusing thing:
> 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?
As for the second script, I don't get any such 'Welcome to Mail' dialog so I
have no idea what that is.
If you mean that you want to do some GUI scripting without that feature
enabled, I think the answer is no. (Again, nothing to do with closing
Finder windows.)
I have found no need for any kind of GUI scripting but having that feature
enabled doesn't seem to interfere with any other Finder scripts I use. (But
who knows, I still have OSX training wheels on. ;)
--
Gary
_______________________________________________
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