Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help with a script, please!

Featured Replies

  • Newbies

Hello. I'm an absolute newbie to scriptwriting but I need to fix one problem with a database.

It's a search db for a sound effects library.

when one finds what he wants in it and clicks on the track he found the track is being played in media player. The problem is that it only plays

.wav files. I need to make it play .mp3 as well.

So I found this script in my .fm7 file (it's OPEN URL category in Edit Script window);)

GetAsText ( Hollywood_Edge_SFX_Win::Path to soundfiles ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Set Code ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Disc ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Disc ) & "-" & GetAsText ( Hollywood_Edge_SFX_Win::Track ) & ".wav"

Is it possible to edit it so that it would play .mp3 as well as .wav?

Thanks very much in advance.

Eugene.

Edited by Guest

I'm not 100% sure, but, have you tried changing the last ".wav" to ".mp3?"

  • Author
  • Newbies

Yes, I have. But in that case it only plays .mp3. I need to be able to play both .wav and .mp3 file types.

I think some line has to be added to the script but I have no idea what it should be. Please help someone!

Thanks.

Edited by Guest

If you know the file is an mp3 or wav, just use 2 scripts or a if in one script. One for mp3, one for wav.

Shawn

  • Author
  • Newbies

Thanks for the tip, Shawn!

You see, the problem is that I've no idea how to do scripts, really. I tried duplicating it and changed .wav to .mp3 in the clone script but it didn't work. I'll try your advice of course but I'm not sure I'll do it right. I need an example, please! If someone could edit the script I posted that'd be awesome.

Cheers.

PS. there are some unwanted spaces appeared in the script after I posted it to the forum like here: P ath to soundfiles. There should't be any spaces.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.