• 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: changing the "open with application" value for a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing the "open with application" value for a file


  • Subject: Re: changing the "open with application" value for a file
  • From: Philip Aker <email@hidden>
  • Date: Sat, 23 May 2009 13:58:14 -0700

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
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

 _______________________________________________
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

  • Follow-Ups:
    • Re: changing the "open with application" value for a file
      • From: Jim Brandt <email@hidden>
References: 
 >changing the "open with application" value for a file (From: Jim Brandt <email@hidden>)
 >Re: changing the "open with application" value for a file (From: Philip Aker <email@hidden>)
 >Re: changing the "open with application" value for a file (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: changing the "open with application" value for a file
  • Next by Date: Re: changing the "open with application" value for a file
  • Previous by thread: Re: changing the "open with application" value for a file
  • Next by thread: Re: changing the "open with application" value for a file
  • Index(es):
    • Date
    • Thread