Can't get example beatlets to work

Willem van der Marel's Avatar

Willem van der Marel

05 Jan, 2021 03:02 PM

Hi there.

I've been looking to export some data from my library and thought I could do it with one of the examples shown on the website. I have copied the contents of the library batch action (write data to log, copy it, process it further)

I have copied the example as shown on https://www.beatunes.com/en/beatlet-librarybatchaction.html#javascriptlibrarybatchaction to a file, name the file PrintEachNameInLibrary.js and saved it in the plug-ins directory. But somehow that's where I get stuck. I don't see the plugin under the available plugins in the preferences and can't find a menu item either. Am I missing something? Any help would be much appreciated.

Kind regards
Willem
* beaTunes: 5.2.14-SNAPSHOT
* JVM: OpenJDK 64-Bit Server VM
* Version: 11.0.7+10-LTS
* Vendor: BellSoft
* OS: Mac OS X 10.15.7, x86_64
* Library: FileSystem
* Memory: 92m - 1664m
* Registered as: Willem van der Marel

  1. Support Staff 1 Posted by hendrik on 05 Jan, 2021 07:23 PM

    hendrik's Avatar

    Hi Willem,

    saved it in the plug-ins directory.

    What's the full path of the plugin directory you saved it in? Please also see this article.

    For good measure, please also upload your logs via the app's Help menu.

    Thanks,

    -hendrik

  2. 2 Posted by Willem van der ... on 07 Jan, 2021 03:25 PM

    Willem van der Marel's Avatar

    Hi Hendrik,

    thanks for your swift reply: I saved the file to the following path:
    /Users/wvdmarel/Library/Application
    Support/beaTunes/Plug-Ins (on one accpo

    The logfiles are in the attached Zip file.

    Kind regards
    Willem

  3. Support Staff 3 Posted by hendrik on 07 Jan, 2021 08:39 PM

    hendrik's Avatar

    Thanks for the logs, Willem.

    It looks like starting with v5.2 a necessary module for JavaScript was not included in the distribution and nobody noticed. :-/

    Sorry about that.

    Could you please download and install the latest dev snapshot for Mac? It should at least try to load your beaTlet.

    Here's the link: https://www.beatunes.com/download/beaTunes-5-2-19-SNAPSHOT.dmg

    If it still does not work with that build, please upload your logs again. You might also want to look at them yourself. Any errors during loading a beaTlet will be logged there.

    -hendrik

  4. 4 Posted by Willem van der ... on 08 Jan, 2021 03:43 PM

    Willem van der Marel's Avatar

    Downloaded the snapshot and it's working. Now comes the heavy part: coding what I want.... Thanks for the support!

  5. Support Staff 5 Posted by hendrik on 08 Jan, 2021 07:58 PM

    hendrik's Avatar

    Now comes the heavy part: coding what I want....

    Let me know, if you have any questions. I am happy to help (not with JavaScript, but with the API).

  6. Support Staff 6 Posted by hendrik on 28 Jan, 2021 02:03 PM

    hendrik's Avatar

    Hey Willem,

    I was just wondering... did you make any progress with your JavaScript beaTlet project? Anything I can help with?

    Cheers,

    -hendrik

  7. 7 Posted by Willem van der ... on 28 Jan, 2021 04:29 PM

    Willem van der Marel's Avatar

    Hi Hendrik,

    thanks for reaching out. Yeah, I got it working. I needed a script for the
    following:

    I DJ with Vinyl a lot, and wanted my 7" Singles labelled with BPM and Key
    Information. Beatunes does the hard work regarding analyses, but then I
    need something to send to my label printer. The exports that are already
    built in dont really fit my workflow or need a lot of manual work to get it
    in a format that my labelprinter understands.

    My workflow now sort of looks like this:

     - In the Album field I enter the Title of the Track on side A for both
    sides of the Single.
    - As tracknumber I use either 1 or 2
    In the export:
    - I gather all album titles, remove the duplicates and store them in an
    array.
    - I loop over this array to find Track 1 and Track 2.
    - Store that in a new array and construct an output string from that
    - write it to a CSV file that can be read by my labelwriter software.

    Works like a charm.

    The only thing I would like to get rid of is the popup/Question "Would you
    like to export relative paths (or something alike, behind a different
    computer at the moment).
    Is there a way to suppress this message? If not, I can live with it

    Thanks again for reaching out!
    regards
    Willem

  8. Support Staff 8 Posted by hendrik on 28 Jan, 2021 08:40 PM

    hendrik's Avatar

    Nice! :-)
    Glad you got it to work.

    The only thing I would like to get rid of is the popup/Question "Would you like to export relative paths (or something alike, behind a different
    computer at the moment).
    Is there a way to suppress this message? If not, I can live with it

    Since you are using a playlistexporter, there is currently no way around that. Sorry.

    -hendrik

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac