Permalink
Browse files

fixes for when there are spaces in directory

  • Loading branch information...
1 parent 820c0c8 commit 4b27bf9202d496ad361a9af42ea89a41afafe108 @jgallen23 committed Dec 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/displays.applescript
View
@@ -2,9 +2,9 @@
on getScreens()
set tmp to do shell script "PWD"
set myPath to POSIX path of (path to me) as string
- set dirname to (do shell script "dirname " & myPath) as string
+ set dirname to (do shell script "dirname \"" & myPath & "\"") as string
- set scrString to do shell script dirname & "/screens"
+ set scrString to do shell script "\"" & dirname & "/screens\""
set scrRes to explode(",", scrString)
return scrRes

0 comments on commit 4b27bf9

Please sign in to comment.