I did something similar here without problems and @BLUEFROG commented on this so I would consider it safe.
So I don’t think changing extension hidden via Finder AppleScript would be a problem.
extension hidden