Re: Quicktime - export audio
Re: Quicktime - export audio
- Subject: Re: Quicktime - export audio
- From: dev_sleidy <email@hidden>
- Date: Sat, 1 Apr 2006 09:33:52 -0500
Can anybody help?
The following, modified, code works for me.
-------------
property Target_Loc : "Pick a new location"
property AudioFormat : "AIFF"
-------------
tell application "Finder"
set this_item to choose file
set the TargetFolder to (choose folder with prompt Target_Loc) as string
my convert_audio(this_item, TargetFolder) -- Added 'my'
end tell
-------------
on convert_audio(SomeNoise, TargetFolder)
set the file_name to "xxx" -- the name of (SomeNoise as string)
tell application "QuickTime Player"
open SomeNoise
if ((can export movie 1 as AIFF) is true) then -- Changed
'SomeNoise' to 'movie 1' and 'AudioFormat' to 'AIFF'.
set the NewFile to (TargetFolder & file_name)
export movie 1 to file NewFile as AudioFormat using default
settings with replacing -- Changed 'SomeNoise' to 'movie 1'.
end if
close movie 1 -- Added this line, to close the QuickTime Player window.
end tell
end convert_audio
-------------
[MacOS X 10.4.4, Script Editor 2.0 (43), AppleScript 1.10.3,
QuickTime 7.0.4, and QuickTime Player 7.0.4.]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden