Posted By

supermauerbros on 08/09/10


Tagged

Shell applescript script directory terminal Parent


Versions (?)

Run terminal/script/shell command in the script's parent folder


 / Published in: AppleScript
 

URL: http://macscripter.net/viewtopic.php?id=16755

  1. set dash_ to (ASCII character 45)
  2. set d to text item delimiters
  3. set text item delimiters to "/"
  4. set f to (POSIX path of (path to me))'s text 1 thru text item -3 & "/"
  5. set text item delimiters to d
  6. do shell script ("cd /" & quoted form of f & "; sass " & dash_ & dash_ & "watch style.scss:style.css")

Report this snippet  

You need to login to post a comment.