• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quicktime - export audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Quicktime - export audio
      • From: Feat <email@hidden>
  • Prev by Date: [ANN] LPS Scripting Utility XT
  • Next by Date: Re: Quicktime - export audio
  • Previous by thread: [ANN] LPS Scripting Utility XT
  • Next by thread: Re: Quicktime - export audio
  • Index(es):
    • Date
    • Thread