[AS] Getting some Finder windows properties under 10.4.6...
[AS] Getting some Finder windows properties under 10.4.6...
- Subject: [AS] Getting some Finder windows properties under 10.4.6...
- From: Emile Schwarz <email@hidden>
- Date: Thu, 20 Apr 2006 11:31:20 +0200
Hi all,
as a some minutes brain exercise, I wrote:
tell application "Finder"
-- get the number of open windows
set wCnt to count of window
-- get the name of open windows
set wNames to name of every window
-- get the kind of class for open windows
set wClass to class of every window
-- get the properties for open windows
set wProp to properties of every window
end tell
and I was foolishly thinking that I will get all Finder Open Windows...
Did I told you that I had the Get Info window and the "Présentation options"
window ?
[no ? sorry; now you know]
But, the things changes when I open the Finder Preferences Window (Finder Menu,
Preferences MenuItem)...
In that case, I get:
get class of every window
{window, window, preferences window, Finder window, Finder window, Finder
window, Finder window, Finder window, Finder window, Finder window, Finder
window, Finder window, Finder window, Finder window, Finder window}
Worst:
get id of every window
{35, 16, 37, 5, 18, 14, 4, 3, 6, 7, 9, 10, 11, 12, 13}
I get an error for window id: 35, 16, 37, but not 5:
return name of window 5 -- returns me the name of an actually open Finder folder...
The error message is something like (I get the same message for same for Window
16 and 37):
Unable to get the name of window 35
same kind of error with some other window properties: visible, position,
properties...
_______________________________________________
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