• 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: Jim Brandt <email@hidden>
  • Date: Mon, 25 May 2009 08:30:37 -0500

Philip,

When I tried your script with a file named VideoCast-10.m4v on the desktop,
I get the following error:


System Events got an error: Can't make default application of disk item
"OSX:Users:jimbrandt:Desktop:VideoCast-10.m4v" into type reference.

I'm running OS X 10.4.11 on a PowerMac Dual 450 G4

is the default application  property a Leopard thing?

Jim

The complete script:

	set mov to ((path to desktop folder as text) & "VideoCast-10.m4v")
	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


On May 23, 2009, at 3:58 PM, Philip Aker wrote:

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

_______________________________________________ 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: Philip Aker <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>)
 >Re: changing the "open with application" value for a file (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Next unread message in Mail.app
  • 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