Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created April 28, 2020 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sciss/7c4e13d0b454bf8445cc495ca4e68c31 to your computer and use it in GitHub Desktop.
Save Sciss/7c4e13d0b454bf8445cc495ca4e68c31 to your computer and use it in GitHub Desktop.
val inSq = (userHome / "Downloads" / "rb").children(_.extL == "jpg")
def run(): Unit =
inSq.foreach { in =>
val out = in.replaceExt("pdf")
require (!out.exists())
import scala.sys.process._
val code: Int = Seq("convert", in.path, out.path).!
require (code == 0)
}
run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment