Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Apr 8, 2015
1 parent e92ceb4 commit 2146b0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/pocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ def main(_):

register_magic_arguments()

# get user input
user_input = WF.args[0]
# Get user input
user_input = ""
if len(WF.args):
user_input = WF.args[0]

if WF.update_available:
WF.add_item(
Expand Down
4 changes: 2 additions & 2 deletions src/pocket_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def get_browser_item(browser):
""" osascript -e 'tell application "/Applications/Google Chrome.app" to return title of active tab of front window' """).readline()
elif browser == 'Safari':
url = os.popen(
""" osascript -e 'tell application "Safari" to return URL of front document' """).readline()
""" osascript -e 'tell application "/Applications/Safari.app" to return URL of front document' """).readline()
title = os.popen(
""" osascript -e 'tell application "Safari" to return name of front document' """).readline()
""" osascript -e 'tell application "/Applications/Safari.app" to return name of front document' """).readline()
if url is None:
return None
return {
Expand Down
2 changes: 1 addition & 1 deletion src/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.4
v4.5

0 comments on commit 2146b0d

Please sign in to comment.