initial commit
This commit is contained in:
commit
c064d739d1
86
Nathalie.app/Contents/Info.plist
Normal file
86
Nathalie.app/Contents/Info.plist
Normal file
@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>AMIsApplet</key>
|
||||
<true/>
|
||||
<key>AMStayOpen</key>
|
||||
<false/>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>13A563a</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>*</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Automator workflow file</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>****</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>Application Stub</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AutomatorApplet</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.automator.Nathalie</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Nathalie</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.2</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array/>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>381</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>5A11344p</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>GM</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>13A563a</string>
|
||||
<key>DTSDKName</key>
|
||||
<string></string>
|
||||
<key>DTXcode</key>
|
||||
<string>0500</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>5A11344p</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.5</string>
|
||||
<key>LSMinimumSystemVersionByArchitecture</key>
|
||||
<dict>
|
||||
<key>x86_64</key>
|
||||
<string>10.6</string>
|
||||
</dict>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
<key>NSAppleScriptEnabled</key>
|
||||
<string>YES</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>ApplicationStub</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
<key>NSServices</key>
|
||||
<array/>
|
||||
<key>UTExportedTypeDeclarations</key>
|
||||
<array/>
|
||||
<key>UTImportedTypeDeclarations</key>
|
||||
<array/>
|
||||
</dict>
|
||||
</plist>
|
BIN
Nathalie.app/Contents/MacOS/Application Stub
Executable file
BIN
Nathalie.app/Contents/MacOS/Application Stub
Executable file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/AutomatorApplet.icns
Normal file
BIN
Nathalie.app/Contents/Resources/AutomatorApplet.icns
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/Dutch.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/Dutch.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/English.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/English.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/French.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/French.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/German.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/German.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/Italian.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/Italian.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/Japanese.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/Japanese.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/Spanish.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/Spanish.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/ar.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/ar.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/ca.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/ca.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/cs.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/cs.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/da.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/da.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/el.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/el.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/fi.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/fi.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/he.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/he.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/hr.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/hr.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/hu.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/hu.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/id.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/id.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/ko.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/ko.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/ms.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/ms.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/no.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/no.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/pl.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/pl.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/pt.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/pt.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/pt_PT.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/pt_PT.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/ro.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/ro.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/ru.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/ru.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/sk.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/sk.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/sv.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/sv.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/th.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/th.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/tr.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/tr.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/uk.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/uk.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/vi.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/vi.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/zh_CN.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/zh_CN.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
BIN
Nathalie.app/Contents/Resources/zh_TW.lproj/ApplicationStub.nib
generated
Normal file
BIN
Nathalie.app/Contents/Resources/zh_TW.lproj/ApplicationStub.nib
generated
Normal file
Binary file not shown.
193
Nathalie.app/Contents/document.wflow
Normal file
193
Nathalie.app/Contents/document.wflow
Normal file
@ -0,0 +1,193 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>AMApplicationBuild</key>
|
||||
<string>381</string>
|
||||
<key>AMApplicationVersion</key>
|
||||
<string>2.4</string>
|
||||
<key>AMDocumentVersion</key>
|
||||
<string>2</string>
|
||||
<key>actions</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>action</key>
|
||||
<dict>
|
||||
<key>AMAccepts</key>
|
||||
<dict>
|
||||
<key>Container</key>
|
||||
<string>List</string>
|
||||
<key>Optional</key>
|
||||
<true/>
|
||||
<key>Types</key>
|
||||
<array>
|
||||
<string>com.apple.cocoa.string</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>AMActionVersion</key>
|
||||
<string>2.0.3</string>
|
||||
<key>AMApplication</key>
|
||||
<array>
|
||||
<string>Automator</string>
|
||||
</array>
|
||||
<key>AMParameterProperties</key>
|
||||
<dict>
|
||||
<key>COMMAND_STRING</key>
|
||||
<dict/>
|
||||
<key>CheckedForUserDefaultShell</key>
|
||||
<dict/>
|
||||
<key>inputMethod</key>
|
||||
<dict/>
|
||||
<key>shell</key>
|
||||
<dict/>
|
||||
<key>source</key>
|
||||
<dict/>
|
||||
</dict>
|
||||
<key>AMProvides</key>
|
||||
<dict>
|
||||
<key>Container</key>
|
||||
<string>List</string>
|
||||
<key>Types</key>
|
||||
<array>
|
||||
<string>com.apple.cocoa.string</string>
|
||||
</array>
|
||||
</dict>
|
||||
<key>ActionBundlePath</key>
|
||||
<string>/System/Library/Automator/Run Shell Script.action</string>
|
||||
<key>ActionName</key>
|
||||
<string>Run Shell Script</string>
|
||||
<key>ActionParameters</key>
|
||||
<dict>
|
||||
<key>COMMAND_STRING</key>
|
||||
<string>open $HOME/nathalie/nathalie</string>
|
||||
<key>CheckedForUserDefaultShell</key>
|
||||
<true/>
|
||||
<key>inputMethod</key>
|
||||
<integer>0</integer>
|
||||
<key>shell</key>
|
||||
<string>/bin/bash</string>
|
||||
<key>source</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
<key>BundleIdentifier</key>
|
||||
<string>com.apple.RunShellScript</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2.0.3</string>
|
||||
<key>CanShowSelectedItemsWhenRun</key>
|
||||
<false/>
|
||||
<key>CanShowWhenRun</key>
|
||||
<true/>
|
||||
<key>Category</key>
|
||||
<array>
|
||||
<string>AMCategoryUtilities</string>
|
||||
</array>
|
||||
<key>Class Name</key>
|
||||
<string>RunShellScriptAction</string>
|
||||
<key>InputUUID</key>
|
||||
<string>CEAF2061-F0B3-4D01-822E-39153737F19B</string>
|
||||
<key>Keywords</key>
|
||||
<array>
|
||||
<string>Shell</string>
|
||||
<string>Script</string>
|
||||
<string>Command</string>
|
||||
<string>Run</string>
|
||||
<string>Unix</string>
|
||||
</array>
|
||||
<key>OutputUUID</key>
|
||||
<string>A770DE09-8F07-4AB8-A83D-73BB7A0C529E</string>
|
||||
<key>ShowWhenRun</key>
|
||||
<false/>
|
||||
<key>UUID</key>
|
||||
<string>B04221B6-6C78-4112-B1FE-7BBDCEF4143B</string>
|
||||
<key>UnlocalizedApplications</key>
|
||||
<array>
|
||||
<string>Automator</string>
|
||||
</array>
|
||||
<key>arguments</key>
|
||||
<dict>
|
||||
<key>0</key>
|
||||
<dict>
|
||||
<key>default value</key>
|
||||
<integer>0</integer>
|
||||
<key>name</key>
|
||||
<string>inputMethod</string>
|
||||
<key>required</key>
|
||||
<string>0</string>
|
||||
<key>type</key>
|
||||
<string>0</string>
|
||||
<key>uuid</key>
|
||||
<string>0</string>
|
||||
</dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>default value</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>source</string>
|
||||
<key>required</key>
|
||||
<string>0</string>
|
||||
<key>type</key>
|
||||
<string>0</string>
|
||||
<key>uuid</key>
|
||||
<string>1</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>default value</key>
|
||||
<false/>
|
||||
<key>name</key>
|
||||
<string>CheckedForUserDefaultShell</string>
|
||||
<key>required</key>
|
||||
<string>0</string>
|
||||
<key>type</key>
|
||||
<string>0</string>
|
||||
<key>uuid</key>
|
||||
<string>2</string>
|
||||
</dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>default value</key>
|
||||
<string></string>
|
||||
<key>name</key>
|
||||
<string>COMMAND_STRING</string>
|
||||
<key>required</key>
|
||||
<string>0</string>
|
||||
<key>type</key>
|
||||
<string>0</string>
|
||||
<key>uuid</key>
|
||||
<string>3</string>
|
||||
</dict>
|
||||
<key>4</key>
|
||||
<dict>
|
||||
<key>default value</key>
|
||||
<string>/bin/sh</string>
|
||||
<key>name</key>
|
||||
<string>shell</string>
|
||||
<key>required</key>
|
||||
<string>0</string>
|
||||
<key>type</key>
|
||||
<string>0</string>
|
||||
<key>uuid</key>
|
||||
<string>4</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>isViewVisible</key>
|
||||
<true/>
|
||||
<key>location</key>
|
||||
<string>309.500000:397.000000</string>
|
||||
<key>nibPath</key>
|
||||
<string>/System/Library/Automator/Run Shell Script.action/Contents/Resources/English.lproj/main.nib</string>
|
||||
</dict>
|
||||
<key>isViewVisible</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</array>
|
||||
<key>connectors</key>
|
||||
<dict/>
|
||||
<key>workflowMetaData</key>
|
||||
<dict>
|
||||
<key>workflowTypeIdentifier</key>
|
||||
<string>com.apple.Automator.application</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
0
Nathalie.app/Icon
Normal file
0
Nathalie.app/Icon
Normal file
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Nathalie
|
||||
|
||||
a TTS 'keep on tempo app'
|
||||
|
||||
on OSX copy repo to $HOME/nathalie and put .app where you want
|
1
cronscript
Normal file
1
cronscript
Normal file
@ -0,0 +1 @@
|
||||
*/1 * * * * python $HOME/nathalie/nathalie.py
|
27
nathalie
Executable file
27
nathalie
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
cd $(dirname $0)
|
||||
|
||||
cat << "EOF"
|
||||
_ _ _ _ _ _
|
||||
| \ | | | | | | | (_)
|
||||
| \| | __ _| |_| |__ __ _| |_ ___
|
||||
| . ` |/ _` | __| '_ \ / _` | | |/ _ \
|
||||
| |\ | (_| | |_| | | | (_| | | | __/
|
||||
\_| \_/\__,_|\__|_| |_|\__,_|_|_|\___|
|
||||
|
||||
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
crontab -l 2>/dev/null | grep nathalie 2>&1 >/dev/null
|
||||
present=$?
|
||||
|
||||
if [ $present -ne 0 ]; then
|
||||
crontab cronscript
|
||||
echo Starting ....
|
||||
else
|
||||
crontab -r
|
||||
echo Stop ....
|
||||
|
||||
fi
|
11
nathalie.py
Normal file
11
nathalie.py
Normal file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/python
|
||||
import os
|
||||
import random
|
||||
|
||||
def switch_nathalie():
|
||||
say = ['Tout va bien', 'il est $( date +"%H heure %M")', None]
|
||||
return say[random.randint(0,len(say)-1)]
|
||||
|
||||
text = switch_nathalie()
|
||||
if text:
|
||||
os.popen('say -v thomas nathalie .... %s'%text)
|
Loading…
Reference in New Issue
Block a user