Magnificent Seven: What's New for Users in QuickTime 7
Subject:   AppleScript gotcha
Date:   2005-05-10 23:40:33
From:   LeeNoble
Thought I'd just mention a change which I ran into the other day. If you have any AppleScripts developed on QT6 which rely on locating the original movie file of an open movie these will now fail because QT7 returns a POSIX path now instead of a colon delimited file reference.

set theFile to (original file of movie 1) as POSIX file

will fix it.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • AppleScript gotcha
    2005-05-11 13:00:18  has01 [View]

    Yeesh. You should file a bug on this. To quote from TN2106:

    "Files in AppleScript are considered to be objects. Therefore, properties and parameters that point to files should also be file objects. Do not use file path strings for this purpose. Similarly, do not have use file path strings anywhere – use a file object, and let scripts use the path property of files if they really need to. (Cocoa Scripting got this wrong when it was first implemented. This is being corrected; you should not consider it as granting permission.)"

    Two steps forward, one step back. <sigh>