Apple Scripts

2 replies [Last post]
doug-doug the mighty's picture
Joined: Apr 14 2004
Posts: 1355

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

__________________

--DDTM ('Fritter Critter' since Apr 26 2004 - 18:16)

'If it ain't broke, take it apart anyways. If you can't take it apart, break it so that you can fix it.'

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aladds's picture
Offline
Joined: Dec 26 2003
Posts: 297
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…

__________________

Next Task - Where every day there's something new (usually)
http://next-task.blogspot.com

aladds's picture
Offline
Joined: Dec 26 2003
Posts: 297
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…

__________________

Next Task - Where every day there's something new (usually)
http://next-task.blogspot.com