Apple Scripts

3 posts / 0 new
Last post
doug-doug the mighty's picture
Offline
Last seen: 1 week 11 hours ago
Joined: Apr 14 2004 - 17:52
Posts: 1408
Apple Scripts

I have decided to start fooling around with Apple Scripts. I want to do someting relatively simple (to me anyways).

I have several midi files and MP3s. I want to have a basic script that when I click on it, it plays the midi file or mp3.

How do I get started?

TIA

aladds's picture
Offline
Last seen: 2 months 3 weeks ago
Joined: Dec 26 2003 - 16:21
Posts: 299
Applescript

Applescript is great, almost exactly like English so try this:

tell application "Quicktime Player"
activate
open file "" of folder "" of disk ""
play
end tell

This is just what I think might work, dunno if any of this is correct or anything, but hey…

aladds's picture
Offline
Last seen: 2 months 3 weeks ago
Joined: Dec 26 2003 - 16:21
Posts: 299
not on X

This dosn't work on OSX (just tried it), somthing to do with the way files are opened, but it *should* work on OS9, sorry about that…

BTW, I tried recording myself opening a movie and playing it. It gave me this (I wasn;t that far off!)

tell application "QuickTime Player"
activate
play movie ""
quit
end tell

But… playing it dosn't work, no idea why…

Log in or register to post comments