Re: QT7/applescript problem
Re: QT7/applescript problem
- Subject: Re: QT7/applescript problem
- From: James Weisbin <email@hidden>
- Date: Tue, 17 May 2005 14:17:02 -0400
Syntax changed in QT 7, somehow affecting Finder commands:
Changed this:
set this_item to (item i of these_items)
...
set the original_file to the original file of movie 1
tell application "Finder"
set the file_name to the name of the original_file
set the target_folder to the container of the original_file
set the new_file to ((temp_folder as text) & file_name & extension)
to this:
set this_item to (item i of these_items)
...
tell application "Finder"
set the file_name to the name of this_item
set the target_folder to the container of this_item
set the new_file to ((temp_folder as text) & file_name & extension)
end tell
And now it works.
On May 17, 2005, at 2:00 PM, I wrote:
I copied and tweaked Apple's script to convert Quicktime movies to a DV
stream. This script worked with Quicktime 6 but breaks in QT 7 (not
running Tiger!). Something to do with the way pathnames are returned.
These are the lines that break:
tell application "Finder"
set the file_name to the name of the original_file
set the target_folder to the container of the original_file
This used to return this under QT6:
tell application "Finder"
get name of alias "Server HD:Users:admin:Desktop:04.12_ADP.mov"
"04.12_ADP.mov"
get container of alias "Server HD:Users:admin:Desktop:04.12_ADP.mov"
folder "Desktop" of folder "admin" of folder "Users" of startup disk
end tell
But now returns this under QT7 (never gets to the "get container" line,
but that errors also):
get original file of movie 1
"/Users/jsw/Desktop/test/Lexus for AB with TC.mov"
"Can't get name of \"/Users/jsw/Desktop/test/Lexus for AB with
TC.mov\"."
The weird thing is, this is a call to the Finder, not to QT - so why
won't it work anymore?
Any help would be appreciated.
_______________________________________________
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