Newbies xenophon61 Posted March 2, 2020 Newbies Posted March 2, 2020 Hi, and greetings from Athens. I've upgraded my -free- Sciptmaster plugin to 5.3 (OS X Catalina, FMP18) and noticed that "ChooseFolder" results in a hard freeze / beachball. Version 5.1 is OK in this respect. BTW, gate keeper is disabled system-wide. Please note that my groovie functions have been installed by the "copy to clipboard" procedure. For example, this line installs "ChooseFolder": set variable $install_ChooseFolder = RegisterGroovy( "ChooseFolder( startingPath ; prompt )" ; "import javax.swing.JFileChooser;¶ ¶ JFileChooser chooser = new JFileChooser();¶ chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY );¶ //You can switch this to JFileChooser.FILES_ONLY or JFileChooser.FILES_AND_DIRECTORIES if you want the user to be able to pick files¶ ¶ if( startingPath != null ) chooser.setCurrentDirectory( new File(startingPath) );¶ if( prompt != null ) chooser.setDialogTitle( prompt );¶ ¶ if( chooser.showOpenDialog( null ) == JFileChooser.APPROVE_OPTION ) {¶ return chooser.getSelectedFile().getAbsolutePath();¶ } else return \"\";" ) Reverting to Scriptmaster 5.1 for now. Thanks in advance. Xen
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now