Put AppleScript line continuations back, ensure foundTab is set to something and use action instead of sAction where appropriate