Guest User

Untitled

a guest
Jul 5th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- evetaku maintainer vars --
  2. set episode_input_name to "[EveTaku] Inu x Boku SS - 02 (1280x720 x264 AAC)[4CBF5885].mkv"
  3. set episode_output_name to "[EveTaku] Inu x Boku SS - 02v2 (1280x720 x264 AAC)[454DBD7E].mkv"
  4. set patchfile_name to "[EveTaku] Inu x Boku SS - 02 (1280x720 x264 AAC) PATCH.xdelta"
  5.  
  6. -- script code --
  7. set episode_in_apple_path to choose file with prompt "Please open " & episode_input_name
  8. set episode_in_path to the quoted form of the POSIX path of episode_in_apple_path as string
  9. set episode_out_apple_path to choose file name default name episode_output_name with prompt "Choose episode destination:"
  10. set episode_out_path to the quoted form of the POSIX path of episode_out_apple_path as string
  11. set xdelta_apple_path to path to resource "xdelta3"
  12. set patch_apple_path to path to resource patchfile_name
  13. set xdelta_path to the quoted form of the POSIX path of xdelta_apple_path as string
  14. set patch_path to the quoted form of the POSIX path of patch_apple_path as string
  15. set script_code to xdelta_path & " -d -s " & episode_in_path & " " & patch_path & " " & episode_out_path as string
  16. do shell script script_code
Add Comment
Please, Sign In to add comment