The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Problem trying to get the perspective name of the front window (http://forums.omnigroup.com/showthread.php?t=21898)

jhncbrwn 2011-08-16 07:28 PM

Problem trying to get the perspective name of the front window
 
I'm trying to write a script for which I need the name of the current perspective in the front window.

When I execute the script below

[CODE]tell application "OmniFocus"
tell default document
get properties of front document window
end tell
end tell[/CODE]

The result is: Perspective name:[I]Missing vlue, [/I]

Is this a bug or am I doing something wrong?

Regards,

J.

whpalmer4 2011-08-16 11:42 PM

Looks like a bug to me. If you set the value, it switches perspectives (assuming you set it to a value that matches one of your perspectives).

RobTrew 2011-08-17 12:12 AM

[QUOTE=whpalmer4;100663]Looks like a bug to me.[/QUOTE]

I agree, and I notice from a comment [URL="http://forums.omnigroup.com/showthread.php?t=17894"]in this script[/URL], which resorts to work-arounds, that reading and clearing perspectives has been broken for a while, and probably needs a bit more bumping through [B]Help > Send Feedback[/B]

[COLOR="White"]--[/COLOR]


All times are GMT -8. The time now is 06:06 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.