Created
March 31, 2022 03:49
-
-
Save UskeS/defa6bbaf491ca7dc70edfe393db8c5d to your computer and use it in GitHub Desktop.
[JXA][Automator] 選択したmm単位表記テキストをinch単位に変換して置換する
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
function run(input, parameters) { | |
var input = parseFloat(input[0]); | |
return (Math.round(input * 1000 / 254) / 100) + ""; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment