JosephShenton / blacktree-nocturne

Automatically exported from code.google.com/p/blacktree-nocturne
1 stars 0 forks source link

suggestion/request #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
set time to turn on and off nocturne automatically (mac mini doesn't have 
sensors, but I'd love it if it 
the screen went inverted from 7pm to 7am).

apologies for misplaced issue (yr forum is down)

Original issue reported on code.google.com by Ragon...@gmail.com on 14 Mar 2008 at 9:14

GoogleCodeExporter commented 8 years ago
This is a rather, how should I put this, hacked-together solution for this. 

First, create an applescript with the below contents (without [ and ]) and save 
it as something (I recommend "Nocturne activate/deactivate")
[
tell application "Nocturne"
    quit
end tell

on idle
    return 15
end idle

tell application "Nocturne"
    launch
end tell

tell application "Nocturne"
    launch
end tell
]

This script will:
a) If Nocturne is not running, launch Nocturne and activate night-mode
b) If Nocturne is running with night-mode active, quit Nocturne (which will 
also deactivate night-mode)
c) If Nocturne is running with night-mode inactive, it will start night-mode

Next, set an alarm in iCal that repeats every day at 7 PM that has an alarm 
that runs 0 minutes after the event, with the alarm being run 
script (then set the script as the one you saved above). 

Repeat this sane process in iCal for 7 AM

Then enjoy. 

(Don't ask me why this works, because to be honest, I really don't know. Just 
looking at it doesn't look like it would work right, but it 
seems to function)

Original comment by jacob...@gmail.com on 26 Apr 2008 at 9:27

GoogleCodeExporter commented 8 years ago

Original comment by papercr...@gmail.com on 1 Dec 2008 at 5:09

GoogleCodeExporter commented 8 years ago
There is a program called CronniX.  its hard to figure out, but what I did was 
set hour to 11, then everything else 
to *.  then for the command, I used "/usr/bin/open 
/Applications/Utilities/Nocturne.app" (I put Nocture into my 
utilities folder.

If you want to turn it off automaticly, use "killall Nocturne".

CronniX edits the Cron scripts which is responciable for maintanince of OS X

Original comment by traisja...@gmail.com on 1 Dec 2008 at 5:55