• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to set application which opens a file via Applescript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to set application which opens a file via Applescript? (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: How to set application which opens a file via Applescript?
  • Next by Date: Re: How to set application which opens a file via Applescript?
  • Previous by thread: Re: How to set application which opens a file via Applescript?
  • Next by thread: Re: How to set application which opens a file via Applescript?
  • Index(es):
    • Date
    • Thread