Created
April 28, 2020 23:55
-
-
Save Sciss/7c4e13d0b454bf8445cc495ca4e68c31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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