Created
June 3, 2010 03:49
-
-
Save osima/423421 to your computer and use it in GitHub Desktop.
InDesignのjsxで有効なパスへの変換
This file contains hidden or 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
class IndUtil { | |
// Windows専用 | |
// WindowsスタイルのファイルパスをExtendScriptで使える形式に変換して返す. | |
static String toIndPath( File filePath ){ | |
//def path = filePath.absolutePath | |
def path = filePath.canonicalPath | |
path.replaceAll('\\\\','/') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment