Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2016 10:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
-- 現在開いているMaxファイルのフルパスゲット
baseFilePath = maxFilePath+maxFileName
-- 今回は9ファイル処理。001 - 009。それ以上は別途対応が必要なり
for i=1 to 9 do(
-- Substring 関数え取得したパスを編集。拡張子前の一文字をiに置き換え
filePath = ((Substring baseFilePath 1 (baseFilePath.count-5)) + (i as String)+".max")
LoadMaxFile filePath
-- 個々に処理内容を書きます
Delete (for o in objects where classOf o == Text collect o)
SaveMaxFile filePath
-- ベースファイルを再度開く
loadMaxFile baseFilePath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment