Jump to content
Server Maintenance This Week. ×

"ChooseFolder" hangs on Sciptmaster 5.3 / Catalina / FMPA18


This topic is 1514 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

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

Link to comment
Share on other sites

This topic is 1514 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.