The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Activate broken in 92632 (http://forums.omnigroup.com/showthread.php?t=5141)

curt.clifton 2007-10-11 06:05 AM

Activate broken in 92632
 
The Applescipt activate command is broken in build 92632.

The code:
[CODE]
tell application "OmniFocus" to activate
[/CODE]

yields:
[CODE]
OmniFocus got an error: Some parameter wasn't understood.
[/CODE]

RobTrew 2007-10-11 12:58 PM

Yes, this has, inter alia, broken the iGTD importer.

curt.clifton 2007-10-11 03:14 PM

And my OmniOutliner exporters. Thankfully my Mail script still works, so my inbox isn't filling up with frantic emails from users. (Which, ironically, I wouldn't be able to create actions for. :-)

Tim Wood 2007-10-11 06:20 PM

'activate' is working fine for me (and it is something I specifically tested while making the changes to QE). It was hitting this problem for Ken until he restarted Script Editor & OmniFocus, so maybe there is a need to restart to get the sdef reloaded.

curt.clifton 2007-10-12 02:41 PM

Rob,

Activate started working for me somewhat mysteriously. (I've been troubleshooting this with Tim off-forum.) One thing that was odd in one of my scripts was that I had an activate inside a 'tell document'. Pulling that out to the 'tell application' level work fixed that script, though it doesn't explain the oddness from my original post.

Craig 2007-10-12 04:39 PM

A script with an "activate" command for me was working when run from Script Editor, but it was causing my Automator routine to fail when run from within it. I'll try extracting it from the "tell" block as Curt described...

Tim Wood 2007-10-14 05:16 PM

This should be working inside window and document blocks now. Additionally, activating a document will bring its front window in front of all other normal windows and activating a specific window will bring that window front.

I'm still not sure why Cocoa wasn't percolating this event up to the app. Anyway, this will work in window/document contexts now (though it might fail in other contexts that don't explicitly handle activate).

scb 2007-10-18 02:13 PM

I am able to activate OmniFocus from Script Editor, but I have a script assigned to a hot key via Keyboard Maestro, and in that script "activate" no longer works, nor do any other OF commands.

I am using OF 93011.

Craig 2007-10-18 02:41 PM

[QUOTE=scb;23089]I am able to activate OmniFocus from Script Editor, but I have a script assigned to a hot key via Keyboard Maestro, and in that script "activate" no longer works, nor do any other OF commands.

I am using OF 93011.[/QUOTE]

Yes, my Automator problem described above persists in that same build.

curt.clifton 2007-10-18 04:54 PM

I had to "re-compile" my scripts by editing them. You may try opening the old script in ScriptEditor, copying the full text, and pasting it into a new script window. There's something funky there with old scripts, but I can't reproduce it.


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

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