fixed the issue:
Problem codes:
set firstCommand to "cd " & quoted form of gameFolderPath
do shell script "osascript -e " & quoted form of ("tell application \"Terminal\" to do script \"" & firstCommand & "\””)
set extractionCommand to "python3 " & scriptPath & " -x " & aFile
do shell script "osascript -e " & quoted form of ("tell application \"Terminal\" to do script \"" & extractionCommand & "\" in front window")
Fix:
tell application "Terminal"
activate
do script "cd " & quoted form of gameFolderPath
end tell
tell application "Terminal"
do script "python3 " & quoted form of scriptPath & " -x " & quoted form of aFile in front window
end tell
Topic:
App & System Services
SubTopic:
Automation & Scripting
Tags: