The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniOutliner > OmniOutliner 3 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
OO Pro 4.0? Thread Tools Search this Thread Display Modes
Page-specific column customization would be great. I often want to have a single document that has pages with different columns; currently this is not possible in OO.
 
Quote:
Originally Posted by henri View Post
Thank you, gcrump! This is fantastic.

Here it is, edited to do what I want:


Thanks again, gcrump -- I would not have known how to get started, but what you sent me allowed me to get to what I needed with a little trial and error. Whew!
[/FONT][/FONT]
Henri,

Glad I could get you pointed in the right direction. I use this to create filters by who the task is assigned to. Now another thing you can do is use the unique ID of the row and create a "switch" script. That way you can go back to the original row if you just need to change the date or something. That would look like this:

set theRow to first selected row
set theID to the value of cell "OrgID" of theRow
if theID > "" then
set theTwinRow to the first row whose id is theID
set thelevel to the level of theTwinRow
if thelevel = 3 then
hoist ancestor -2 of theTwinRow
else
hoist the parent of theTwinRow
end if
select theTwinRow
End if

This assumes that you have stored the ID of the row in a column called OrgID when you create your Today! Filter.

George
 
Unfortunately, the script I posted does not work in the morning.

:(

I'm pretty sure that the problem is that "current date" yields a date and a time, and in the morning, this is BEFORE the items that show the same date.

Is there a way to get tomorrow's date? You can't add 1 to "current date" because it's not a number.

I need some sort of AppleScript reference.
 
Quote:
Originally Posted by henri View Post
Unfortunately, the script I posted does not work in the morning.

:(

I'm pretty sure that the problem is that "current date" yields a date and a time, and in the morning, this is BEFORE the items that show the same date.
I fixed this -- here's the script:

tell application "OmniOutliner Professional"
tell front document
set TodaysDate to current date
set time of TodaysDate to 86399 -- one second before midnight
set sorting postponed to true
repeat with theRow in every row
if (count children of theRow) = 0 then
set ThisSection to (first row whose topic starts with "Today!")
set theTopic to value of cell "Topic" of theRow
set theDate to value of cell "Date" of theRow
if TodaysDate ≥ theDate then
set theNewRow to make new row at end of rows of (first child whose topic begins with "Today!") with properties {topic:theTopic}
set value of cell "Date" of theNewRow to theDate
set value of cell "Priority" of theNewRow to 1
end if
end if
end repeat
set sorting postponed to false
end tell
end tell

Unfortunately, now it is giving me the qualifying rows three times! I have no idea why.

Also the variable ThisSection doesn't seem to do anything.
 
OK, I finally got it. Here it is:

tell application "OmniOutliner Professional"
tell front document
set TodaysDate to current date
set time of TodaysDate to 86399 -- one second before midnight
set sorting postponed to true
repeat with theRow in every row
if (count children of theRow) = 0 then
set theTopic to value of cell "Topic" of theRow
set theDate to value of cell "Date" of theRow
if TodaysDate > theDate then
set time of theDate to 86399
set theNewRow to make new row at end of rows of (first child whose topic begins with "Today!") with properties {topic:theTopic}
set value of cell "Date" of theNewRow to theDate
end if
end if
end repeat
set sorting postponed to false
end tell
end tell
 
Quote:
Originally Posted by henri View Post
OK, I finally got it. Here it is:
Well don Henri. Another way to do it is to convert the date to a string. I do this to color my Today items to a particular style:

if theDuedate is not missing value then

set todays_date_string to date string of (current date)
set theDuedate_string to date string of (theDuedate)
if todays_date_string = theDuedate_string then

set myStyle to named style ("DueToday")
add myStyle to named styles of style of theRow
end if

end if
 
Quote:
Originally Posted by gcrump View Post
Another way to do it is to convert the date to a string.
Good idea!
 
Back on the features of 4.0 and the other Outliner's niche thread. I think as is mentioned in one of those is that many of us use OO as a database of sorts. I use it to manage all my projects, essentially a highly customized Omnifocus and I use it to track my budget.

So what I would like to see in 4.0 in not so much more features especially since it seems Omnigroup has to be careful not to tread on Omnifocus now, but broader expansion of Applescript support. For example as far as I can tell you can not script the sorting of a hoisted section of an outline.

Just a thought...
 
This has already been mentioned. I would like to create actions on one node to take me to another as in Omnigraffle. I'd also like to easily link from my Omnigraffle documents to nodes in OO and vice versa.
 
OK, Omnifocus 1.0 is out. Remember OmniOutliner? Anyone?
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -8. The time now is 01:50 AM.


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