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


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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")

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.