Can I write an Applescript to tag audio files?

Can I write an AppleScript to tag audio files? I do not want to involve iTunes in the process; I just want to add tags to an audio file on the desktop (eventually in batch).
Perfect scenario:
I drag an MP3 file (or multiple MP3 files) over the AppleScript, and a dialog box appears which lets me enter fields like Name, Artist, Year, Album, Track Number (x of y), Genre, etc., and once I've filled them in and clicked OK, it goes and writes them into each of the files.
Without me having to drag them into iTunes to do it.

I would search http://darwinports.com/ for a termnial app that is able to edit id3-tags
Then perhaps a AppleScript-Studio Interface for it and there you go.

Similar Messages

  • I write a program to play audio file, it use sun.audio.*, but it can play

    i write a program to play audio file, it use sun.audio.*, but it can play ,can you tell me what error is it ?
    import sun.audio.*;
    import java.net.*;
    import java.io.*;
    import java.io.FileInputStream;
    public static void alertAudio(String fileName)
    try{
    InputStream in = new FileInputStream(fileName);
    AudioStream audio = new AudioStream(in);
    AudioPlayer.player.start(audio);
    catch(Exception e)
    System.out.println(e);
    public static void main (String argv[])
    String fileName = "test.au";
    alertAudio(fileName);
    System.out.println("close");

    help help me

  • Looking for OSX (1) or Third Party (2) Solution to tag Audio Files

    Hey all,
    I'm new here. I've signed up, because I'm looking for a way to Tag Audio Files. I've been doing Audio Diary over the years. Now instead of converting the Audio to Text, I'm looking for a way to identify Audio entries by adding Tags to them. I'm a little reluctant to use third party. you never now how long they survive. and tagging the files will be quite some work.
    so my question to you is: 1) Is there a way to tag and locate audio Files using the OS X (primary) or third Party (secondary?)
    thx
    Jazz
    ps: I know you can use the Command-I to add Spotlight Comments, but I've had some Issues that Spotlight sometimes does not locate the Files by the added Comment. further on I read about these problems in several Forums too.

    Hey Jazz. you can start by locating the files by doing a Find search - NOT Spotlight - and using the filetype. That will locate all the .mp3 or .ogg or whatever filetype they are and round them up for you.
    Once you do that, and you know how to quickly find them all, you can then get a script to batch process those files. You can use the Automator application to do that, so your next best bet would be to start dabbling with it, and see if there's any scripts available. (Im SURE there are.. there has to be..)
    I think you'll have success on the OSX Technologies threads.. the Automator and scripting stuff is there.

  • How can I write new objects to the existing file with already written objec

    Hi,
    I've got a problem in my app.
    Namely, my app stores data as objects written to the files. Everything is OK, when I write some data (objects of a class defined by me) to the file (by using writeObject method from ObjectOutputStream) and then I'm reading it sequencially by the corresponding readObject method (from ObjectInputStream).
    Problems start when I add new objects to the already existing file (to the end of this file). Then, when I'm trying to read newly written data, I get an exception:
    java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    Is there any method to avoid corrupting the stream? Maybe it is a silly problem, but I really can't cope with it! How can I write new objects to the existing file with already written objects?
    If anyone of you know something about this issue, please help!
    Jai

    Here is a piece of sample codes. You can save the bytes read from the object by invoking save(byte[] b), and load the last inserted object by invoking load.
    * Created on 2004-12-23
    package com.cpic.msgbus.monitor.util.cachequeue;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.RandomAccessFile;
    * @author elgs This is a very high performance implemention of Cache.
    public class StackCache implements Cache
        protected long             seed    = 0;
        protected RandomAccessFile raf;
        protected int              count;
        protected String           cacheDeviceName;
        protected Adapter          adapter;
        protected long             pointer = 0;
        protected File             f;
        public StackCache(String name) throws IOException
            cacheDeviceName = name;
            f = new File(Const.cacheHome + name);
            raf = new RandomAccessFile(f, "rw");
            if (raf.length() == 0)
                raf.writeLong(0L);
         * Whne the cache file is getting large in size and may there be fragments,
         * we should do a shrink.
        public synchronized void shrink() throws IOException
            int BUF = 8192;
            long pointer = getPointer();
            long size = pointer + 4;
            File temp = new File(Const.cacheHome + getCacheDeviceName() + ".shrink");
            FileInputStream in = new FileInputStream(f);
            FileOutputStream out = new FileOutputStream(temp);
            byte[] buf = new byte[BUF];
            long runs = size / BUF;
            int mode = (int) size % BUF;
            for (long l = 0; l < runs; ++l)
                in.read(buf);
                out.write(buf);
            in.read(buf, 0, mode);
            out.write(buf, 0, mode);
            out.flush();
            out.close();
            in.close();
            raf.close();
            f.delete();
            temp.renameTo(f);
            raf = new RandomAccessFile(f, "rw");
        private synchronized long getPointer() throws IOException
            long l = raf.getFilePointer();
            raf.seek(0);
            long pointer = raf.readLong();
            raf.seek(l);
            return pointer < 8 ? 4 : pointer;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#load()
        public synchronized byte[] load() throws IOException
            pointer = getPointer();
            if (pointer < 8)
                return null;
            raf.seek(pointer);
            int length = raf.readInt();
            pointer = pointer - length - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            byte[] b = new byte[length];
            raf.seek(pointer + 4);
            raf.read(b);
            --count;
            return b;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#save(byte[])
        public synchronized void save(byte[] b) throws IOException
            pointer = getPointer();
            int length = b.length;
            pointer += 4;
            raf.seek(pointer);
            raf.write(b);
            raf.writeInt(length);
            pointer = raf.getFilePointer() - 4;
            raf.seek(0);
            raf.writeLong(pointer);
            ++count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCachedObjectsCount()
        public synchronized int getCachedObjectsCount()
            return count;
         * (non-Javadoc)
         * @see com.cpic.msgbus.monitor.util.cachequeue.Cache#getCacheDeviceName()
        public String getCacheDeviceName()
            return cacheDeviceName;
    }

  • AppleScript to compile audio files into a sequence

    Here's the challenge: I use Skype as my office phone and everyday have to record a voicemail greeting specific to that day: "Hi this is Brian and for today, Wednesday, September 28th, I am in the office. Please leave a message and I will return your call as soon as possible. Thanks." Some mornings, I might be in a noisy environment, have a hoarse voice, or whatever, (or forget to record the greeting) and I would like to prerecord the greeting audio elements ahead of time and use an AppleScript to assemble them automatically.
    I am thinking the assembly would involve two audio "constants" and three audio "variables".
    [constant: greeting open] Hi this is Brian and for today
    [variable: day of week] Wednesday
    [variable: month] September
    [variable: date] twenty-eighth
    [constant: greeting close] I am in the office. Please leave a message...
    I'm not really worried about special circumstances, like when I am out of the office, as I could record those individually.
    Can anyone think of how this could be done in AppleScript so that it would automatically recognize the day, month, and date, pick the audio elements, then send (perhaps through Soundflower) the combined audio file to Skype for the voicemail greeting?
    Thanks for your advice!

    Pressing F will match the Playhead from the Canvas to the Viewer when the Canvas or Timeline is the active window and from the Viewer to the Canvas when the Viewer is the active window.
    Shift F will locate the source clip in the Browser
    Turning off Auto Select for the video tracks in the Timeline will match back to an independant audio track -for instance a piece of music, when you press F.

  • How can I match tempo & sync of old audio files to Garageband?

    HI all,
    Final question and it's a doozy. While I know the "general concepts" for trying to accomplish the following, acutally trying to get it to work is frustrating. At first thought that the new Garageband tempo/playing thing would work but I'm not being successful. Perhaps there are better programs for this. I am moderately aware of the beat/slicing/tempo tap programs -- I just don't have the lets-do-it-detail to make it work.  Here is the goal.
    #0 - New DAW file is created in either Garageband or Logic Pro.
    #1 - I have old stereo MP3 and AIFF files digitally dubbed from old cassettes, some recorded 30 and 20 years ago. Most were recorded to click track or drum machine. Newer tracks are MIDI but my first tracks are purely audio.
    #2 - I drag an audio file (MP3 or AIFF) into either Garageband or Logic Pro. The track becomes an audio track.
    #3 -- I need to edit off the beginnings of these tracks. If Garagebands new tempo sync thing is enabled, you can't seem to do this. Once the track is playing -- the tempo should be moderately consistently (The originals often used a Roland TR 707 ??? drum machine). However, the tempo might not be perfect and I might need flexibility.
    So, how do I ACTUALLY DO THIS?
    #4 - The goal is to get the NEW song template to match it's tempo to the audio track. The song now has the correct tempo that (hopefully) perfectly matches the original track.
    #5 - If this works, the old audio track is like an old temp track that is frozen in place.
    #6 - I record new fresh tracks against this backing tracking. Voila, I have a newly semi-produced or at least recorded song based on the old recording.
    Sounds easy but the devil is in the tricky details. Thanks for any tips, suggestions, references to forums, blogs, YouTube videos or books.
    I am open to other software as well.
    Thanks in advance. I'll stop bothering you after this. :-)
    John

    Attach your welcome audio to an object that is not seen (e.g. a highlight box set to 0%) and use your Advanced Actions and variables to HIDE this object ON SLIDE ENTER if the user returns to the same Menu slide at a later point in the course module.
    This should mean that the first time the user gets to that slide, the audio will play.  But all subsequent times they return to that slide, the object will be immediately hidden on entering the slide, which will mean that the audion does not play and all the user sees are the menu options.
    Your alternate strategy would be to have two slides that look almost the same.  The first one has the audio, and the second one doesn't.  Your TOC item for Menu, and any other links in the project that point to the Menu, would go to the second slide without audio.  The user will be none the wiser as long as you work out the navigation.

  • How can I control whether or not an audio files plays when a slide starts?

    I am putting together a course and have a welcome audio that plays automatically when the user begins the course. Since that slide has a list of the modules that will be in the course, I would also like to use it as one navigation option - click the "Menu" link on any slide and return to this page.
    The problem: Every time the page is hit the audio plays.
    The question: How can I set the audio so it only plays the first time the page is entered but not again?
    I have created a variable called "PlayWelcomeAudio" and set it to "Y" initially, then have an Advanced Action script that changes the variable to "N" when it is clicked (progress through the course is linear so there is only one option available to the user at this point. Clicking that link opens the next page and sets "PlayWelcomeAudio" to "N".
    I can see that the variable has been set correctly (when I start it is "Y" and when I come back it is "N") but I'm not seeing anyplace where I can set the audio file so it doesn't play.
    I tried setting cpCmndMute to "1" but that didn't work because it is apparently a global setting and I didn't get any audio playing anywhere after that.
    I'm not looking to pause the timeline or anything like that. I just want the audio to play the first time but not the second and subsequent times that page is hit.
    Thoughts? Suggestions?
    Thanks.
    Michael

    Attach your welcome audio to an object that is not seen (e.g. a highlight box set to 0%) and use your Advanced Actions and variables to HIDE this object ON SLIDE ENTER if the user returns to the same Menu slide at a later point in the course module.
    This should mean that the first time the user gets to that slide, the audio will play.  But all subsequent times they return to that slide, the object will be immediately hidden on entering the slide, which will mean that the audion does not play and all the user sees are the menu options.
    Your alternate strategy would be to have two slides that look almost the same.  The first one has the audio, and the second one doesn't.  Your TOC item for Menu, and any other links in the project that point to the Menu, would go to the second slide without audio.  The user will be none the wiser as long as you work out the navigation.

  • Can I save .pages speech as an audio file?

    I have a .pages document and when I select all words and select speech, the document is read out to me.
    I find this a useful revision technique, is there anyway I can save the speech as an audio file so I can listen to my revision notes 'on the go'?

    See this discussion: http://hints.macworld.com/article.php?story=2008050623341520
    If you read the comments below the main article, there are some alternatives.
    Even better, perhaps, is this MacMost tutorial: http://macmost.com/convert-text-to-spoken-word-audio.html
    Jerry

  • Meta tagging audio files in os x

    hi, I have just moved from MS to Apple. In MS I used to input important meta tags for mp3files (my own) via "info". When I chose info on OS X my only option is to use the field for Spotlight commentaries. But since I want to fill inn composer, year and so forth this seems to be to little.

    once your mp3 are in the itunes LIBRARY then you choose command + i to enter your own information. Once this is done go to advanced and convert the id3 tag to version 2.4
    You can also select a multiple number of files to do some of the information ; just experiment with it. Oh BTW if you are successful and id3 tag your files remember to copy these over to your older mp3 files where ever you have them stored and most of the information after you id3 tag them will go with the copy.

  • Where can I READ how to combine an audio file with a slide show

    I need to make a dias show running with some speech/audio file beneath - so that I get an avi file or whatever to present on the internet.
    But no matter where I turn, I find video after video - and I am not so stupid, that I cannot read a text.
    So can someone tell me where I can find a TEXT manual, describing how I do that?
    Thanks a lot.
    Niels

    Hi,
    Are you in Premiere Elements Editor? I'm seeing in PSE Organizer and can't see that "Drop files here" text anywhere.
    This is how Slideshow dialog looks in PSE11 Organizer. You can rearrange the images by clicking on "Quick reorder"button or by dragging thumbnails on the thumbnail strip you see at the bottom.
    Let me know if you are facing any issues with this dialog
    Thanks
    Andaleeb

  • Re: please help.. mmapi.. how can i write my own controls for audio process

    it is just like
    for example when we increase the volume, the player
    keeps playing without pausing.. i want my controller
    to be able to do this.. first of all:
    have you ever created a javaME music player with a volume control?
    if you did one and well implemented it, you should have seen that increasing volume (in
    a good implementation) never causes pausing...
    so, is it possible to write
    my own audio control class in j2me? and is it
    possible to make it real time without causing the
    player pause?second:
    you can try... good luck

    Thanks. with your help i found this ;[https://addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/ addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/]
    with that tool you just right click mouse in search box what i want to add to the bar and select "add to search bar..."!!!THANKS!!!(yea it didn't found from the site search you gave but there was link to this tool what gives you "the power"(:D) to add it)
    ps. copy that link to ur post so i can put it solved!

  • How can I write an AppleScript to help organise my emails better?

    Hello,
    I have a situation that I think would be best solved with the use of AppleScript, however I have never programmed with it before. I've tried reading lots of sample code that does similar things, and playing around with the language, but I think it's time to ask for help!
    (If there happens to be a good way to do this without AppleScript, I would be grateful to hear of it!)
    _My problem is this:_
    I have lots of email accounts, and I take great care to keep everything on my computer very well organised. I have many many Mail rules set up to organise my incoming mail into relevant folders on my Mac so that they are not only arranged relevant to their content, but also backed-up offline.
    Since purchasing an iPhone last year, I have sought to make the mail integration between my phone and my computer as seamless as possible. I first changed all my accounts to use IMAP instead of POP so that when I read messages on one device it shows as read on the other. This was extremely handy, but when my Mac moved emails into folders on my Mac it removed them from the server so that I couldn't view them on my iPhone.
    I got around this by changing the rule actions to copy messages rather than move them, but now every time I get an email both copies remain marked as unread. This may be a rather trivial problem, but I receive a lot of emails and it is quite frustrating to have to click both copies to remove its "unread" status.
    Although I am aware that you can use a rule action to mark a message as read, this marks both copies as read. What would be nice would be a rule condition that specified all the messages in a given folder... oh well!
    The solution I have been working on for the last couple of days involves creating an end rule that runs a piece of AppleScript. This script would select all the mailbox folders on my Mac with unread mail, and mark them as read. This isn't impossible, right? I really ought to properly sit down and learn the language, but I don't have any spare time, and I'm already trying to learn obj-c and cocoa!
    Thanks for taking the time to read this.
    Stuart

    Do you mean like this? Run this and tell me if this is what you want.
    Just make sure you plug in your email address and the signature names in the sigList
    set senderList to {"<[email protected]>", "<[email protected]>"}
    set sigList to {"gmail sig", "icloud sig"}
    set fromSender to (choose from list senderList with prompt "Choose a Sender" OK button name "This Sender" cancel button name "Abort" empty selection allowed 0 without multiple selections allowed)
    if result = false then
              return
    else
              set fromSender to result as text
    end if
    set sig to (choose from list sigList with prompt "Choose a Sginature" OK button name "This Signature" cancel button name "Abort" empty selection allowed 0 without multiple selections allowed)
    if result = false then
              return
    else
              set sig to result as text
    end if
    tell application "Mail"
      activate
              set newMSG to make new outgoing message with properties {sender:fromSender, visible:true}
              set message signature of newMSG to signature sig
    end tell

  • How can I write waveform data to a txt file or an excel sheet?

    I want have a table that I can follow up in excel. In first column should be the timestamp (in ms or better in us), in the second column should be the value. I made an effort but it doesn´t work.
    Attachments:
    PWMReadWrite.vi ‏167 KB

    Yes, you must change block (Get Date/Time String.vi).
    You must write new subVI - this new VI convert date and time to the second [or ms or us].
    First choice is: time column will be count of second [the better ms or best us] since 12:00 a.m., January 1, 1904, Universal time[function "Get Date/Time In Seconds.vi"].
    Text file:
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333
    Second choice is: first record in TXT file will be time when test start and after will be table with time [ms or us] and value.
    Text file:
    Start time: Monday 30-th February 2005.
    0,000 0.000000
    0,050 0.062791
    0,100 0.125333
    Have a nice day.
    JCC
    P.S.: I recommend you creat header of result table to text file.
    Text file:
    time [ms] U [V]
    3216546154,000 0.000000
    3216546154,050 0.062791
    3216546154,100 0.125333

  • How can I write some informations in a text file ?

    Hello.
    I am a beginner in java in general and in Web Dynpro Java in particular.
    I have to work in an application written by a consultant wich works no more at my office.
    Due to performances problems (slowness of the application at unpredictable instants),
    I have to write in an external file all the actions which make the users in the application.
    The problem is I don't know how to proceed.
    Somebody can help me ?
    Edited by: Serge L. on Aug 10, 2009 2:21 PM

    Hi Serge,
    You can try this as well to generate a text file.
    Use Filedownload UI element. And try following code in Webdynpro.....
    IOUtil IOUtil=new IOUtil();
    File f = new File("skill_master.txt");
    FileWriter fw = new FileWriter(f);
    fw.write(formattedStr);
    fw.close();
    InputStream template  = new FileInputStream(f);
    ByteArrayOutputStream templateSourceOutputStream = new ByteArrayOutputStream();
    IOUtil.write(template, templateSourceOutputStream);
    IWDCachedWebResource resource=WDWebResource.getWebResource(templateSourceOutputStream.toByteArray(), WDWebResourceType.getWebResourceType( "txt","text/html"));
    resource.setResourceName("User.txt");
    wdContext.currentContextElement().setVa_FileData(resource);
    Here formattedStr is the string which contain all the contents you want in the file. Here Va_FileData  attribute is of type com.sap.ide.webdynpro.uielementdefinitions.Resource.
    Map this Va_FileData attribute to the Filedownload UI. So that when u click on the FileDownload UI it will generate a txt file.
    Hope it helps you.
    Regards,
    Swati

  • Can I use icloud to share itunes audio files with others

    Can I use i-cloud as a medium to share audio recordings stored in itunes, to share those recordings with others.
    How does that work if it's possible, is there a unique link provided to the one I am sharing the file with?
    Can I connect this link than to my webpage so people may download a recording as an mp3 file from the website?
    I am currently using dropbox, but want to switch to i-cloud if this service is provided

    Thank you
    Its not to share songs, it is to share teachings I am giving to students and that are recorded, to provide them with a link after class so they can listen or for those on a distance who cannot attend in person.
    Any suggestion as to what is the best option to sharing audio recordings through another medium?I have tried gotomeeting but the conversion of the audio did not work for mac. Looked into livestream but their fees are very high if you wish to protect your offering with a password ( which i have to do, as the students pay for it)
    My best guess is video myself including audio and downloading that into my computer and onto youtube?

Maybe you are looking for

  • AirPrint and the D-Link DIR-655 solution

    After much messing around I have finally achieved the ability to airprint using a DLink DIR-655 router. In my own search for a solution it became apparent this is bothering a lot of you. So here is my solution. Basic equipment we were using: iPhone 4

  • How to count number of Relational Table definitions?

    Hi, How can I get the number of tables existing in a particular container? some thing similar to 'select count(1) from tab'. Thanks,

  • Selection-screen using HR report category

    Hi friends,    I have a developed HR report using PNP ldb in which i have used the HR report category to specify my selection-screen.But still my requirment is not getting fullfiled.I require 1)Company Code                         2)Payroll Period se

  • How to free the GUIBB instance in a floorplan

    Hi, I have created a GAF application in FPM. Now when I click on a button in one roadmap view, I am showing a dialog box which contains a FORM UIBB GL2. I have defined the dialog box in FPM component configuration. When the dialog box is opened, the

  • Restoring Contacts

    Need help restoring contacts.  I accidentally deleted all my contacts when trying to create an archive.  My "empty" address book then synced, of course, to all my devices.  I tried restoring a recent back-up of my iPhone.  My contact list gets restor