SoundEdit 16 v2 -help - Documentation? --
SoundEdit 16 v2 -help - Documentation? --
- Subject: SoundEdit 16 v2 -help - Documentation? --
- From: email@hidden
- Date: Thu, 17 Jul 2003 13:00:20 -0700
Hi group,
Does anyone use sound edit? Or think maybe there is a better program?
I wanted to convert files from a few places so that they all have the 20.05
sampling rate (I'll worry
about the multiple files thing later) -- my main concern right now is figuring
out how to use the
simple ideas of SoundEdit's "scriptability." Such as 'convert format'. All I
can do is shown in my
sad attempt below.
This code chooses a file using finder, and opens it using Sound Edit. (not too
exciting) I've found
no documentation on SoundEdit anywhere. Just a
bit on Macromedia's site that shows the commands you can see from the Script
Editor dictionary.
I can't figure out the syntax to convert the format of a file.
The part that is commented out - is what I tried, but I always get an error.
----------
set theSamplingRate to 20.05 as real
try
tell application "Finder"
choose file
set fl2convert to the result as alias
end tell
log fl2convert
on error
display dialog "Please choose a file that can be supported by Sound Edit"
end try
try
tell application "SoundEdit16 version 2"
--get the file type of the fl2convert
open fl2convert
--convert format of fl2convert to sampling rate theSamplingRate
--log theSamplingRate
--set the result to the file type of the fl2convert
--if theType is "AIFF" then convert format of the fl2convert to sampling rate
the
theSamplingRate
end tell
on error -29298
display dialog "An error occurred trying to open the application"
end try
-----------
convert format alias "DVD Mac:Users:brandon:Desktop:Learning
Fundamentals:Sounds:p5Ans065 copy" to sampling rate 20.05
"SoundEdit16 version 2 got an error: "
--> is what the event log shows
Any ideas?
Thanks,
Brandon Lake
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.