| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| OK Brandon, I was on the wrong track. This script will work, you may have to use it as a droplet though: Peter tell application "QuickTime Player" activate try if not (exists movie 1) then error "No movies are open." stop every movie -- CHECK FOR THE CORRECT VERSION set QT_version to (QuickTime version as string) set player_version to (version as string) if (QT_version is less than "6.0") or ¬ (player_version is less than "6.0") then error "This script requires QuickTime 6.0 or greater." & ¬ return & return & ¬ "Current QuickTime Version: " & QT_version & return & ¬ "Current QuickTime Player Version: " & player_version end if -- CHECK FOR QUICKTIME PRO if QuickTime Pro installed is false then display dialog "This script requires QuickTime Pro." & return & return & ¬ "If this computer is currently connected to the Internet, " & ¬ "click the “Upgrade” button to visit the QuickTime Website at:" & ¬ return & return & target_URL buttons {"Upgrade", "Cancel"} default button 2 ignoring application responses tell application "Finder" open location target_URL end tell end ignoring error number -128 end if -- get the name of the movie set the movie_name to the name of movie 1 -- check to see if the opened movie can be exported if (can export movie 1 as AIFF) is true then -- prompt the user for a name and location set the new_file to ¬ choose file name with prompt "Enter a name and choose a location for the new file:" default name movie_name -- export the movie as AIFF movie export movie 1 to new_file as AIFF -- close the movie close movie 1 else error "This movie cannot be exported as an AIFF file." end if on error error_message number error_number if the error_number is not -128 then beep display dialog error_message buttons {"Cancel"} default button 1 end if end try end tell On 25/09/2006, at 7:03 PM, Brandon Hunt wrote: I worked on this with a few ideas but all it brought up was a quicktime can not open these files error message. Peter Baxter iChat email@hidden |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden This email sent to email@hidden
| References: | |
| >Re: Convert to Aiff Folder Action (From: Brandon Hunt <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.