Re: QuickTime document file in Leopard
Re: QuickTime document file in Leopard
- Subject: Re: QuickTime document file in Leopard
- From: has <email@hidden>
- Date: Mon, 5 Nov 2007 14:35:56 +0000
Laine Lee wrote: Open an mp3 audio file in latest QuickTime Player in Leopard.
Run this:
tell application "QuickTime Player" get (original file of document 1) end tell
Is there any way to get rid of the garbage before the posix path other than to write a perl snippet and file a bug report?
This is a bug in QTP [1]: its dictionary incorrectly declares the 'original file' property's type as 'file' when it actually returns Unicode text. I'm guessing that this dictionary error causes Leopard's Cocoa Scripting framework to pack the HFS path into a typeFileURL descriptor (which requires a file:// URL). If that's the case, the 'original file' property's type needs be changed to 'Unicode text' (or its sdef equivalent, 'text') - this should correct the problem and ensure that this property returns the same value (HFS path string) in 10.5 as in 10.4. File a bug report and meantime use 'path of document 1' as-per Deivy's suggestion.
has
[1] Methinks the QTP team need to work on their regression tests a bit as this isn't the first new bug either. 'ascrgdte' events don't return the correct result for Leopard's QuickTime Player, which means that anyone wanting to control it via remote Apple events and appscript will have to resort to kludgy workarounds until it's fixed. Yay. (Bug ID# 5579509)
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden