Re: changing the "open with application" value for a file
Re: changing the "open with application" value for a file
- Subject: Re: changing the "open with application" value for a file
- From: "email@hidden" <email@hidden>
- Date: Sat, 23 May 2009 10:35:21 -0700
I am downloading multiple files that are ".m4v" type videocasts.
By default, on my machine, they would open in iTunes. If I use
"Get Info" for each file, I can tell it to open in Quicktime
instead. When I look at the properties for this file, neither
the file creator or the file type is filled in.
I realise the file type is the old OS 9 4 byte code that was
unique to each application and could be manipulated to force a
particular program to open a file when it's icon was double
clicked.
Same thing, plus, if that information is not there, it uses the file
extension.
Here's how to get and change those settings.
set myFile to choose file
tell application "Finder"
set myType to file type of myFile
set myCreator to creator type of myFile
set myExtension to name extension of myFile
set file type of myFile to "1234"
set creator type of myFile to "ABCD"
set name extension of myFile to "abc"
end tell
This is the kind of thing you could write a droplet to handle or a
folder watcher.
HTH,
ES
_______________________________________________
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