Send MIDI with Applescript?

Hi.
Is it possible to transmit a MIDI-message via AppleScript?
I have a Griffin Powermate which I use to control my system volume. But when I have my external sound-card plugged in, system volume is disabled and I can't control it with the Powermate.
However, as my soundcard can be controlled via MIDI, I was thinking that if I could create a script sending the needed MIDI-message and "attach" it to my Powermate, problem would be solved...
any thoughts?
/Lars

Hmm.. sorry - rebooted harmonizer - ok now.

Similar Messages

  • Automated report/ PDF conversion with AppleScript

    Hello-
    I am attempting to PDF a spreadsheet from Dropbox, and email it to a set list of recipients with AppleScript.  Much of this I have been able to figure out, but I am having some issues with the PDF conversion.  As you can see below, I am still working on sending the xls file, and have not yet been able to get AppleScript to convert a specific tab of the file to aPDF.  I expect scheduling to be handled theough crontab.
    Current script is as follows:
    tell application "Finder"
              set folderPath to folder "Macintosh HD:Users:user:Dropbox:folder:Calculated PO Sheet"
              set theFile to first file in folderPath as alias
              set fileName to name of theFile
    end tell
    set theSubject to "Current PO Report" date
    set theBody to "See attached."
    set theAddress to "recipient email"
    set theAttachment to "CALCULATED PO SHEET.xlsx"
    set theSender to "sender email"
    tell application "Mail"
              set theNewMessage to make new outgoing message with properties{subject:theSubject, content:theBody & return & return, visible:true}
              tell theNewMessage
                        set visibile to true
                        set sender to theSender
      make new to recipient at end of to recipients with properties {address:theAddress}
                        try
      make new attachment with properties {file name:theAttachment} at after the last word ofthe last paragraph
                                  set message_attachment to 0
                        on error errmess -- oops
      log errmess -- log the error
                                  set message_attachment to 1
                        end try
                        log "message_attachment = " & message_attachment
      #send
              end tell
    end tell

    Hi,
    there is a special setup for this requirement. Please see the following support note
    Reference
    Oracle Reports Output For Indian Languages Like Gujarati, Marathi [ID 980554.1]
    Roberto

  • Sending Email with current IP address in it

    I have done scripting in LotusScript for Lotus Notes. When I was younger, I did BASIC, Pascal, Assembler. I am trying to figure out Applescript and how it relates with each application.
    Currently, I am trying to create an Applescript which will, upon a receipt of an email from a particular user (me) and a particular subject, would send an email back to the user with the current external IP address of my machine. I already have the "hard" part of getting the IP from a script created by Koert Bonte but modified by me:
    set GetIP to do shell script "/usr/bin/curl http://checkip.dyndns.org/"
    This will receive something like this:
    <html><head><title>Current IP Check</title></head><body>Current IP Adress: 1.2.3.4</body></html>
    set AppleScript's text item delimiters to ":"
    set temp to the second text item of GetIP
    This will return with:
    1.2.3.4</body></html>
    set Applescript's text item delimiters to "<"
    set theIP to the first text item of temp
    (* This gets the IP address:
    1.2.3.4
    Now, I can create a rule in Mail to look for my name and subject, what I have not been able to figure out is how to send either a new message back with the IP address or a reply back with same. I would like to see examples of both .<br>
    Cube, G4 TiPB, iMac    

    Hi Zeff,
    With Applescripts called from Mail rules you need to use 'on perform mail action' to get the list of messages that triggered the rule. This needs to be in a 'using terms from application "Mail"' block so the processor will understand what 'on perform mail action' means. Generally you would loop through the list of messages (it will be a list even if there is only one iten in it).
    So you would wrap a Mail rule script in something like:
    using terms from application "Mail"
    on perform mail action with messages myMessages
    repeat with myMessage in myMessages
    -- the body of your script goes here
    end repeat
    end perform mail action with messages
    end using terms from
    Using the above, you need to tell Mail as usual if you want it to do something:
    using terms from application "Mail"
    on perform mail action with messages myMessages
    repeat with myMessage in myMessages
    -- get ip
    set myIP to my fetchIP()
    tell application "Mail"
    -- make new outgoing message
    set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:"My IP", content:myIP})
    -- add recipient
    tell mymail to make new to recipient at beginning of to recipients with properties {address:extract address from (sender of myMessage)}
    -- send it now
    send mymail
    end tell
    end repeat
    end perform mail action with messages
    end using terms from
    on fetchIP()
    try
    set myIP to word 25 of (do shell script "curl checkip.dyndns.org")
    on error
    try
    set myIP to word 1 of (do shell script "curl www.showmyip.com/simple/")
    on error
    display dialog "External IP check failed."
    end try
    end try
    return myIP
    end fetchIP
    I used a handler called fetchIP to call the machine's IP. Note this is similar, but different to yours. Then make a message in Mail with the subject 'MyIP' and the body of the message as the IP. Then add the recipient as the sender of the message which triggered the rule. Finally send the message.
    To add the contents of the original message take a look at Mail's Applescript dictionary for 'content'.
    Best wishes
    John M

  • HT4101 Problem sending midi program changes to a Boss Gt100

    Hi I am using an app called Set List Maker to send midi program changes to a Korg Triton keyboard successfully but no such luck with a Boss GT100 guitar processor. The message I get is something like cannot use this device. 

    Hi I am using an app called Set List Maker to send midi program changes to a Korg Triton keyboard successfully but no such luck with a Boss GT100 guitar processor. The message I get is something like cannot use this device. 

  • How to set the transition duration of a slide in keynote with applescript

    hi
    how to set the transition duration of a slide in keynote with applescript
    i made an applescript script which converts a numbers file to a keynote presentation
    figured out how to set the transitions but cant find how to set the time
    +set appTransition of slideTransition of current slide to "apple:dissolve"+
    anyone?

    you can send keystrokes to invoke menu commands via shortcuts but as for transition time not sure. You've check the dictionary right? Scripting support is very limited in KN.

  • Sending midi via Motif USB to Logic.

    Can someone explain how to set up my Mac,Logic pro 9 & Motif es6 to send midi note messages to Logic? I just need to use my Motif as a midi controller.I downloaded the drivers on my Mac & hopefully it is there!
    Thanks.

    If it is installed correctly then...
    Open Logic, create a new project... add a software instrument track... (You can add a software instrument to that track to hear notes at this point too) select that track.. and just play notes on your Motif6  and look at the transport bar to see if those notes are being received by Logic... They will appear under Note In...
    If midi notes are not received then the Motif is not being recognised correctly by your Mac.. (It's actually nothing to do with Logic itself.. it's OS Xand the drivers you installed that control everything) and so you need to check you installed the drivers correctly but normally, it's pretty much plug and play....

  • Sending MIDI from Logic to Motion

    Motion (Apple's animation software) allows MIDI instructions to change animation parameters. I was wondering if anyone here has been successful in sending MIDI instructions from Logic to Motion and can take me through the steps to do so. (I have a related question over in the Motion forum.)
    Thanks in advance.

    Take a look at "midipipe" and "midi patchbay" too.(free downloadables)
    They're probably just front-ends for the IAC bus, but sometimes GUI is good.
    Be wary when enabling virtual midi patches cause logic sums all inputs which can create a feedback loop. It seems to not hang my computer indefinately when it happens nowadays, just freeze it for a few seconds then give me a few seconds to fix it before freezing again for a while.
    If your getting into realtime midi to graphics also check out "quartz composer" in the osx developer tools too.
    ..or "pure data" with GEM if your real brave.

  • Sending Midi Timecode to ETC Ion Lighting Console

    Hello,
    I am not very experienced with MIDI at all, but I am helping to explore options for a project I am involved with.   Does anyone know if Audition 3.0 supports MIDI Show Control (MSC) or if there are any 3rd party plugins that add this functionality?
    Basically, we are putting on a light show production in our city.  We want Audition to run the audio and lighting console.  The ETC Ion console can accept midi cues to trigger stop/go cues on the console but I believe it has to be a MSC setup, not just straight MIDI. 
    Another way to do this is if Audition sends the time code via MIDI we can run it that way. Does MIDI send a timecode?
    Does any of this sound possible? 
    Thanks,

    In Mutlitrack mode Audition can send MIDI Timecode.

  • Download image from URL with applescript

    I want to download an image from an website (and internal IP address) using applescript,
    now I have found a script that works (Download jpeg image to folder with AppleScript from URL).
    But, the web page requires a username and password...
    When I convert the downloaded JPEG into a HTML by simply changing the extension, quick look displays the webpage's 401 unauthorized error page...
    Does someone know how to make the applescript input the username and password?

    The answer depends on how the authentication is managed.
    There are two common ways of implementing authentication in web browsers and knowing which one is used here is essential to scripting the request. One is also significantly harder than the other.
    The first (easy) way is that the username and password can be submitted with the request. This is the original model and is easy to script - if you're using the curl model then it's just a matter of adding the -user switch to the command line:
           -u, --user <user:password>
                  Specify the user name and password to use for server authentica-
                  tion. Overrides -n, --netrc and --netrc-optional.
    This model is a little less secure, though, but might still be used on internal sites since it's easy to implement.
    The other option is that the site uses cookies - you log in via a web form and the server gives your cookie which you then send with subsequent requests and are used to validate your access. This is a more secure, but is harder to implement because there is a multi-step process - login via the web form, capture the cookie, submit the cookie with the download request.
    If you're not familiar with the different methods it can sometimes be hard to tell which one you need, and since it's an internal site there's no way anyone else can check... so you'll need to describe how you login to the site (or are prompted for authentication) before anyone can provide a direct answer.

  • How connect to device that sends Midi-Signals via USB?

    Hello,
    does anybody know how to communicate with a device that sends Midi-Signals via USB? I am working with Windows XP. I would appreciate any kind of hint.

    rothencharl wrote:
    Hello,
    does anybody know how to communicate with a device that sends Midi-Signals via USB? I am working with Windows XP. I would appreciate any kind of hint.You need a bit of hardware that converts USB to ordinary RS232; you can use RXTX then to get the data in; there you can do with it whatever you want.
    kind regards,
    Jos

  • Unable to send midi from Mainstage out to Rewire applications

    I can't seem to find out how to send midi out from Mainstage to other applications, such as Reason.
    I created an external instrument channel strip, but in the midi out -box out the channel strip I can only see the physical midi output from my audio interface. The Rewire application should be visible here as an option, shouldn't it - or is there another way to send midi out from Mainstage to be able to play for example Reason instruments with Mainstage? Any ideas what might be wrong? I have Reason open and it seems to be working as a Rewire slave as it should, but somehow it isn't visible as a midi port in Mainstage.
    - Malmberg
    Message was edited by: Malmberg

    Hey Malmberg, I was able to get this to work by doing the following steps:
    Opened Mainstage and my Mainstage concert file first
    Then opened Reason (I only have the demo)
    Selected a patch I wanted to use in Mainstage to Reason
    Clicked + to create a new Ext channel strip
    In the MIDI Out box, I used the dropdown list and choose Reason (see image)
    It could be that the sequence you used so open MS first, then Reason

  • Send MIDI Sequence to GarageBand

    Hello,
    Is it possible to write a Java program that OSX will see as a virtual MIDI device (just like it might see a real MIDI USB keyboard) so that I can programmatically generate and send MIDI sequences through GarageBand?
    I am experienced with Java and C and I have written device drivers. But I am not sure where to begin because I have zero experience with the javax.sound.midi package.
    I envision the following: When I run the program from a terminal it initializes a virtual device and then pauses. At this point if GarageBand is running I should see the familiar "The number of midi inputs has changed" message. Then each time I hit <Enter> and it plays my coded MIDI sequence. I can select a different instrument in GarageBand and hit <Enter> again and it will play the sequence again using the new instrument. Pressing 'x' or a special character will cause the device to deinitialize again triggering the aforementioned GarageBand message and the Java program will exit.
    Is this possible?
    Any direction would be greatly appreciated.
    Mike

    Hi,
    I have a similar question, so I'm curious if you ever found an answer to yours. I was wondering if I could get a Java sound Synthesizer for a native synthesizer AudioUnit (specifically Ivory Pianos). It doesn't look like it.
    Rob

  • When running a "stand-alone" APP..how do I send midi from Logic?

    Hi all,
    When running a "stand-alone" APP..how do I send midi from Logic?.....Please no IAC stuff it doesn't work.......thanx
    SvK

    using IAC here no problems. works very well.
    you can host your au's in another app such as soundflower or au lab, but you are still going to need to get it to hear midi. you can use physical midi ports with something like a MTP midi interface, and getting the midi by routing the out of one port to the in of another (midi loop) but you have to be careful logic doesn't listen to the same midi signal or everything will jam up (midi feedback).

  • Keyboard macros with Applescript

    Hello - I am new to PP from FCP 7 and I am trying to set up some new workflows that should really save some time.  I am also very new to Keyboard macros with Applescript - but I love the concept and almost everything I have tried has worked so far - with one exception - and I can't figure it out for the life of me figure it out
    So here is what I would like to do:
    I want to cut out clips from interviews and make subclips.  I need to keep a visual record of what I pulled and from where.
    Here is how I do it:
    I lay out all synced audio and video of interviews in a timeline sequence.  I go allong and find the in point of a clip i'd like to create a subclip of, and I hit command+k to cut all active tracks.  I then find my out point of said clip and hit command+k again.  I select the clip and hit option+ up arrow (NOTE - i have the layers set in a way that this clearly differentiates the clip I've pulled and it works by haveing go up from track 1 to 2 and audio up from track 2 to 1).  I then create a subclip of that clip with a keyboard shortcut I have set up as control+d.  Then back to searching for the next clip.
    How I would like to do it with keyboard automation via applescript:
    Find the clip and command+k "cut" the in point and put the playhead at the out point and run the following script:
    tell application "Adobe Premiere Pro CC"
        activate
    end tell
    tell application "System Events"
        keystroke "k" using {command down} # my 2nd "out" blade cut for the clip i want
        delay 0.2
        key code 126 # (up arrow) send playhead back to the start of the clip
        delay 0.2
        keystroke "d" # selects the clip at playhead
        delay 0.2
        key code "126" using {option down} #NOT WORKING - (option+up arrow) to shift my clip up 1 layer
        delay 0.2
        keystroke "d" using {control down} # shortcut i created to make subclip
        delay 0.2
        key code 36 # (return key) approves defalt subclip settings
        delay 0.2
        key code 20 using {shift down} # (Shift+3) selects timeline pannel
        delay 0.2
        key code 125 # (arrow up) goes to next cut
    end tell
    So - as you can see - the one thing I can not get to work is any key command to shift a clip up in the timeline.  What is really bizzare is that even if I change the keyboard short cut from "option+up arrow" to anythiing else, apple scrip will just not exicute that command.  The correct pannel is selected, everything else works, and of couse when I try the actual option+up arrow without involving scrpt at all - it works. 
    Can anyone who might be a little more firmilliar with scriping macros please take a look at my code and tell me what I might be doing wrong.  Thank you!

    I think i already found a solution to my problem: Butler.
    Sorry for the confusion.

  • Call it "EASY WRITING..." with AppleScript !

    Does anyone know if there is a way to edit a post, once you send it to the board. Perhaps to catch a typo, change the title, etc.
    I wanted to change :
    FROM : AppleScript - Worth Seeing...
    TO : Call it "EASY WRITING..." with AppleScript !
    But could not find a way to edit my post.
    I apologize for re-submitting the same post with a different name.
    All,
    If you use AppleScript at all, this is pretty slick, compared to anything else I found on the web for writing to files.
    Call it "EASY WRITING..." with AppleScript !
    http://www.mac-specialist.com/r/asckdirs.html
    Best Regards,
    Bill Hernandez
    Plano, Texas

    You can edit the post, but only for a short period (15 minutes? 30 minutes?) after you create it.
    When you look at the thread there'll be an additional 'Edit' link in the header along with the 'Reply' and 'Email' links. Once the post has been there long enough the Edit link goes away.

Maybe you are looking for

  • JApplet.getCodeBase() returning null

    I have an applet that needs to communicate with a servlet via RMI. My applet class includes a call to the parent class (Swing JApplet) method getCodeBase(), which is returning a null pointer. The call is necessary in order for me to locate and utiliz

  • Windows 7 bootable install disk?

    When I got my new T530 Win 7 Pro x64 a month or so ago, I didn't think to ask if I could get an installer disk should I be forced to reinstall from scratch. I'm not having a problem mind you, but I would feel a lot more comfy if I had such an install

  • One lettre not working

    lettre P not working

  • Flash Player / DEP error

    The latest Flash Player update is not working! I need my Flash Player! PLEASE HELP!!! - Whenever I open a website on any browser (Firefox, IE, etc) I receive this message: "Adobe Flash Player 11.5 r502 has stopped working." - When I click "Check onli

  • Messages won't import from Entourage 2008 to Outlook 2011

    My hard drive crashed on my MacBook Pro that was running Entourage 2008 for Mac. I have a back up of the Microsoft User Data file, and I want to upload it to Outlook 2011 for Mac. When I import the data, it pulls my calendar and complete folder struc