How to Open File Dialog in Groovy - Code Snippet

How to perform 'Open File Dialog' in Groovy.

example.groovy
// Task: Open File Dialog
// Language: Groovy

def open_file_dialog() {
    // Implementation for Open File Dialog
    def result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Open File Dialog
    println("Done");
}
AdSense Slot