Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes for when there are spaces in directory

  • Loading branch information...
commit 4b27bf9202d496ad361a9af42ea89a41afafe108 1 parent 820c0c8
Greg Allen authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/displays.applescript
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.