Skip to content

Commit

Permalink
Fix newline typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
Frak AlNuaimy committed Nov 20, 2018
1 parent 4fed19f commit c235ba7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tools/addnote.5s.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

Expand Down

0 comments on commit c235ba7

Please sign in to comment.