On 2009-05-23, at 11:06:31, Jim Brandt wrote:
But I don't want to change it for every file in the future which is what happens
if you click the "Change all..." button. I really want an AS solution to this.
Ok, then approaches similar to the ones posted by Luther Fuller or Ed Stockly should be fine.
In general, if there is a solution available with "System Events", it should be preferred to a Finder one.
set mov to ((path to desktop folder as text) & "CremeBrulez.mov")
set default_app to (path to application "QuickTime Player") as text
tell application "System Events"
set default application of disk item mov to default_app
open mov
end tell
CremeBrulez.mov was previously assigned to be opened with iTunes.
If I run the above script and subsequently double-click it from the Finder, QTP will open it.
Philip Aker