Re: How to set application which opens a file via Applescript?
Re: How to set application which opens a file via Applescript?
- Subject: Re: How to set application which opens a file via Applescript?
- From: Christopher Stone <email@hidden>
- Date: Sun, 30 Aug 2015 09:44:54 -0500
On Aug 30, 2015, at 05:36, S. J. Cunningham <email@hidden> wrote:
> You can change the application which opens a file via "Get Info" but how can you do it via Applescript?
______________________________________________________________________
Hey Steve,
You can do this the hard way:
http://superuser.com/questions/259248/mac-osx-change-file-association-per-file-on-the-command-line
Or you can simply change the default application using System Events.
You're wanting to change the default application for individual files, so this should work (I've tested both methods on OSX 10.10.5).
On the other hand if you want to make mass changes for entire file-types there is a 3rd party command-line-utility that supposedly works on Yosemite (which I have NOT tested).
http://duti.org/duti.1.html
--
Best Regards,
Chris
_______________________________________________
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