Re: System Events Info
Re: System Events Info
- Subject: Re: System Events Info
- From: Mark Thomas <email@hidden>
- Date: Tue, 10 May 2005 16:44:59 +0100
- Organization: Coderus Ltd
Thanks, what I want to do is close a specific window in the finder. I have
tried
Tell application "System Events"
close window "Dev"
End tell
But then for an error NSReceiverEvaluationScriptErr: 4 :-(. "Dev" is the
name of the window in the finder which is of path "/Volumes/Dev".
Any idea's - I like the keystroke approach, but not sure how I get it to be
directed at a particular window.
Thanks
Mark.
>
> System Events!
>
> The easiest thing to do is probably to make sure that the window you
> want to close is frontmost and then:
>
> tell application "System Events"
> keystroke "w" using command down
> end
>
> HTH
>
> Simon Forster
> _____________________________________________________
> LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
> Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
> _____________________________________________________
>
>
_______________________________________________
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