Lightroom window name

Hello!

Can anyone tell me how to get the name of a window in Lightroom?

After looking at all the tutorials on applescript, I thought it would be trivial to be able to retrieve the name of any window that’s active… but for some reason, I can’t seem to be able to retrieve it for any Lightroom windows.

Here’s my code:

activate application "Adobe Lightroom 3 Beta 2"

tell application "Adobe Lightroom 2"
	get name of front window
end tell

The results are:

tell application "Adobe Lightroom 3 Beta 2"
	activate
end tell
tell application "Adobe Lightroom 2"
	get name of window 1
		--> ""
end tell

the code works fine when I replace Adobe Lightroom 2 with some other application. Is lightroom doing something weird with it’s window names?

thanks!

Sam.

Could it be that the window just hasn’t got a name? If one develops an application it is his or her choice to either give a name to a window or not give a name to a window.

What do you get if you use System Events?

tell application "System Events"
	-- get the right process name
	get name of some process whose name contains "Lightroom"
	-- get window
	tell process result to get name of window 1
end tell

Hope it helps,
ief2