PDA

View Full Version : How to "Clean-Up" (Command-K) in applescript


umop
2008-02-02, 02:59 PM
Title says it all. I haven't been able to find this in the dictionary. I'd like this to run after my command. Any help?

Thanks,
Eric

RobTrew
2008-02-02, 03:09 PM
tell application "OmniFocus"
compact front document
end tell

umop
2008-02-02, 06:23 PM
Aha -- I was doing it wrong.

tell application "OmniFocus" to tell front document
compact
(* Should have been *)
compact it
end tell

Thanks!
Eric