diff --git a/Tools/addnote.5s.py b/Tools/addnote.5s.py index 02356a656..6568b299c 100755 --- a/Tools/addnote.5s.py +++ b/Tools/addnote.5s.py @@ -31,8 +31,7 @@ def run_script2(script): if(len(sys.argv) >= 2): if (sys.argv[1] == "-n"): - cmd = "osascript -e \'set theString to text returned of (display dialog \"Please Enter The Note To Add \" with icon note default answer \"\n\n\n\" buttons {\"OK\",\"Cancel\"} -default button 1) \'" + cmd = "osascript -e \'set theString to text returned of (display dialog \"Please Enter The Note To Add \" with icon note default answer \"\n\n\n\" buttons {\"OK\",\"Cancel\"} default button 1) \'" note = run_script(cmd) if len(note) is 0: sys.exit(1) @@ -43,8 +42,7 @@ def run_script2(script): else: header = note body = "" - cmd2 = "osascript -e 'tell application \"Notes\" \n tell account \"iCloud\" \n make new note at folder \"Notes\" with properties {name:\"%s\", body:\"%s\"} \n end tell \n end -tell'" % (header, body) + cmd2 = "osascript -e 'tell application \"Notes\" \n tell account \"iCloud\" \n make new note at folder \"Notes\" with properties {name:\"%s\", body:\"%s\"} \n end tell \n end tell'" % (header, body) run_script2(cmd2) sys.exit(1)